mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-25 08:22:15 +00:00
Tiled Rework (#331)
* Tiled Rework * fix failing tests * really fix failing tests
This commit is contained in:
committed by
Dylan Wilson
parent
8bf737f797
commit
9e359fb750
+30
@@ -0,0 +1,30 @@
|
||||
#region
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace MonoGame.Extended.Content.Pipeline.Tiled.Graphics
|
||||
{
|
||||
public class TiledMapLayerAnimatedModelContent : TiledMapLayerModelContent
|
||||
{
|
||||
private readonly List<TiledMapTilesetTileContent> _animatedTilesetTiles;
|
||||
|
||||
public IReadOnlyList<TiledMapTilesetTileContent> AnimatedTilesetTiles { get; }
|
||||
public TiledMapTilesetContent Tileset { get; }
|
||||
|
||||
public TiledMapLayerAnimatedModelContent(string layerName, TiledMapTilesetContent tileset)
|
||||
: base(layerName, tileset)
|
||||
{
|
||||
_animatedTilesetTiles = new List<TiledMapTilesetTileContent>();
|
||||
AnimatedTilesetTiles = new ReadOnlyCollection<TiledMapTilesetTileContent>(_animatedTilesetTiles);
|
||||
Tileset = tileset;
|
||||
}
|
||||
|
||||
internal void AddAnimatedTile(TiledMapTilesetTileContent tile)
|
||||
{
|
||||
_animatedTilesetTiles.Add(tile);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user