TiledMapTilesetTileAnimationFrameContent.cs 591 B

123456789101112131415161718192021
  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. public class TiledMapTilesetTileAnimationFrameContent
  7. {
  8. [XmlAttribute(AttributeName = "tileid")]
  9. public int TileIdentifier { get; set; }
  10. [XmlAttribute(AttributeName = "duration")]
  11. public int Duration { get; set; }
  12. public override string ToString()
  13. {
  14. return $"TileID: {TileIdentifier}, Duration: {Duration}";
  15. }
  16. }