Move WithFire, Burns offsets into sequences.
This commit is contained in:
@@ -15,8 +15,6 @@ namespace OpenRA.Mods.Cnc
|
||||
{
|
||||
class WithFireInfo : ITraitInfo, Requires<RenderSpritesInfo>
|
||||
{
|
||||
public readonly WVec Offset = new WVec(299,-640,0);
|
||||
|
||||
public object Create(ActorInitializer init) { return new WithFire(init.self, this); }
|
||||
}
|
||||
|
||||
@@ -27,8 +25,7 @@ namespace OpenRA.Mods.Cnc
|
||||
var rs = self.Trait<RenderSprites>();
|
||||
var roof = new Animation(rs.GetImage(self));
|
||||
roof.PlayThen("fire-start", () => roof.PlayRepeating("fire-loop"));
|
||||
|
||||
rs.anims.Add("fire", new AnimationWithOffset(roof, () => info.Offset, null, 1024));
|
||||
rs.anims.Add("fire", new AnimationWithOffset(roof, null, null, 1024));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user