示例#1
0
 public UnknownOptionalHeaderData(PowerByteArray data)
 {
     floats = new float[10];
     for (int i = 0; i < 10; i++)
     {
         floats[i] = data.ReadFloat(i * 4);
     }
     short1 = data.ReadS16(40);
     short2 = data.ReadS16(42);
     short3 = data.ReadS16(44);
     b      = data[46];
 }
示例#2
0
 public Vertex(PowerByteArray bytes16)
 {
     x      = bytes16.ReadS16(0);
     y      = bytes16.ReadS16(2);
     z      = bytes16.ReadS16(4);
     index  = bytes16.ReadU16(6);
     unk1   = bytes16.ReadU16(8);
     unk2   = bytes16.ReadU16(10);
     colorR = bytes16[12];
     colorG = bytes16[13];
     colorB = bytes16[14];
     colorA = bytes16[15];
 }