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


C# ICustomDataInput.ReadUTF方法代码示例

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


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

示例1: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     byte flag1 = reader.ReadByte();
     self = BooleanByteWrapper.GetFlag(flag1, 0);
     verbose = BooleanByteWrapper.GetFlag(flag1, 1);
     position = reader.ReadSByte();
     accountNickname = reader.ReadUTF();
     accountId = reader.ReadInt();
     if (accountId < 0)
         throw new Exception("Forbidden value on accountId = " + accountId + ", it doesn't respect the following condition : accountId < 0");
     playerName = reader.ReadUTF();
     playerId = reader.ReadVarUhInt();
     if (playerId < 0)
         throw new Exception("Forbidden value on playerId = " + playerId + ", it doesn't respect the following condition : playerId < 0");
     areaId = reader.ReadShort();
     var limit = reader.ReadUShort();
     socialGroups = new Types.AbstractSocialGroupInfos[limit];
     for (int i = 0; i < limit; i++)
     {
          (socialGroups as Types.AbstractSocialGroupInfos[])[i] = Types.ProtocolTypeManager.GetInstance<Types.AbstractSocialGroupInfos>(reader.ReadShort());
          (socialGroups as Types.AbstractSocialGroupInfos[])[i].Deserialize(reader);
     }
     playerState = reader.ReadSByte();
     if (playerState < 0)
         throw new Exception("Forbidden value on playerState = " + playerState + ", it doesn't respect the following condition : playerState < 0");
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:26,代码来源:BasicWhoIsMessage.cs

示例2: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     lockDuration = reader.ReadByte();
     if ((lockDuration < 0) || (lockDuration > 255))
         throw new Exception("Forbidden value on lockDuration = " + lockDuration + ", it doesn't respect the following condition : (lockDuration < 0) || (lockDuration > 255)");
     author = reader.ReadUTF();
     content = reader.ReadUTF();
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:8,代码来源:PopupWarningMessage.cs

