mines are invisible to others

This commit is contained in:
Chris Forbes
2009-12-28 10:23:44 +13:00
parent 06512b270d
commit ea7638adfa
4 changed files with 22 additions and 3 deletions

View File

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