put AnimationWithOffset in its own file

This commit is contained in:
Chris Forbes
2011-07-17 16:53:29 +12:00
parent 59616671b6
commit 4a0b7bb003
11 changed files with 62 additions and 45 deletions

View File

@@ -35,7 +35,7 @@ namespace OpenRA.Mods.RA
var anim = new Animation("fire", () => 0);
anim.PlayRepeating(self.Info.Traits.Get<BurnsInfo>().Anim);
self.Trait<RenderSimple>().anims.Add("fire",
new RenderSimple.AnimationWithOffset(anim, () => new float2(0, -3), null));
new AnimationWithOffset(anim, () => new float2(0, -3), null));
}
if (--ticks <= 0)