本文整理汇总了C#中BlueSheep.Common.IO.BigEndianReader.ReadFloat方法的典型用法代码示例。如果您正苦于以下问题:C# BigEndianReader.ReadFloat方法的具体用法?C# BigEndianReader.ReadFloat怎么用?C# BigEndianReader.ReadFloat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BlueSheep.Common.IO.BigEndianReader
的用法示例。
在下文中一共展示了BigEndianReader.ReadFloat方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public virtual void Deserialize(BigEndianReader reader)
{
var limit = reader.ReadUShort();
quantities = new int[limit];
for (int i = 0; i < limit; i++)
{
quantities[i] = reader.ReadVarInt();
}
limit = reader.ReadUShort();
types = new int[limit];
for (int i = 0; i < limit; i++)
{
types[i] = reader.ReadVarInt();
}
taxPercentage = reader.ReadFloat();
taxModificationPercentage = reader.ReadFloat();
maxItemLevel = reader.ReadByte();
if (maxItemLevel < 0 || maxItemLevel > 255)
throw new Exception("Forbidden value on maxItemLevel = " + maxItemLevel + ", it doesn't respect the following condition : maxItemLevel < 0 || maxItemLevel > 255");
maxItemPerAccount = reader.ReadVarInt();
if (maxItemPerAccount < 0)
throw new Exception("Forbidden value on maxItemPerAccount = " + maxItemPerAccount + ", it doesn't respect the following condition : maxItemPerAccount < 0");
npcContextualId = reader.ReadInt();
unsoldDelay = reader.ReadVarShort();
if (unsoldDelay < 0)
throw new Exception("Forbidden value on unsoldDelay = " + unsoldDelay + ", it doesn't respect the following condition : unsoldDelay < 0");
}
示例2: Deserialize
public virtual void Deserialize(BigEndianReader reader)
{
this.objectUID = reader.ReadVarInt();
this.bonusMin = reader.ReadFloat();
this.bonusMax = reader.ReadFloat();
var limit = reader.ReadUShort();
for(int i=0;i<limit;i++)
{
this.runesId.Add(reader.ReadVarShort());
}
var newLimit = reader.ReadUShort();
for(int i=0;i<newLimit;i++)
{
this.runesQty.Add(reader.ReadVarInt());
}
}