当前位置: 首页>>代码示例>>C#>>正文


C# packets.SerializeData类代码示例

本文整理汇总了C#中gslibrary.packets.SerializeData的典型用法代码示例。如果您正苦于以下问题:C# SerializeData类的具体用法?C# SerializeData怎么用?C# SerializeData使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SerializeData类属于gslibrary.packets命名空间,在下文中一共展示了SerializeData类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Parse

 public override void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadCharArray(256);
     Field1 = buffer.ReadCharArray(256);
     Field2 = buffer.ReadInt(32);
     dwNumControls = buffer.ReadInt(32);
     serControlList = new SerializeData();
     serControlList.Parse(buffer);
     //still checking variablearrays
     this.ControlList = new List<UIControlData>( buffer.ReadInt(0) );
     for(int loop12 = 0; loop12 < _ControlList.Count; loop12++)
     {
         _ControlList[loop12] = new UIControlData();
         _ControlList[loop12].Parse(buffer);
     }
     dwNumStyles = buffer.ReadInt(32);
     serStyleList = new SerializeData();
     serStyleList.Parse(buffer);
     //still checking variablearrays
     this.StyleList = new List<UIStyle>( buffer.ReadInt(0) );
     for(int loop12 = 0; loop12 < _StyleList.Count; loop12++)
     {
         _StyleList[loop12] = new UIStyle();
         _StyleList[loop12].Parse(buffer);
     }
     Field9 = new DataElements();
     Field9.Parse(buffer);
 }
开发者ID:starcasters,项目名称:type-extractor,代码行数:28,代码来源:classgenerator-output.cs

示例2: FileRead

 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = new InterpolationPathHeader();
     Field0.FileRead(stream, stream.Position);
     stream.Position = offset + 32;
     serNodes = new SerializeData();
     serNodes.FileRead(stream, stream.Position);
     stream.Position = offset + 28;
     //still checking variablearrays
     Nodes = new List<VelocityVectorNode>();
     for(int i = 0; i < (int)(serNodes.Field1 / 28); i++)
     {
     stream.Position = serNodes.Field0 + 16 + (28*i) ;
         VelocityVectorNode temp12_Nodes;
         temp12_Nodes = new VelocityVectorNode();
         temp12_Nodes.FileRead(stream, stream.Position);
         _Nodes.Add(temp12_Nodes);
     }
 }
开发者ID:starcasters,项目名称:type-extractor,代码行数:20,代码来源:classgenerator-output.cs


注:本文中的gslibrary.packets.SerializeData类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。