TiledMapTileOffsetContent.cs 507 B

1234567891011121314151617181920
  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. namespace MonoGame.Extended.Content.Tiled;
  6. [XmlRoot(ElementName = "tileoffset")]
  7. public class TiledMapTileOffsetContent
  8. {
  9. [XmlAttribute(AttributeName = "x")] public int X;
  10. [XmlAttribute(AttributeName = "y")] public int Y;
  11. public override string ToString()
  12. {
  13. return $"{X}, {Y}";
  14. }
  15. }