本文整理汇总了C#中gslibrary.GameBitBuffer.ReadBool方法的典型用法代码示例。如果您正苦于以下问题:C# GameBitBuffer.ReadBool方法的具体用法?C# GameBitBuffer.ReadBool怎么用?C# GameBitBuffer.ReadBool使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gslibrary.GameBitBuffer
的用法示例。
在下文中一共展示了GameBitBuffer.ReadBool方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Parse
public override void Parse(GameBitBuffer buffer)
{
Name = buffer.ReadCharArray(256);
Actor = buffer.ReadInt(32);
ItemType1 = buffer.ReadInt(32);
Field3 = buffer.ReadInt(32);
Field4 = buffer.ReadInt(10) + (-1);
Field5 = buffer.ReadInt(32);
Field6 = buffer.ReadInt(32);
Field7 = buffer.ReadInt(32);
Field8 = buffer.ReadInt(32);
Field9 = buffer.ReadInt(32);
Field10 = buffer.ReadInt(32);
Field11 = buffer.ReadInt(32);
Field12 = buffer.ReadInt(32);
Field13 = buffer.ReadInt(32);
Field14 = buffer.ReadInt(32);
BaseItem = buffer.ReadInt(32);
Set = buffer.ReadInt(32);
ComponentTreasureClass = buffer.ReadInt(32);
ComponentTreasureClassMagic = buffer.ReadInt(32);
ComponentTreasureClassRare = buffer.ReadInt(32);
RareNamePrefixStringList = buffer.ReadInt(32);
RareNameSuffixStringList = buffer.ReadInt(32);
Field22 = buffer.ReadBool();
Field23 = buffer.ReadBool();
Field24 = buffer.ReadBool();
Field25 = buffer.ReadBool();
Field26 = buffer.ReadBool();
Field27 = buffer.ReadBool();
Field28 = buffer.ReadBool();
Field29 = buffer.ReadBool();
Field30 = buffer.ReadInt(32);
Field31 = buffer.ReadFloat32();
Field32 = buffer.ReadFloat32();
Field33 = buffer.ReadFloat32();
Field34 = buffer.ReadFloat32();
Field35 = buffer.ReadFloat32();
Field36 = buffer.ReadFloat32();
Field37 = buffer.ReadFloat32();
Skill0 = buffer.ReadInt(32);
Field39 = buffer.ReadInt(32);
Skill1 = buffer.ReadInt(32);
Field41 = buffer.ReadInt(32);
Skill2 = buffer.ReadInt(32);
Field43 = buffer.ReadInt(32);
Skill3 = buffer.ReadInt(32);
Field45 = buffer.ReadInt(32);
Field46 = new int[4];
for(int i = 0;i < _Field46.Length;i++) _Field46[i] = buffer.ReadInt(32);
Field47 = buffer.ReadInt(0);
buffer.ReadInt(32);
ptAttributes_0__serAttributeFormula = new SerializeData();
ptAttributes_0__serAttributeFormula.Parse(buffer);
throw new Exception("DT_FORMULA in network packets not implemented.");
Field51 = buffer.ReadInt(0);
buffer.ReadInt(32);
ptAttributes_1__serAttributeFormula = new SerializeData();
ptAttributes_1__serAttributeFormula.Parse(buffer);
throw new Exception("DT_FORMULA in network packets not implemented.");
Field55 = buffer.ReadInt(0);
buffer.ReadInt(32);
ptAttributes_2__serAttributeFormula = new SerializeData();
ptAttributes_2__serAttributeFormula.Parse(buffer);
throw new Exception("DT_FORMULA in network packets not implemented.");
Field59 = buffer.ReadInt(0);
buffer.ReadInt(32);
ptAttributes_3__serAttributeFormula = new SerializeData();
ptAttributes_3__serAttributeFormula.Parse(buffer);
throw new Exception("DT_FORMULA in network packets not implemented.");
Field63 = buffer.ReadInt(0);
buffer.ReadInt(32);
ptAttributes_4__serAttributeFormula = new SerializeData();
ptAttributes_4__serAttributeFormula.Parse(buffer);
throw new Exception("DT_FORMULA in network packets not implemented.");
Field67 = buffer.ReadInt(0);
buffer.ReadInt(32);
ptAttributes_5__serAttributeFormula = new SerializeData();
ptAttributes_5__serAttributeFormula.Parse(buffer);
throw new Exception("DT_FORMULA in network packets not implemented.");
Field71 = buffer.ReadInt(0);
buffer.ReadInt(32);
ptAttributes_6__serAttributeFormula = new SerializeData();
ptAttributes_6__serAttributeFormula.Parse(buffer);
throw new Exception("DT_FORMULA in network packets not implemented.");
Field75 = buffer.ReadInt(0);
buffer.ReadInt(32);
ptAttributes_7__serAttributeFormula = new SerializeData();
ptAttributes_7__serAttributeFormula.Parse(buffer);
throw new Exception("DT_FORMULA in network packets not implemented.");
Field79 = buffer.ReadInt(0);
buffer.ReadInt(32);
ptAttributes_8__serAttributeFormula = new SerializeData();
ptAttributes_8__serAttributeFormula.Parse(buffer);
throw new Exception("DT_FORMULA in network packets not implemented.");
Field83 = buffer.ReadInt(0);
buffer.ReadInt(32);
ptAttributes_9__serAttributeFormula = new SerializeData();
ptAttributes_9__serAttributeFormula.Parse(buffer);
throw new Exception("DT_FORMULA in network packets not implemented.");
//.........这里部分代码省略.........
示例2: ParseValue
public void ParseValue(GameBitBuffer buffer)
{
switch (Field1.EncodingType)
{
case GameAttributeEncoding.Int:
Int = buffer.ReadInt(Field1.BitCount);
break;
case GameAttributeEncoding.IntMinMax:
Int = buffer.ReadInt(Field1.BitCount) + Field1.Min.Value;
break;
case GameAttributeEncoding.Float16:
Float = buffer.ReadFloat16();
break;
case GameAttributeEncoding.Float16Or32:
Float = buffer.ReadBool() ? buffer.ReadFloat16() : buffer.ReadFloat32();
break;
default:
throw new Exception("bad voodoo");
}
}