TiledMapTileLayerContent.cs 896 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright (c) Craftwork Games. All rights reserved.
  2. // Licensed under the MIT license.
  3. // See LICENSE file in the project root for full license information.
  4. using System.Xml.Serialization;
  5. using MonoGame.Extended.Tiled;
  6. namespace MonoGame.Extended.Content.Tiled;
  7. public class TiledMapTileLayerContent : TiledMapLayerContent
  8. {
  9. public TiledMapTileLayerContent()
  10. : base(TiledMapLayerType.TileLayer)
  11. {
  12. }
  13. [XmlAttribute(AttributeName = "x")]
  14. public int X { get; set; }
  15. [XmlAttribute(AttributeName = "y")]
  16. public int Y { get; set; }
  17. [XmlAttribute(AttributeName = "width")]
  18. public int Width { get; set; }
  19. [XmlAttribute(AttributeName = "height")]
  20. public int Height { get; set; }
  21. [XmlElement(ElementName = "data")]
  22. public TiledMapTileLayerDataContent Data { get; set; }
  23. [XmlIgnore]
  24. public TiledMapTile[] Tiles { get; set; }
  25. }