categorize traits better

This commit is contained in:
Chris Forbes
2010-02-09 13:42:33 +13:00
parent 8cb01df8cd
commit 5a95048396
49 changed files with 49 additions and 49 deletions

View File

@@ -0,0 +1,15 @@
using System.Collections.Generic;
namespace OpenRa.Traits
{
class InvisibleToOthersInfo : StatelessTraitInfo<InvisibleToOthers> { }
class InvisibleToOthers : IRenderModifier
{
public IEnumerable<Renderable> ModifyRender(Actor self, IEnumerable<Renderable> r)
{
return self.World.LocalPlayer == self.Owner
? r : new Renderable[] { };
}
}
}