本文整理汇总了C#中Emulator.Common.IO.BigEndianReader.ReadByte方法的典型用法代码示例。如果您正苦于以下问题:C# BigEndianReader.ReadByte方法的具体用法?C# BigEndianReader.ReadByte怎么用?C# BigEndianReader.ReadByte使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Emulator.Common.IO.BigEndianReader
的用法示例。
在下文中一共展示了BigEndianReader.ReadByte方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetMessageLenght
private static int GetMessageLenght(BigEndianReader data, ushort read)
{
switch (read & 3)
{
case 1:
return data.ReadByte();
case 2:
return data.ReadUShort();
case 3:
return (data.ReadByte() << 16) + (data.ReadByte() << 8) + data.ReadByte();
default:
return 0;
}
}
示例2: Deserialize
public override void Deserialize(BigEndianReader reader)
{
base.Deserialize(reader);
Position = reader.ReadByte();
SpellId = reader.ReadInt();
SpellLevel = reader.ReadSByte();
}
示例3: Deserialize
public override void Deserialize(BigEndianReader reader)
{
byte flag1 = reader.ReadByte();
Success = BooleanByteWrapper.GetFlag(flag1, 0);
AutomaticAction = BooleanByteWrapper.GetFlag(flag1, 1);
ActionId = reader.ReadInt();
}
示例4: Deserialize
public override void Deserialize(BigEndianReader reader)
{
byte flag1 = reader.ReadByte();
Success = BooleanByteWrapper.GetFlag(flag1, 0);
Session = BooleanByteWrapper.GetFlag(flag1, 1);
Name = reader.ReadUTF();
}
示例5: Deserialize
public override void Deserialize(BigEndianReader reader)
{
base.Deserialize(reader);
DeathState = reader.ReadSByte();
DeathCount = reader.ReadShort();
DeathMaxLevel = reader.ReadByte();
}
示例6: Deserialize
public virtual void Deserialize(BigEndianReader reader)
{
byte flag1 = reader.ReadByte();
IsEntered = BooleanByteWrapper.GetFlag(flag1, 0);
IsInRoom = BooleanByteWrapper.GetFlag(flag1, 1);
AreaId = reader.ReadShort();
AreaAlignment = reader.ReadSByte();
}
示例7: Deserialize
public override void Deserialize(BigEndianReader reader)
{
base.Deserialize(reader);
Level = reader.ReadByte();
GuildInfo = new BasicGuildInformations();
GuildInfo.Deserialize(reader);
ExperienceForGuild = reader.ReadInt();
}
示例8: Deserialize
public virtual void Deserialize(BigEndianReader reader)
{
byte flag1 = reader.ReadByte();
IsSecret = BooleanByteWrapper.GetFlag(flag1, 0);
IsRestrictedToPartyOnly = BooleanByteWrapper.GetFlag(flag1, 1);
IsClosed = BooleanByteWrapper.GetFlag(flag1, 2);
IsAskingForHelp = BooleanByteWrapper.GetFlag(flag1, 3);
}
示例9: Deserialize
public override void Deserialize(BigEndianReader reader)
{
Salt = reader.ReadUTF();
var limit = reader.ReadUShort();
Key = new byte[limit];
for (int i = 0; i < limit; i++)
{
Key[i] = reader.ReadByte();
}
}
示例10: Deserialize
public override void Deserialize(BigEndianReader reader)
{
PresetId = reader.ReadSByte();
Code = reader.ReadSByte();
var limit = reader.ReadUShort();
UnlinkedPosition = new byte[limit];
for (int i = 0; i < limit; i++)
{
UnlinkedPosition[i] = reader.ReadByte();
}
}
示例11: Deserialize
public override void Deserialize(BigEndianReader reader)
{
base.Deserialize(reader);
Level = reader.ReadByte();
var limit = reader.ReadUShort();
Additional = new FightResultAdditionalData[limit];
for (int i = 0; i < limit; i++)
{
Additional[i] = Types.ProtocolTypeManager.GetInstance<FightResultAdditionalData>(reader.ReadShort());
Additional[i].Deserialize(reader);
}
}
示例12: Deserialize
public override void Deserialize(BigEndianReader reader)
{
base.Deserialize(reader);
Time = reader.ReadByte();
}
示例13: Deserialize
public override void Deserialize(BigEndianReader reader)
{
base.Deserialize(reader);
byte flag1 = reader.ReadByte();
HasFriend = BooleanByteWrapper.GetFlag(flag1, 0);
HasGuildMember = BooleanByteWrapper.GetFlag(flag1, 1);
HasGroupMember = BooleanByteWrapper.GetFlag(flag1, 2);
HasMyTaxCollector = BooleanByteWrapper.GetFlag(flag1, 3);
TeamMembersCount = reader.ReadSByte();
MeanLevel = reader.ReadInt();
}
示例14: Deserialize
public override void Deserialize(BigEndianReader reader)
{
base.Deserialize(reader);
Id = reader.ReadInt();
LifePoints = reader.ReadInt();
MaxLifePoints = reader.ReadInt();
Prospecting = reader.ReadShort();
RegenRate = reader.ReadByte();
}
示例15: Deserialize
public override void Deserialize(BigEndianReader reader)
{
RegenRate = reader.ReadByte();
}