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


C# BigEndianWriter.WriteByte方法代码示例

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


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

示例1: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     byte flag1 = 0;
     flag1 = BooleanByteWrapper.SetFlag(flag1, 0, CanChangeName);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 1, CanChangeEmblem);
     writer.WriteByte(flag1);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:GuildModificationStartedMessage.cs

示例2: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     byte flag1 = 0;
     flag1 = BooleanByteWrapper.SetFlag(flag1, 0, Enable);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 1, Invisible);
     writer.WriteByte(flag1);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:BasicSetAwayModeRequestMessage.cs

示例3: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteByte(Position);
     writer.WriteInt(SpellId);
     writer.WriteSByte(SpellLevel);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:SpellItem.cs

示例4: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteUTF(Salt);
     writer.WriteUShort((ushort) Key.Length);
     foreach (var entry in Key)
     {
         writer.WriteByte(entry);
     }
 }
开发者ID:Riul,项目名称:emulator,代码行数:9,代码来源:HelloConnectMessage.cs

示例5: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteByte(Level);
     writer.WriteUShort((ushort) Additional.Length);
     foreach (var entry in Additional)
     {
         writer.WriteShort(entry.TypeId);
         entry.Serialize(writer);
     }
 }
开发者ID:Riul,项目名称:emulator,代码行数:11,代码来源:FightResultPlayerListEntry.cs

示例6: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteSByte(PresetId);
     writer.WriteSByte(Code);
     writer.WriteUShort((ushort) UnlinkedPosition.Length);
     foreach (var entry in UnlinkedPosition)
     {
         writer.WriteByte(entry);
     }
 }
开发者ID:Riul,项目名称:emulator,代码行数:10,代码来源:InventoryPresetUseResultMessage.cs

示例7: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteByte(NewLevel);
 }
开发者ID:Riul,项目名称:emulator,代码行数:4,代码来源:CharacterLevelUpMessage.cs

示例8: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteUTF(OwnerName);
     writer.WriteByte(Level);
 }
开发者ID:Riul,项目名称:emulator,代码行数:6,代码来源:GameRolePlayMountInformations.cs

示例9: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteByte(Time);
 }
开发者ID:Riul,项目名称:emulator,代码行数:5,代码来源:SkillActionDescriptionTimed.cs

示例10: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteInt(Id);
     writer.WriteInt(LifePoints);
     writer.WriteInt(MaxLifePoints);
     writer.WriteShort(Prospecting);
     writer.WriteByte(RegenRate);
 }
开发者ID:Riul,项目名称:emulator,代码行数:9,代码来源:PartyUpdateLightMessage.cs

示例11: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteByte(RequestId);
     writer.WriteSByte(ContactType);
 }
开发者ID:Riul,项目名称:emulator,代码行数:5,代码来源:ContactLookRequestMessage.cs

示例12: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     writer.WriteInt(LivingUID);
     writer.WriteByte(LivingPosition);
 }
开发者ID:Riul,项目名称:emulator,代码行数:5,代码来源:LivingObjectDissociateMessage.cs

示例13: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     writer.WriteByte(Level);
     GuildInfo.Serialize(writer);
     writer.WriteInt(ExperienceForGuild);
 }
开发者ID:Riul,项目名称:emulator,代码行数:7,代码来源:FightResultTaxCollectorListEntry.cs

示例14: Serialize

 public override void Serialize(BigEndianWriter writer)
 {
     base.Serialize(writer);
     byte flag1 = 0;
     flag1 = BooleanByteWrapper.SetFlag(flag1, 0, HasFriend);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 1, HasGuildMember);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 2, HasGroupMember);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 3, HasMyTaxCollector);
     writer.WriteByte(flag1);
     writer.WriteSByte(TeamMembersCount);
     writer.WriteInt(MeanLevel);
 }
开发者ID:Riul,项目名称:emulator,代码行数:12,代码来源:FightTeamLightInformations.cs

示例15: Serialize

 public virtual void Serialize(BigEndianWriter writer)
 {
     byte flag1 = 0;
     flag1 = BooleanByteWrapper.SetFlag(flag1, 0, CantBeAggressed);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 1, CantBeChallenged);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 2, CantTrade);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 3, CantBeAttackedByMutant);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 4, CantRun);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 5, ForceSlowWalk);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 6, CantMinimize);
     flag1 = BooleanByteWrapper.SetFlag(flag1, 7, CantMove);
     writer.WriteByte(flag1);
     byte flag2 = 0;
     flag2 = BooleanByteWrapper.SetFlag(flag2, 0, CantAggress);
     flag2 = BooleanByteWrapper.SetFlag(flag2, 1, CantChallenge);
     flag2 = BooleanByteWrapper.SetFlag(flag2, 2, CantExchange);
     flag2 = BooleanByteWrapper.SetFlag(flag2, 3, CantAttack);
     flag2 = BooleanByteWrapper.SetFlag(flag2, 4, CantChat);
     flag2 = BooleanByteWrapper.SetFlag(flag2, 5, CantBeMerchant);
     flag2 = BooleanByteWrapper.SetFlag(flag2, 6, CantUseObject);
     flag2 = BooleanByteWrapper.SetFlag(flag2, 7, CantUseTaxCollector);
     writer.WriteByte(flag2);
     byte flag3 = 0;
     flag3 = BooleanByteWrapper.SetFlag(flag3, 0, CantUseInteractive);
     flag3 = BooleanByteWrapper.SetFlag(flag3, 1, CantSpeakToNPC);
     flag3 = BooleanByteWrapper.SetFlag(flag3, 2, CantChangeZone);
     flag3 = BooleanByteWrapper.SetFlag(flag3, 3, CantAttackMonster);
     flag3 = BooleanByteWrapper.SetFlag(flag3, 4, CantWalk8Directions);
     writer.WriteByte(flag3);
 }
开发者ID:Riul,项目名称:emulator,代码行数:30,代码来源:ActorRestrictionsInformations.cs


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