Files
MonoGame.Extended/Source/MonoGame.Extended.Tiled/TiledMapPolygonObject.cs
T
2017-11-21 20:57:32 +10:00

16 lines
575 B
C#

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)
: base(identifier, name, size, position, rotation, opacity, isVisible)
{
Points = points;
}
public Point2[] Points { get; }
public override TiledMapObjectType Type => TiledMapObjectType.Polygon;
}
}