Correct terminology and add readonly modifiers in SpriteEffect.
This commit is contained in:
@@ -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)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user