TiledMapTileLayerDataChunkContent.cs 781 B

1234567891011121314151617181920212223242526272829
  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.Collections.Generic;
  5. using System.Xml.Serialization;
  6. namespace MonoGame.Extended.Content.Tiled;
  7. public class TiledMapTileLayerDataChunkContent
  8. {
  9. [XmlAttribute(AttributeName = "x")]
  10. public int X { get; set; }
  11. [XmlAttribute(AttributeName = "y")]
  12. public int Y { get; set; }
  13. [XmlAttribute(AttributeName = "width")]
  14. public int Width { get; set; }
  15. [XmlAttribute(AttributeName = "height")]
  16. public int Height { get; set; }
  17. [XmlElement(ElementName = "tile")]
  18. public List<TiledMapTileContent> Tiles { get; set; }
  19. [XmlText]
  20. public string Value { get; set; }
  21. }