Add Name ID field to WithSpriteBody

This commit is contained in:
reaperrr
2017-03-31 14:55:46 +02:00
committed by atlimit8
parent 48abb7372b
commit 3b798897be

View File

@@ -29,6 +29,9 @@ namespace OpenRA.Mods.Common.Traits.Render
[Desc("Pause animation when actor is disabled.")]
public readonly bool PauseAnimationWhenDisabled = false;
[Desc("Identifier used to assign modifying traits to this sprite body.")]
public readonly string Name = "body";
public override object Create(ActorInitializer init) { return new WithSpriteBody(init, this); }
public virtual IEnumerable<IActorPreview> RenderPreviewSprites(ActorPreviewInitializer init, RenderSpritesInfo rs, string image, int facings, PaletteReference p)