本文整理汇总了C#中Emulator.Common.IO.BigEndianWriter类的典型用法代码示例。如果您正苦于以下问题:C# BigEndianWriter类的具体用法?C# BigEndianWriter怎么用?C# BigEndianWriter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BigEndianWriter类属于Emulator.Common.IO命名空间,在下文中一共展示了BigEndianWriter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public virtual void Serialize(BigEndianWriter writer)
{
writer.WriteInt(ContextualId);
Look.Serialize(writer);
writer.WriteShort(Disposition.TypeId);
Disposition.Serialize(writer);
}
示例2: Serialize
public virtual void Serialize(BigEndianWriter writer)
{
writer.WriteShort(ActionId);
writer.WriteInt(SourceId);
writer.WriteShort(Effect.TypeId);
Effect.Serialize(writer);
}
示例3: Serialize
public override void Serialize(BigEndianWriter writer)
{
base.Serialize(writer);
writer.WriteShort(HumanoidInfo.TypeId);
HumanoidInfo.Serialize(writer);
writer.WriteInt(AccountId);
}
示例4: BuildPacket
private void BuildPacket(BigEndianWriter writer)
{
byte[] data = writer.Data;
writer.Clear();
int messageLenghtType = ComputeTypeLen(data.Length);
short header = ComputeStaticHeader((int) MessageId, messageLenghtType);
writer.WriteShort(header);
switch (messageLenghtType)
{
case 1:
writer.WriteByte((byte) data.Length);
break;
case 2:
writer.WriteShort((short) data.Length);
break;
case 3:
writer.WriteByte((byte) (data.Length >> 16 & 255));
writer.WriteShort((short) (data.Length & 65535));
break;
}
writer.WriteBytes(data);
}
示例5: Serialize
public override void Serialize(BigEndianWriter writer)
{
base.Serialize(writer);
writer.WriteSByte(DeathState);
writer.WriteShort(DeathCount);
writer.WriteByte(DeathMaxLevel);
}
示例6: 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);
}
示例7: Serialize
public override void Serialize(BigEndianWriter writer)
{
base.Serialize(writer);
writer.WriteByte(Level);
GuildInfo.Serialize(writer);
writer.WriteInt(ExperienceForGuild);
}
示例8: 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);
}
示例9: Serialize
public override void Serialize(BigEndianWriter writer)
{
base.Serialize(writer);
writer.WriteByte(Position);
writer.WriteInt(SpellId);
writer.WriteSByte(SpellLevel);
}
示例10: Serialize
public override void Serialize(BigEndianWriter writer)
{
base.Serialize(writer);
writer.WriteInt(MountId);
writer.WriteDouble(Date);
writer.WriteShort(ModelId);
}
示例11: Serialize
public override void Serialize(BigEndianWriter writer)
{
base.Serialize(writer);
writer.WriteShort(Days);
writer.WriteShort(Hours);
writer.WriteShort(Minutes);
}
示例12: Serialize
public override void Serialize(BigEndianWriter writer)
{
base.Serialize(writer);
writer.WriteInt(TargetId);
writer.WriteShort(StateId);
writer.WriteBoolean(Active);
}
示例13: Serialize
public override void Serialize(BigEndianWriter writer)
{
base.Serialize(writer);
writer.WriteShort(MarkId);
writer.WriteInt(TriggeringCharacterId);
writer.WriteShort(TriggeredSpellId);
}
示例14: Serialize
public override void Serialize(BigEndianWriter writer)
{
base.Serialize(writer);
writer.WriteSByte(PlayerState);
writer.WriteInt(LastConnection);
writer.WriteInt(AchievementPoints);
}
示例15: Serialize
public override void Serialize(BigEndianWriter writer)
{
base.Serialize(writer);
writer.WriteInt(TargetId);
writer.WriteShort(StartCellId);
writer.WriteShort(EndCellId);
}