tesla charges

This commit is contained in:
Chris Forbes
2009-12-17 09:28:50 +13:00
parent d86e317d2c
commit e6e00d2010
6 changed files with 34 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OpenRa.Game.Traits
{
/* used for tesla */
class RenderBuildingCharge : RenderBuilding, INotifyAttack
{
public RenderBuildingCharge(Actor self)
: base(self)
{
}
public void Attacking(Actor self)
{
var prev = anim.CurrentSequence.Name;
Sound.Play("tslachg2.aud");
anim.PlayThen("active", () => anim.PlayRepeating(prev));
}
}
}