Merge pull request #10938 from reaperrr/explo-image

Unhardcode Explosion "Image"
This commit is contained in:
Oliver Brakmann
2016-03-22 21:58:03 +01:00
5 changed files with 31 additions and 17 deletions

View File

@@ -22,12 +22,12 @@ namespace OpenRA.Mods.Common.Effects
readonly Animation anim;
WPos pos;
public Explosion(World world, WPos pos, string sequence, string palette)
public Explosion(World world, WPos pos, string image, string sequence, string palette)
{
this.world = world;
this.pos = pos;
this.palette = palette;
anim = new Animation(world, "explosion");
anim = new Animation(world, image);
anim.PlayThen(sequence, () => world.AddFrameEndTask(w => w.Remove(this)));
}