Change terrain layers to track sequences instead of sprites.

This commit is contained in:
Paul Chote
2020-06-21 13:43:24 +01:00
committed by abcdefg30
parent 38b3fbbdbe
commit fdb66c769c
8 changed files with 90 additions and 67 deletions

View File

@@ -66,6 +66,16 @@ namespace OpenRA.Graphics
dirtyRows.Add(row);
}
public void Clear(CPos cell)
{
Update(cell, null);
}
public void Update(CPos cell, ISpriteSequence sequence, int frame)
{
Update(cell, sequence.GetSprite(frame));
}
public void Update(CPos cell, Sprite sprite)
{
var xyz = float3.Zero;