mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 12:06:37 +00:00
25 lines
865 B
C#
25 lines
865 B
C#
using System.Collections.Generic;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
|
|
namespace MonoGame.Extended.Tiled.Renderers
|
|
{
|
|
public class TiledMapAnimatedLayerModelBuilder : TiledMapLayerModelBuilder<TiledMapAnimatedLayerModel>
|
|
{
|
|
public TiledMapAnimatedLayerModelBuilder()
|
|
{
|
|
AnimatedTilesetTiles = new List<TiledMapTilesetAnimatedTile>();
|
|
}
|
|
|
|
public List<TiledMapTilesetAnimatedTile> AnimatedTilesetTiles { get; }
|
|
|
|
protected override void ClearBuffers()
|
|
{
|
|
AnimatedTilesetTiles.Clear();
|
|
}
|
|
|
|
protected override TiledMapAnimatedLayerModel CreateModel(GraphicsDevice graphicsDevice, Texture2D texture)
|
|
{
|
|
return new TiledMapAnimatedLayerModel(graphicsDevice, texture, Vertices.ToArray(), Indices.ToArray(), AnimatedTilesetTiles.ToArray());
|
|
}
|
|
}
|
|
} |