public void Read(AssetReader reader) { if (IsReadIndex(reader.Version)) { Index = reader.ReadInt32(); } UV.Read(reader); Vert.Read(reader); if (IsReadWidth(reader.Version)) { Width = reader.ReadSingle(); } if (IsReadAdvance(reader.Version)) { Advance = reader.ReadSingle(); } if (IsReadFlipped(reader.Version)) { Flipped = reader.ReadBoolean(); reader.AlignStream(AlignType.Align4); } }
public void Read(AssetStream stream) { if (IsReadIndex(stream.Version)) { Index = stream.ReadInt32(); } UV.Read(stream); Vert.Read(stream); if (IsReadWidth(stream.Version)) { Width = stream.ReadSingle(); } if (IsReadAdvance(stream.Version)) { Advance = stream.ReadSingle(); } if (IsReadFlipped(stream.Version)) { Flipped = stream.ReadBoolean(); stream.AlignStream(AlignType.Align4); } }