internal OgmoTile(ContentReader reader, OgmoTileLayer layer)
 {
     this.Height = reader.ReadInt32();
     this.Position = reader.ReadVector2();
     this.SourceIndex = reader.ReadInt32();
     Vector2 offset = reader.ReadVector2();
     Point point = new Point((int)offset.X, (int)offset.Y);
     this.TextureOffset = point;
     string tilesetName = reader.ReadString();
     this.Tileset = layer.GetTileset(tilesetName);
     this.Width = reader.ReadInt32();
 }
Esempio n. 2
0
 protected internal override Vector2 Read(
     ContentReader input,
     Vector2 existingInstance
     )
 {
     return(input.ReadVector2());
 }
 internal OgmoNode(ContentReader reader)
 {
     this.Position = reader.ReadVector2();
 }