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

namespace MonoGame.Extended.Tiled
{
    public sealed class TiledMapPolygonObject : TiledMapObject
    {
        public TiledMapPolygonObject(int identifier, string name, Point2[] points, 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)
        {
            Points = points;
        }

        public Point2[] Points { get; }
    }
}