Exemplo n.º 1
0
 public void Read(AssetReader reader)
 {
     Position.Read(reader);
     WidthScale  = reader.ReadSingle();
     HeightScale = reader.ReadSingle();
     if (IsReadRotation(reader.Version))
     {
         Rotation = reader.ReadSingle();
     }
     Color.Read(reader);
     LightmapColor.Read(reader);
     Index = reader.ReadInt32();
 }
Exemplo n.º 2
0
 public void Read(AssetStream stream)
 {
     Position.Read(stream);
     WidthScale  = stream.ReadSingle();
     HeightScale = stream.ReadSingle();
     if (IsReadRotation(stream.Version))
     {
         Rotation = stream.ReadSingle();
     }
     Color.Read(stream);
     LightmapColor.Read(stream);
     Index = stream.ReadInt32();
 }