Files
MonoGame.Extended/Source/MonoGame.Extended.Tiled/TiledMapGroupLayer.cs
T
stefanrbkandDylan Wilson 433e458af0 Real Tiled Group Support (#522)
* Change from storing layers by index to Dictionary key

Models are now stored with the `TiledMapLayer` they are part of.

* Allow render calls via TiledMapLayer

* Add TiledMapGroupLayer and model build recursion for groups

* Add rendering support for TiledMapGroupLayer

* Update TiledMapReader to read TiledMapGroupLayers

* Update Features Demo to Include a Map with a Layer Group

* Update TiledMapWriter and TiledMapProcessor to Support Groups

* Update TiledMap to Report Layers Correctly
2018-07-08 21:34:07 +10:00

18 lines
448 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
namespace MonoGame.Extended.Tiled
{
public class TiledMapGroupLayer : TiledMapLayer
{
public List<TiledMapLayer> Layers { get; }
public TiledMapGroupLayer(string name, List<TiledMapLayer> layers, Vector2? offset = null, float opacity = 1, bool isVisible = true)
: base(name, offset, opacity, isVisible)
{
Layers = layers;
}
}
}