当前位置: 首页>>代码示例>>C#>>正文


C# Utils.ReadUTF方法代码示例

本文整理汇总了C#中System.Utils.ReadUTF方法的典型用法代码示例。如果您正苦于以下问题:C# Utils.ReadUTF方法的具体用法?C# Utils.ReadUTF怎么用?C# Utils.ReadUTF使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Utils的用法示例。


在下文中一共展示了Utils.ReadUTF方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: deserialize

 public static ChatClientPrivateMessage deserialize(Utils.Objects.Packet sender)
 {
     return new ChatClientPrivateMessage
         (
             sender.ReadUTF(),
             Global.Environnement.getInstance().GetCharacterByName( sender.ReadUTF() )
         );
 }
开发者ID:Emudofus,项目名称:Aldos,代码行数:8,代码来源:ChatClientPrivateMessage.cs

示例2: deserialize

 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)
         );
 }
开发者ID:Emudofus,项目名称:Aldos,代码行数:10,代码来源:ChatClientPrivateMessage.cs

示例3: deserialize

        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
                });
        }
开发者ID:Emudofus,项目名称:Aldos,代码行数:15,代码来源:CharacterCreationRequestMessage.cs

示例4: deserialize

        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
                        )
                );
        }
开发者ID:Emudofus,项目名称:Aldos,代码行数:18,代码来源:CharacterCreationRequestMessage.cs

示例5: deserialize

 public static CharacterDeletionRequestMessage deserialize(Utils.Objects.Packet sender)
 {
     return new CharacterDeletionRequestMessage(sender.ReadInt(), sender.ReadUTF());
 }
开发者ID:Emudofus,项目名称:Aldos,代码行数:4,代码来源:CharacterDeletionRequestMessage.cs

示例6: deserialize

 public static FriendDeleteRequestMessage deserialize(Utils.Objects.Packet sender)
 {
     return new FriendDeleteRequestMessage(sender.ReadUTF());
 }
开发者ID:Emudofus,项目名称:Aldos,代码行数:4,代码来源:FriendDeleteRequestMessage.cs

示例7: deserialize

 public static AuthenticationTicketMessage deserialize(Utils.Objects.Packet sender)
 {
     sender.ReadUTF(); // LANG
     return new AuthenticationTicketMessage( sender.ReadUTF() );
 }
开发者ID:Emudofus,项目名称:Aldos,代码行数:5,代码来源:AuthenticationTicketMessage.cs

示例8: deserialize

 public static HelloConnectMessage deserialize(Utils.Objects.Packet sender)
 {
     sender.ReadBool();
     return new HelloConnectMessage( sender.ReadUTF() );
 }
开发者ID:Emudofus,项目名称:Aldos,代码行数:5,代码来源:HelloConnectMessage.cs

示例9: deserialize

 public static CharacterNameSuggestionSuccessMessage deserialize(Utils.Objects.Packet packet)
 {
     CharacterNameSuggestionSuccessMessage ret = new CharacterNameSuggestionSuccessMessage();
     ret.Name = packet.ReadUTF();
     return ret;
 }
开发者ID:Emudofus,项目名称:Aldos,代码行数:6,代码来源:CharacterNameSuggestionSuccessMessage.cs

示例10: deserialize

 public static IdentificationMessage deserialize(Utils.Objects.Packet sender)
 {
     Version.deserialize(sender);
     return new IdentificationMessage(sender.ReadUTF(), sender.ReadUTF(), sender.ReadBool());
 }
开发者ID:Emudofus,项目名称:Aldos,代码行数:5,代码来源:IdentificationMessage.cs

示例11: deserialize

 public static PartyInvitationRequestMessage deserialize(Utils.Objects.Packet sender)
 {
     return new PartyInvitationRequestMessage(Global.Environnement.getInstance().GetCharacterByName(sender.ReadUTF()));
 }
开发者ID:Emudofus,项目名称:Aldos,代码行数:4,代码来源:PartyInvitationRequestMessage.cs

示例12: deserialize

 public static AdminCommandMessage deserialize(Utils.Objects.Packet sender)
 {
     return new AdminCommandMessage(sender.ReadUTF());
 }
开发者ID:Emudofus,项目名称:Aldos,代码行数:4,代码来源:AdminCommandMessage.cs

示例13: deserialize

 public static ChatClientMultiMessage deserialize(Utils.Objects.Packet sender)
 {
     return new ChatClientMultiMessage(sender.ReadUTF(), (Channel)sender.ReadByte());
 }
开发者ID:Emudofus,项目名称:Aldos,代码行数:4,代码来源:ChatClientMultiMessage.cs

示例14: deserialize

 public static PartyInvitationRequestMessage deserialize(Utils.Objects.Packet sender)
 {
     string target = sender.ReadUTF();
     return new PartyInvitationRequestMessage(Global.Character.FindOne(chr => chr.Name == target));
 }
开发者ID:Emudofus,项目名称:Aldos,代码行数:5,代码来源:PartyInvitationRequestMessage.cs


注:本文中的System.Utils.ReadUTF方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。