mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 03:56:31 +00:00
16 lines
575 B
C#
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;
|
|
}
|
|
} |