Allow Animation to generate its own Renderables.

This commit is contained in:
Paul Chote
2013-07-15 19:21:18 +12:00
parent fc458d191d
commit 15688eed13
22 changed files with 70 additions and 51 deletions

View File

@@ -10,6 +10,7 @@
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
namespace OpenRA.Graphics
{
@@ -47,6 +48,8 @@ namespace OpenRA.Graphics
public struct SpriteRenderable : IRenderable
{
public static readonly IEnumerable<IRenderable> None = new IRenderable[0].AsEnumerable();
readonly Sprite sprite;
readonly WPos pos;
readonly int zOffset;