diff --git a/src/packet/ship.rs b/src/packet/ship.rs index 3c34710..14daa65 100644 --- a/src/packet/ship.rs +++ b/src/packet/ship.rs @@ -121,14 +121,14 @@ impl Message { } #[pso_packet(0x62, manual_flag)] -pub struct DirectedMessage { +pub struct DirectMessage { flag: u32, msg: GameMessage } -impl DirectedMessage { - fn new(target: u32, msg: GameMessage) -> DirectedMessage { - DirectedMessage { +impl DirectMessage { + pub fn new(target: u32, msg: GameMessage) -> DirectMessage { + DirectMessage { flag: target, msg: msg, }