本文整理汇总了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);
}
示例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);
}
}