Add missing sequence references to TD render traits.
This commit is contained in:
@@ -18,9 +18,9 @@ namespace OpenRA.Mods.Cnc.Traits.Render
|
||||
[Desc("Building animation to play when ProductionAirdrop is used to deliver units.")]
|
||||
public class WithDeliveryAnimationInfo : ITraitInfo, Requires<WithSpriteBodyInfo>
|
||||
{
|
||||
public readonly string ActiveSequence = "active";
|
||||
[SequenceReference] public readonly string ActiveSequence = "active";
|
||||
|
||||
public readonly string IdleSequence = "idle";
|
||||
[SequenceReference] public readonly string IdleSequence = "idle";
|
||||
|
||||
public object Create(ActorInitializer init) { return new WithDeliveryAnimation(init.Self, this); }
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace OpenRA.Mods.Cnc.Traits.Render
|
||||
[Desc("Provides an overlay for the Tiberian Dawn hover craft.")]
|
||||
public class WithRoofInfo : ITraitInfo, Requires<RenderSpritesInfo>
|
||||
{
|
||||
public readonly string Sequence = "roof";
|
||||
[SequenceReference] public readonly string Sequence = "roof";
|
||||
|
||||
public object Create(ActorInitializer init) { return new WithRoof(init.Self, this); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user