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


C# IDataWriter.WriteByte方法代码示例

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


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

示例1: Serialize

 public override void Serialize(IDataWriter writer)
 {
     byte flag1 = 0;
     flag1 = BooleanByteWrapper.SetFlag(flag1, 0, enabled);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 1, abandonnedPaddock);
     writer.WriteByte(flag1);
     writer.WriteByte(level);
     writer.WriteDouble(expLevelFloor);
     writer.WriteDouble(experience);
     writer.WriteDouble(expNextLevelFloor);
     writer.WriteInt(creationDate);
 }
开发者ID:Guiedo,项目名称:BehaviorIsManaged,代码行数:12,代码来源:GuildInformationsGeneralMessage.cs

示例2: Serialize

 public override void Serialize(IDataWriter writer)
 {
     byte flag1 = 0;
     flag1 = BooleanByteWrapper.SetFlag(flag1, 0, canChangeName);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 1, canChangeEmblem);
     writer.WriteByte(flag1);
 }
开发者ID:Torf,项目名称:BehaviorIsManaged,代码行数:7,代码来源:GuildModificationStartedMessage.cs

示例3: Serialize

 public override void Serialize(IDataWriter writer)
 {
     byte flag1 = 0;
     flag1 = BooleanByteWrapper.SetFlag(flag1, 0, enable);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 1, invisible);
     writer.WriteByte(flag1);
 }
开发者ID:Geraff,项目名称:BehaviorIsManaged,代码行数:7,代码来源:BasicSetAwayModeRequestMessage.cs

示例4: Serialize

 public override void Serialize(IDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteByte(position);
     writer.WriteInt(spellId);
     writer.WriteSByte(spellLevel);
 }
开发者ID:Geraff,项目名称:BehaviorIsManaged,代码行数:7,代码来源:SpellItem.cs

示例5: Serialize

 public override void Serialize(IDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteByte(level);
     guildInfo.Serialize(writer);
     writer.WriteInt(experienceForGuild);
 }
开发者ID:Geraff,项目名称:BehaviorIsManaged,代码行数:7,代码来源:FightResultTaxCollectorListEntry.cs

示例6: Serialize

 public override void Serialize(IDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteSByte(deathState);
     writer.WriteShort(deathCount);
     writer.WriteByte(deathMaxLevel);
 }
开发者ID:clapette,项目名称:BehaviorIsManaged,代码行数:7,代码来源:CharacterHardcoreInformations.cs

示例7: Serialize

 public override void Serialize(IDataWriter writer)
 {
     byte flag1 = 0;
     flag1 = BooleanByteWrapper.SetFlag(flag1, 0, success);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 1, automaticAction);
     writer.WriteByte(flag1);
     writer.WriteInt(actionId);
 }
开发者ID:Guiedo,项目名称:BehaviorIsManaged,代码行数:8,代码来源:StartupActionFinishedMessage.cs

示例8: Serialize

 public override void Serialize(IDataWriter writer)
 {
     byte flag1 = 0;
     flag1 = BooleanByteWrapper.SetFlag(flag1, 0, success);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 1, session);
     writer.WriteByte(flag1);
     writer.WriteUTF(name);
 }
开发者ID:clapette,项目名称:BehaviorIsManaged,代码行数:8,代码来源:IgnoredDeleteResultMessage.cs

示例9: Serialize

 public override void Serialize(IDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteShort(firstNameId);
     writer.WriteShort(lastNameId);
     writer.WriteByte(level);
     writer.WriteInt(guildId);
     writer.WriteInt(uid);
 }
开发者ID:clapette,项目名称:BehaviorIsManaged,代码行数:9,代码来源:FightTeamMemberTaxCollectorInformations.cs

示例10: Serialize

 public override void Serialize(IDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteShort(firstNameId);
     writer.WriteShort(lastNameId);
     guildIdentity.Serialize(writer);
     writer.WriteByte(guildLevel);
     writer.WriteInt(taxCollectorAttack);
 }
开发者ID:clapette,项目名称:BehaviorIsManaged,代码行数:9,代码来源:GameRolePlayTaxCollectorInformations.cs

示例11: Serialize

 public virtual void Serialize(IDataWriter writer)
 {
     byte flag1 = 0;
     flag1 = BooleanByteWrapper.SetFlag(flag1, 0, isEntered);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 1, isInRoom);
     writer.WriteByte(flag1);
     writer.WriteShort(areaId);
     writer.WriteSByte(areaAlignment);
 }
开发者ID:Geraff,项目名称:BehaviorIsManaged,代码行数:9,代码来源:VillageConquestPrismInformation.cs

示例12: Serialize

 public override void Serialize(IDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteInt(id);
     writer.WriteInt(lifePoints);
     writer.WriteInt(maxLifePoints);
     writer.WriteShort(prospecting);
     writer.WriteByte(regenRate);
 }
开发者ID:Guiedo,项目名称:BehaviorIsManaged,代码行数:9,代码来源:PartyUpdateLightMessage.cs

示例13: Serialize

 public virtual void Serialize(IDataWriter writer)
 {
     byte flag1 = 0;
     flag1 = BooleanByteWrapper.SetFlag(flag1, 0, isSecret);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 1, isRestrictedToPartyOnly);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 2, isClosed);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 3, isAskingForHelp);
     writer.WriteByte(flag1);
 }
开发者ID:Guiedo,项目名称:BehaviorIsManaged,代码行数:9,代码来源:FightOptionsInformations.cs

示例14: Serialize

 public override void Serialize(IDataWriter writer)
 {
     writer.WriteSByte(presetId);
     writer.WriteSByte(code);
     writer.WriteUShort((ushort)unlinkedPosition.Length);
     foreach (var entry in unlinkedPosition)
     {
          writer.WriteByte(entry);
     }
 }
开发者ID:Torf,项目名称:BehaviorIsManaged,代码行数:10,代码来源:InventoryPresetUseResultMessage.cs

示例15: Serialize

 public override void Serialize(IDataWriter writer)
 {
     base.Serialize(writer);
     byte flag1 = 0;
     flag1 = BooleanByteWrapper.SetFlag(flag1, 0, inFight);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 1, followSpouse);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 2, pvpEnabled);
     writer.WriteByte(flag1);
     writer.WriteInt(mapId);
     writer.WriteShort(subAreaId);
 }
开发者ID:Torf,项目名称:BehaviorIsManaged,代码行数:11,代码来源:FriendSpouseOnlineInformations.cs


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