Allow Animation to generate its own Renderables.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace OpenRA.Graphics
|
||||
{
|
||||
@@ -44,6 +45,16 @@ namespace OpenRA.Graphics
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerable<IRenderable> Render(WPos pos, int zOffset, PaletteReference palette, float scale)
|
||||
{
|
||||
yield return new SpriteRenderable(Image, pos, zOffset, palette, scale);
|
||||
}
|
||||
|
||||
public IEnumerable<IRenderable> Render(WPos pos, PaletteReference palette)
|
||||
{
|
||||
return Render(pos, 0, palette, 1f);
|
||||
}
|
||||
|
||||
public void Play(string sequenceName)
|
||||
{
|
||||
PlayThen(sequenceName, null);
|
||||
|
||||
Reference in New Issue
Block a user