summaryrefslogtreecommitdiff
path: root/Plugins/MonoGame.Extended/source/MonoGame.Extended.Tiled/Serialization/TiledMapTilesetTileAnimationFrameContent.cs
blob: 5a171371d985479f1684e575791a772291b52599 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System.Xml.Serialization;

namespace MonoGame.Extended.Tiled.Serialization
{
    public class TiledMapTilesetTileAnimationFrameContent
    {
        [XmlAttribute(AttributeName = "tileid")]
        public int TileIdentifier { get; set; }

        [XmlAttribute(AttributeName = "duration")]
        public int Duration { get; set; }

        public override string ToString()
        {
            return $"TileID: {TileIdentifier}, Duration: {Duration}";
        }
    }
}