1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-05-06 04:37:46 +00:00

Fix GM commands

This commit is contained in:
Joshua Goins 2025-05-02 16:17:29 -04:00
parent 8d384c4bd0
commit 11156ea43c

View file

@ -131,7 +131,7 @@ impl Default for ServerZoneIpcSegment {
}
#[binrw]
#[brw(repr = u32)]
#[brw(repr = u8)]
#[derive(Clone, PartialEq, Debug)]
pub enum GameMasterCommandType {
SetLevel = 0x1,
@ -309,6 +309,7 @@ pub enum ClientZoneIpcData {
/// Sent by the client when they send a GM command. This can only be sent by the client if they are sent a GM rank.
#[br(pre_assert(*magic == ClientZoneIpcType::GMCommand))]
GameMasterCommand {
#[brw(pad_after = 3)] // padding
command: GameMasterCommandType,
arg0: u32,
arg1: u32,