summaryrefslogtreecommitdiff
path: root/Plugins/MonoGame.Extended/source/MonoGame.Extended.Tiled/TiledMapTileObject.cs
blob: b4e8679d000cfcaf03ec740a29fcae480ec98a45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using Microsoft.Xna.Framework;

namespace MonoGame.Extended.Tiled
{
    public sealed class TiledMapTileObject : TiledMapObject
    {
        public TiledMapTileObject(int identifier, string name, TiledMapTileset tileset, TiledMapTilesetTile tile, 
            Size2 size, Vector2 position, float rotation = 0, float opacity = 1, bool isVisible = true, string type = null) 
            : base(identifier, name, size, position, rotation, opacity, isVisible, type)
        {
            Tileset = tileset;
            Tile = tile;
        }

        public TiledMapTilesetTile Tile { get; }
        public TiledMapTileset Tileset { get; }
    }
}