當前位置: 首頁>>代碼示例>>C#>>正文


C# GameBitBuffer.ReadBool方法代碼示例

本文整理匯總了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.");
//.........這裏部分代碼省略.........
開發者ID:starcasters,項目名稱:type-extractor,代碼行數:101,代碼來源:classgenerator-output.cs

示例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");
     }
 }
開發者ID:starcasters,項目名稱:type-extractor,代碼行數:20,代碼來源:classgenerator-output.cs


注:本文中的gslibrary.GameBitBuffer.ReadBool方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。