示例3: Deserialize

 public virtual void Deserialize(ICustomDataInput reader)
 {
     modelId = reader.ReadSByte();
     if (modelId < 0)
         throw new Exception("Forbidden value on modelId = " + modelId + ", it doesn't respect the following condition : modelId < 0");
     name = reader.ReadUTF();
     ownerName = reader.ReadUTF();
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:8,代码来源:MountInformationsForPaddock.cs

示例4: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     name = reader.ReadUTF();
     worldX = reader.ReadShort();
     if ((worldX < -255) || (worldX > 255))
         throw new Exception("Forbidden value on worldX = " + worldX + ", it doesn't respect the following condition : (worldX < -255) || (worldX > 255)");
     worldY = reader.ReadShort();
     if ((worldY < -255) || (worldY > 255))
         throw new Exception("Forbidden value on worldY = " + worldY + ", it doesn't respect the following condition : (worldY < -255) || (worldY > 255)");
     liberator = reader.ReadUTF();
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:11,代码来源:ExchangeMountFreeFromPaddockMessage.cs

示例5: Deserialize

 public virtual void Deserialize(ICustomDataInput reader)
 {
     modelId = reader.ReadVarUhInt();
     if (modelId < 0)
         throw new Exception("Forbidden value on modelId = " + modelId + ", it doesn't respect the following condition : modelId < 0");
     ownerName = reader.ReadUTF();
     ownerConnected = reader.ReadBoolean();
     worldX = reader.ReadShort();
     if ((worldX < -255) || (worldX > 255))
         throw new Exception("Forbidden value on worldX = " + worldX + ", it doesn't respect the following condition : (worldX < -255) || (worldX > 255)");
     worldY = reader.ReadShort();
     if ((worldY < -255) || (worldY > 255))
         throw new Exception("Forbidden value on worldY = " + worldY + ", it doesn't respect the following condition : (worldY < -255) || (worldY > 255)");
     subAreaId = reader.ReadVarUhShort();
     if (subAreaId < 0)
         throw new Exception("Forbidden value on subAreaId = " + subAreaId + ", it doesn't respect the following condition : subAreaId < 0");
     nbRoom = reader.ReadSByte();
     nbChest = reader.ReadSByte();
     var limit = reader.ReadUShort();
     skillListIds = new int[limit];
     for (int i = 0; i < limit; i++)
     {
          (skillListIds as int[])[i] = reader.ReadInt();
     }
     isLocked = reader.ReadBoolean();
     price = reader.ReadVarUhInt();
     if (price < 0)
         throw new Exception("Forbidden value on price = " + price + ", it doesn't respect the following condition : price < 0");
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:29,代码来源:HouseInformationsForSell.cs

示例6: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     characterId = reader.ReadInt();
     if (characterId < 0)
         throw new Exception("Forbidden value on characterId = " + characterId + ", it doesn't respect the following condition : characterId < 0");
     secretAnswerHash = reader.ReadUTF();
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:7,代码来源:CharacterDeletionRequestMessage.cs

示例7: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     base.Deserialize(reader);
     name = reader.ReadUTF();
     status = new Types.PlayerStatus();
     status.Deserialize(reader);
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:7,代码来源:GameFightFighterNamedInformations.cs

示例8: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     content = reader.ReadUTF();
     timestamp = reader.ReadInt();
     if (timestamp < 0)
         throw new Exception("Forbidden value on timestamp = " + timestamp + ", it doesn't respect the following condition : timestamp < 0");
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:7,代码来源:GuildMotdMessage.cs

示例9: Deserialize

 public virtual void Deserialize(ICustomDataInput reader)
 {
     teamId = reader.ReadSByte();
     if (teamId < 0)
         throw new Exception("Forbidden value on teamId = " + teamId + ", it doesn't respect the following condition : teamId < 0");
     partyName = reader.ReadUTF();
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:7,代码来源:NamedPartyTeam.cs

示例10: Deserialize

 public virtual void Deserialize(ICustomDataInput reader)
 {
     collectorCallerName = reader.ReadUTF();
     date = reader.ReadInt();
     if (date < 0)
         throw new Exception("Forbidden value on date = " + date + ", it doesn't respect the following condition : date < 0");
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:7,代码来源:AdditionalTaxCollectorInformations.cs

示例11: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     uid = reader.ReadUTF();
     failure = reader.ReadSByte();
     if (failure < 0)
         throw new Exception("Forbidden value on failure = " + failure + ", it doesn't respect the following condition : failure < 0");
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:7,代码来源:KrosmasterTransferMessage.cs

示例12: Deserialize

 public virtual void Deserialize(ICustomDataInput reader)
 {
     id = reader.ReadInt();
     if (id < 0)
         throw new Exception("Forbidden value on id = " + id + ", it doesn't respect the following condition : id < 0");
     hash = reader.ReadUTF();
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:7,代码来源:TrustCertificate.cs

示例13: Deserialize

 public virtual void Deserialize(ICustomDataInput reader)
 {
     id = reader.ReadUTF();
     state = reader.ReadSByte();
     if (state < 0)
         throw new Exception("Forbidden value on state = " + state + ", it doesn't respect the following condition : state < 0");
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:7,代码来源:ContentPart.cs

示例14: Deserialize

 public override void Deserialize(ICustomDataInput reader)
 {
     type = reader.ReadSByte();
     if (type < 0)
         throw new Exception("Forbidden value on type = " + type + ", it doesn't respect the following condition : type < 0");
     content = reader.ReadUTF();
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:7,代码来源:ConsoleMessage.cs

示例15: Deserialize

 public virtual void Deserialize(ICustomDataInput reader)
 {
     uid = reader.ReadInt();
     if (uid < 0)
         throw new Exception("Forbidden value on uid = " + uid + ", it doesn't respect the following condition : uid < 0");
     title = reader.ReadUTF();
     text = reader.ReadUTF();
     descUrl = reader.ReadUTF();
     pictureUrl = reader.ReadUTF();
     var limit = reader.ReadUShort();
     items = new Types.ObjectItemInformationWithQuantity[limit];
     for (int i = 0; i < limit; i++)
     {
          (items as Types.ObjectItemInformationWithQuantity[])[i] = new Types.ObjectItemInformationWithQuantity();
          (items as Types.ObjectItemInformationWithQuantity[])[i].Deserialize(reader);
     }
 }
开发者ID:thomasvinot,项目名称:Symbioz,代码行数:17,代码来源:StartupActionAddObject.cs


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