mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 12:06:37 +00:00
21 lines
761 B
C#
21 lines
761 B
C#
using Microsoft.Xna.Framework;
|
|
|
|
namespace MonoGame.Extended.Tiled
|
|
{
|
|
public class TiledMapObjectLayer : TiledMapLayer
|
|
{
|
|
public TiledMapObjectLayer(string name, string type, TiledMapObject[] objects, Color? color = null, TiledMapObjectDrawOrder drawOrder = TiledMapObjectDrawOrder.TopDown,
|
|
Vector2? offset = null, Vector2? parallaxFactor = null, float opacity = 1.0f, bool isVisible = true)
|
|
: base(name, type, offset, parallaxFactor, opacity, isVisible)
|
|
{
|
|
Color = color;
|
|
DrawOrder = drawOrder;
|
|
Objects = objects;
|
|
}
|
|
|
|
public Color? Color { get; }
|
|
public TiledMapObjectDrawOrder DrawOrder { get; }
|
|
public TiledMapObject[] Objects { get; }
|
|
}
|
|
}
|