Correct terminology and add readonly modifiers in SpriteEffect.

This commit is contained in:
Taryn Hill
2015-04-30 17:19:13 -05:00
parent 583b89eb17
commit d279e1dcee

View File

@@ -15,15 +15,15 @@ namespace OpenRA.Effects
{ {
public class SpriteEffect : IEffect public class SpriteEffect : IEffect
{ {
string palette; readonly string palette;
Animation anim; readonly Animation anim;
WPos pos; readonly WPos pos;
public SpriteEffect(WPos pos, World world, string sprite, string palette) public SpriteEffect(WPos pos, World world, string image, string palette)
{ {
this.pos = pos; this.pos = pos;
this.palette = palette; this.palette = palette;
anim = new Animation(world, sprite); anim = new Animation(world, image);
anim.PlayThen("idle", () => world.AddFrameEndTask(w => w.Remove(this))); anim.PlayThen("idle", () => world.AddFrameEndTask(w => w.Remove(this)));
} }