public static CharacterListActionResponsePacket Read(NetPacketReader message) { var p = new CharacterListActionResponsePacket(); p.Action = (CharacterListAction)message.GetByte(); p.Status = (CharacterListStatus)message.GetByte(); return(p); }
public static CharacterListActionResponsePacket Read(NetIncomingMessage message) { var p = new CharacterListActionResponsePacket(); p.Success = message.ReadByte() != 0; if (!p.Success) { p.FailReason = message.ReadString(); } return(p); }