actually remove that file

This commit is contained in:
Chris Forbes
2010-01-29 19:42:30 +13:00
parent 7c45b67f4a
commit 84d2a01a69

View File

@@ -1,32 +0,0 @@
using System.Collections.Generic;
using OpenRa.Graphics;
using OpenRa.Traits;
using OpenRa.Effects;
namespace OpenRa.Mods.RA.Effects
{
class CrateEffectSpeedUpgrade : IEffect
{
Actor a;
Animation anim = new Animation("crate-effects");
float2 doorOffset = new float2(-4,0);
public CrateEffectSpeedUpgrade(Actor a)
{
this.a = a;
anim.PlayThen("speed",
() => a.World.AddFrameEndTask(w => w.Remove(this)));
}
public void Tick( World world )
{
anim.Tick();
}
public IEnumerable<Renderable> Render()
{
yield return new Renderable(anim.Image,
a.CenterLocation - .5f * anim.Image.size + doorOffset, PaletteType.Gold);
}
}
}