mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 20:12:23 +00:00
* 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
18 lines
448 B
C#
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;
|
|
}
|
|
}
|
|
}
|