Files
OpenRA/OpenRa.Game/Traits/Unit.cs
2009-12-19 10:42:35 +13:00

19 lines
338 B
C#
Executable File

namespace OpenRa.Game.Traits
{
class Unit : INotifyDamage
{
public int Facing;
public int Altitude;
public Unit( Actor self ) { }
public void Damaged(Actor self, AttackInfo e)
{
if (e.DamageState == DamageState.Dead)
if (self.Owner == Game.LocalPlayer)
Sound.Play("unitlst1.aud");
}
}
}