예제 #1
0
 public override void Read(Vault vault, BinaryReader br)
 {
     Transform    = new VinylTransform(Class, Field, Collection);
     Color        = new VinylColor(Class, Field, Collection);
     PartNameHash = br.ReadUInt32();
     Mirrored     = br.ReadBoolean();
     br.AlignReader(4);
     Transform.Read(vault, br);
     Color.Read(vault, br);
 }
예제 #2
0
 public override void Read(Vault vault, BinaryReader br)
 {
     Transform    = new VinylTransform(Class, Field, Collection);
     Colors       = new VinylColor[4];
     PartNameHash = br.ReadUInt32();  // 4
     Mirrored     = br.ReadBoolean(); // 5
     br.AlignReader(4);               // 5 + (4 - 5 % 4) = 8
     Transform.Read(vault, br);
     for (int i = 0; i < 4; i++)
     {
         Colors[i] = new VinylColor(Class, Field, Collection);
         Colors[i].Read(vault, br);
     }
 }