use explosion *names*, not *numbers* like RA.

This commit is contained in:
Chris Forbes
2010-07-07 19:38:59 +12:00
parent c17a63a434
commit fb1d37ae53
7 changed files with 88 additions and 67 deletions

View File

@@ -29,12 +29,11 @@ namespace OpenRA.Effects
Animation anim;
int2 pos;
public Explosion(World world, int2 pixelPos, int style, bool isWater)
public Explosion(World world, int2 pixelPos, string style, bool isWater)
{
this.pos = pixelPos;
var variantSuffix = isWater ? "w" : "";
anim = new Animation("explosion");
anim.PlayThen(style.ToString() + variantSuffix,
anim.PlayThen(style,
() => world.AddFrameEndTask(w => w.Remove(this)));
}