Change renderables to class to avoid boxing

This commit is contained in:
teinarss
2021-01-28 18:46:49 +01:00
committed by abcdefg30
parent 0d8ef1a1dd
commit 58313520f0
20 changed files with 22 additions and 24 deletions

View File

@@ -17,7 +17,7 @@ using OpenRA.Primitives;
namespace OpenRA.Mods.Common.Graphics
{
public struct UIModelRenderable : IRenderable, IPalettedRenderable
public class UIModelRenderable : IRenderable, IPalettedRenderable
{
readonly IEnumerable<ModelAnimation> models;
readonly WPos effectiveWorldPos;
@@ -74,7 +74,7 @@ namespace OpenRA.Mods.Common.Graphics
return new FinalizedUIModelRenderable(wr, this);
}
struct FinalizedUIModelRenderable : IFinalizedRenderable
class FinalizedUIModelRenderable : IFinalizedRenderable
{
readonly UIModelRenderable model;
readonly ModelRenderProxy renderProxy;