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


C# GameBitBuffer.ReadFloat32方法代碼示例

本文整理匯總了C#中gslibrary.GameBitBuffer.ReadFloat32方法的典型用法代碼示例。如果您正苦於以下問題:C# GameBitBuffer.ReadFloat32方法的具體用法?C# GameBitBuffer.ReadFloat32怎麽用?C# GameBitBuffer.ReadFloat32使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在gslibrary.GameBitBuffer的用法示例。


在下文中一共展示了GameBitBuffer.ReadFloat32方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Parse

 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadInt(32);
     Field1 = buffer.ReadInt(32);
     Field2 = buffer.ReadFloat32();
     Field3 = buffer.ReadFloat32();
     Field4 = buffer.ReadFloat32();
     Field5 = buffer.ReadInt(32);
     Field6 = buffer.ReadFloat32();
     Field7 = buffer.ReadFloat32();
     Field8 = buffer.ReadFloat32();
     Field9 = buffer.ReadFloat32();
     Field10 = buffer.ReadFloat32();
     Field11 = buffer.ReadFloat32();
     Field12 = buffer.ReadFloat32();
     Field13 = buffer.ReadInt(32);
     serPermutations = new SerializeData();
     serPermutations.Parse(buffer);
     //still checking variablearrays
     this.Permutations = new List<SoundPermutation>( buffer.ReadInt(0) );
     for(int loop12 = 0; loop12 < _Permutations.Count; loop12++)
     {
         _Permutations[loop12] = new SoundPermutation();
         _Permutations[loop12].Parse(buffer);
     }
     Field16 = buffer.ReadInt(32);
     Field17 = buffer.ReadInt(32);
     Field18 = buffer.ReadInt(32);
     serDspEffects = new SerializeData();
     serDspEffects.Parse(buffer);
     //still checking variablearrays
     this.DspEffects = new List<DspEffect>( buffer.ReadInt(0) );
     for(int loop12 = 0; loop12 < _DspEffects.Count; loop12++)
     {
         _DspEffects[loop12] = new DspEffect();
         _DspEffects[loop12].Parse(buffer);
     }
 }
開發者ID:starcasters,項目名稱:type-extractor,代碼行數:38,代碼來源:classgenerator-output.cs


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