OpenRA.Player.CanViewActor C# (CSharp) Méthode

CanViewActor() public méthode

public CanViewActor ( OpenRA.Actor a ) : bool
a OpenRA.Actor
Résultat bool
        public bool CanViewActor(Actor a)
        {
            return a.CanBeViewedByPlayer(this);
        }

Usage Example

Exemple #1
0
 public bool FogObscures(Actor a)
 {
     return(RenderPlayer != null && !RenderPlayer.CanViewActor(a));
 }