本文整理汇总了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);
}
示例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);
}
示例3: Serialize
public override void Serialize(BigEndianWriter writer)
{
base.Serialize(writer);
writer.WriteByte(Position);
writer.WriteInt(SpellId);
writer.WriteSByte(SpellLevel);
}
示例4: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteUTF(Salt);
writer.WriteUShort((ushort) Key.Length);
foreach (var entry in Key)
{
writer.WriteByte(entry);
}
}
示例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);
}
}
示例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);
}
}
示例7: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteByte(NewLevel);
}
示例8: Serialize
public override void Serialize(BigEndianWriter writer)
{
base.Serialize(writer);
writer.WriteUTF(OwnerName);
writer.WriteByte(Level);
}
示例9: Serialize
public override void Serialize(BigEndianWriter writer)
{
base.Serialize(writer);
writer.WriteByte(Time);
}
示例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);
}
示例11: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteByte(RequestId);
writer.WriteSByte(ContactType);
}
示例12: Serialize
public override void Serialize(BigEndianWriter writer)
{
writer.WriteInt(LivingUID);
writer.WriteByte(LivingPosition);
}
示例13: Serialize
public override void Serialize(BigEndianWriter writer)
{
base.Serialize(writer);
writer.WriteByte(Level);
GuildInfo.Serialize(writer);
writer.WriteInt(ExperienceForGuild);
}
示例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);
}
示例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);
}