コード例 #1
0
 public static ChatClientPrivateMessage deserialize(Utils.Objects.Packet sender)
 {
     return new ChatClientPrivateMessage
         (
             sender.ReadUTF(),
             Global.Environnement.getInstance().GetCharacterByName( sender.ReadUTF() )
         );
 }
コード例 #2
0
 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)
         );
 }
コード例 #3
0
        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
                });
        }
コード例 #4
0
        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
                        )
                );
        }
コード例 #5
0
 public static CharacterDeletionRequestMessage deserialize(Utils.Objects.Packet sender)
 {
     return new CharacterDeletionRequestMessage(sender.ReadInt(), sender.ReadUTF());
 }
コード例 #6
0
 public static FriendDeleteRequestMessage deserialize(Utils.Objects.Packet sender)
 {
     return new FriendDeleteRequestMessage(sender.ReadUTF());
 }
コード例 #7
0
 public static AuthenticationTicketMessage deserialize(Utils.Objects.Packet sender)
 {
     sender.ReadUTF(); // LANG
     return new AuthenticationTicketMessage( sender.ReadUTF() );
 }
コード例 #8
0
ファイル: HelloConnectMessage.cs プロジェクト: Emudofus/Aldos
 public static HelloConnectMessage deserialize(Utils.Objects.Packet sender)
 {
     sender.ReadBool();
     return new HelloConnectMessage( sender.ReadUTF() );
 }
コード例 #9
0
 public static CharacterNameSuggestionSuccessMessage deserialize(Utils.Objects.Packet packet)
 {
     CharacterNameSuggestionSuccessMessage ret = new CharacterNameSuggestionSuccessMessage();
     ret.Name = packet.ReadUTF();
     return ret;
 }
コード例 #10
0
 public static IdentificationMessage deserialize(Utils.Objects.Packet sender)
 {
     Version.deserialize(sender);
     return new IdentificationMessage(sender.ReadUTF(), sender.ReadUTF(), sender.ReadBool());
 }
コード例 #11
0
 public static PartyInvitationRequestMessage deserialize(Utils.Objects.Packet sender)
 {
     return new PartyInvitationRequestMessage(Global.Environnement.getInstance().GetCharacterByName(sender.ReadUTF()));
 }
コード例 #12
0
ファイル: AdminCommandMessage.cs プロジェクト: Emudofus/Aldos
 public static AdminCommandMessage deserialize(Utils.Objects.Packet sender)
 {
     return new AdminCommandMessage(sender.ReadUTF());
 }
コード例 #13
0
 public static ChatClientMultiMessage deserialize(Utils.Objects.Packet sender)
 {
     return new ChatClientMultiMessage(sender.ReadUTF(), (Channel)sender.ReadByte());
 }
コード例 #14
0
 public static PartyInvitationRequestMessage deserialize(Utils.Objects.Packet sender)
 {
     string target = sender.ReadUTF();
     return new PartyInvitationRequestMessage(Global.Character.FindOne(chr => chr.Name == target));
 }