Unhardcode Explosion "Image"

Add ExplosionCollection property to CreateEffectWarhead
This commit is contained in:
reaperrr
2016-02-14 23:05:31 +01:00
parent 77297f1ca6
commit a83f44d907
4 changed files with 20 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)));
}