Return IRenderable[] rather than IEnumerable<IRenderable> for animations.

Since some callers now know they have an array, then can enumerate it more efficiently and without allocating an enumerator.
This commit is contained in:
RoosterDragon
2018-03-10 18:10:29 +00:00
committed by abcdefg30
parent 65c42a68ce
commit f2e270ce06
3 changed files with 4 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ namespace OpenRA.Graphics
{
public struct SpriteRenderable : IRenderable, IFinalizedRenderable
{
public static readonly IEnumerable<IRenderable> None = new IRenderable[0].AsEnumerable();
public static readonly IEnumerable<IRenderable> None = new IRenderable[0];
readonly Sprite sprite;
readonly WPos pos;