Introduce WithSpriteBody trait

Add upgrade rules

Add ISpriteBody
This commit is contained in:
penev92
2015-04-30 02:59:35 +03:00
parent 16c61cb929
commit c5dead9098
13 changed files with 128 additions and 79 deletions

View File

@@ -147,7 +147,7 @@ namespace OpenRA.Mods.RA.Traits
self.World.AddFrameEndTask(w => EjectDriver());
if (info.ThumpSequence != null)
renderUnit.PlayCustomAnimRepeating(self, info.ThumpSequence);
renderUnit.PlayCustomAnimationRepeating(self, info.ThumpSequence);
deployed = true;
self.QueueActivity(new Wait(info.ChargeDelay, false));
self.QueueActivity(new CallFunc(() => Sound.Play(info.ChargeSound, self.CenterPosition)));

View File

@@ -58,7 +58,7 @@ namespace OpenRA.Mods.RA.Traits
PlayCustomAnimation(self, info.OpenAnim, () =>
{
if (DefaultAnimation.HasSequence(info.UnloadAnim))
PlayCustomAnimRepeating(self, info.UnloadAnim);
PlayCustomAnimationRepeating(self, info.UnloadAnim);
});
}
@@ -68,7 +68,7 @@ namespace OpenRA.Mods.RA.Traits
return;
open = false;
PlayCustomAnimBackwards(self, info.OpenAnim, null);
PlayCustomAnimationBackwards(self, info.OpenAnim, null);
}
public override void Tick(Actor self)