public static ChatClientPrivateMessage deserialize(Utils.Objects.Packet sender) { return new ChatClientPrivateMessage ( sender.ReadUTF(), Global.Environnement.getInstance().GetCharacterByName( sender.ReadUTF() ) ); }
public static ChatClientPrivateMessage deserialize(Utils.Objects.Packet sender) { string msg = sender.ReadUTF(); string target = sender.ReadUTF(); return new ChatClientPrivateMessage ( msg, Global.Character.FindOne(chr => chr.Name == target) ); }
public static CharacterCreationRequestMessage deserialize(Utils.Objects.Packet packet) { string name = packet.ReadUTF(); Breed breed = (Breed)packet.ReadByte(); Gender gender = (Gender)packet.ReadByte(); int[] colors = new int[6]; for (int i = 0; i < 6; ++i) colors[i] = packet.ReadInt(); return new CharacterCreationRequestMessage (new object[]{ name, breed, gender, colors }); }
public static CharacterCreationRequestMessage deserialize(Utils.Objects.Packet packet) { string name = packet.ReadUTF(); Classe classe = (Classe)packet.ReadByte(); Sexe sexe = (Sexe)packet.ReadByte(); int[] colors = new int[6]; for (int i = 0; i < 6; ++i) colors[i] = packet.ReadInt(); return new CharacterCreationRequestMessage ( new Global.Character ( name, classe, sexe, colors ) ); }
public static CharacterDeletionRequestMessage deserialize(Utils.Objects.Packet sender) { return new CharacterDeletionRequestMessage(sender.ReadInt(), sender.ReadUTF()); }
public static FriendDeleteRequestMessage deserialize(Utils.Objects.Packet sender) { return new FriendDeleteRequestMessage(sender.ReadUTF()); }
public static AuthenticationTicketMessage deserialize(Utils.Objects.Packet sender) { sender.ReadUTF(); // LANG return new AuthenticationTicketMessage( sender.ReadUTF() ); }
public static HelloConnectMessage deserialize(Utils.Objects.Packet sender) { sender.ReadBool(); return new HelloConnectMessage( sender.ReadUTF() ); }
public static CharacterNameSuggestionSuccessMessage deserialize(Utils.Objects.Packet packet) { CharacterNameSuggestionSuccessMessage ret = new CharacterNameSuggestionSuccessMessage(); ret.Name = packet.ReadUTF(); return ret; }
public static IdentificationMessage deserialize(Utils.Objects.Packet sender) { Version.deserialize(sender); return new IdentificationMessage(sender.ReadUTF(), sender.ReadUTF(), sender.ReadBool()); }
public static PartyInvitationRequestMessage deserialize(Utils.Objects.Packet sender) { return new PartyInvitationRequestMessage(Global.Environnement.getInstance().GetCharacterByName(sender.ReadUTF())); }
public static AdminCommandMessage deserialize(Utils.Objects.Packet sender) { return new AdminCommandMessage(sender.ReadUTF()); }
public static ChatClientMultiMessage deserialize(Utils.Objects.Packet sender) { return new ChatClientMultiMessage(sender.ReadUTF(), (Channel)sender.ReadByte()); }
public static PartyInvitationRequestMessage deserialize(Utils.Objects.Packet sender) { string target = sender.ReadUTF(); return new PartyInvitationRequestMessage(Global.Character.FindOne(chr => chr.Name == target)); }