Beispiel #1
0
 public void Write(EndianBinaryWriterEx writer)
 {
     writer.Write(id);
     writer.WritePSSGString(name);
     writer.Write(attributeInfo.Count);
     foreach (KeyValuePair <int, CAttributeInfo> info in attributeInfo)
     {
         writer.Write(info.Key);
         writer.WritePSSGString(info.Value.name);
     }
 }
Beispiel #2
0
 public void Write(EndianBinaryWriterEx writer)
 {
     writer.Write(id);
     writer.Write(size);
     if (data is string)
     {
         writer.WritePSSGString((string)data);
     }
     else if (data is UInt16)
     {
         writer.Write((UInt16)data);
     }
     else if (data is UInt32)
     {
         writer.Write((UInt32)data);
     }
     else if (data is Int16)
     {
         writer.Write((Int16)data);
     }
     else if (data is Int32)
     {
         writer.Write((Int32)data);
     }
     else if (data is Single)
     {
         writer.Write((Single)data);
     }
     else if (data is bool)
     {
         writer.Write((bool)data);
     }
     else
     {
         writer.Write((byte[])data);
     }
 }
Beispiel #3
0
 public void Write(EndianBinaryWriterEx writer)
 {
     writer.Write(id);
     writer.WritePSSGString(name);
     writer.Write(attributeInfo.Count);
     foreach (KeyValuePair<int, CAttributeInfo> info in attributeInfo) {
         writer.Write(info.Key);
         writer.WritePSSGString(info.Value.name);
     }
 }
Beispiel #4
0
 public void Write(EndianBinaryWriterEx writer)
 {
     writer.Write(id);
     writer.Write(size);
     if (data is string) {
         writer.WritePSSGString((string)data);
     } else if (data is UInt16) {
         writer.Write((UInt16)data);
     } else if (data is UInt32) {
         writer.Write((UInt32)data);
     } else if (data is Int16) {
         writer.Write((Int16)data);
     } else if (data is Int32) {
         writer.Write((Int32)data);
     } else if (data is Single) {
         writer.Write((Single)data);
     }
     else if (data is bool)
     {
         writer.Write((bool)data);
     }
     else
     {
         writer.Write((byte[])data);
     }
 }