Class GangZone
Represents a global gang zone visible to any subset of players via Show() / Show(Player). For zones that logically belong to a single player, use PlayerGangZone.
public class GangZone : BaseGangZone
- Inheritance
-
GangZone
- Inherited Members
Constructors
GangZone(IOmpEntityProvider, IGangZonesComponent, IGangZone)
Initializes a new instance of the GangZone class.
protected GangZone(IOmpEntityProvider entityProvider, IGangZonesComponent gangZones, IGangZone gangZone)
Parameters
entityProviderIOmpEntityProvidergangZonesIGangZonesComponentgangZoneIGangZone
Methods
Flash(Color)
Flashes this gang zone to all players.
public virtual void Flash(Color color)
Parameters
Flash(Player, Color)
Flashes this gang zone for the specified player.
public virtual void Flash(Player player, Color color)
Parameters
GetColorForPlayer(Player)
Gets the color with which this gang zone is shown for the specified player.
public virtual Color GetColorForPlayer(Player player)
Parameters
playerPlayerThe player.
Returns
- Color
The per-player gang zone color.
GetFlashingColorForPlayer(Player)
Gets the flashing color for this gang zone as seen by the specified player.
public virtual Color GetFlashingColorForPlayer(Player player)
Parameters
playerPlayerThe player.
Returns
- Color
The per-player flashing color.
Hide()
Hides this gang zone for all players.
public virtual void Hide()
Hide(Player)
Hides this gang zone for the specified player.
public virtual void Hide(Player player)
Parameters
IsFlashingForPlayer(Player)
Checks whether this gang zone is currently flashing for the specified player.
public virtual bool IsFlashingForPlayer(Player player)
Parameters
playerPlayerThe player.
Returns
IsPlayerInside(Player)
Checks whether the specified player is inside this gang zone.
public virtual bool IsPlayerInside(Player player)
Parameters
playerPlayerThe player.
Returns
Remarks
Requires that this gang zone has been registered for enter/leave checking via UseGangZoneCheck(BaseGangZone, bool), otherwise the result is always false.
IsShownForPlayer(Player)
Checks whether this gang zone is currently shown for the specified player.
public virtual bool IsShownForPlayer(Player player)
Parameters
playerPlayerThe player.
Returns
Show()
Shows this gang zone to all players.
public virtual void Show()
Show(Player)
Shows this gang zone to the specified player.
public virtual void Show(Player player)
Parameters
Show(Player, Color)
Shows this gang zone to the specified player.
public virtual void Show(Player player, Color color)
Parameters
StopFlash()
Stops this gang zone from flashing for all players.
public virtual void StopFlash()
StopFlash(Player)
Stops this gang zone from flashing for the specified player.
public virtual void StopFlash(Player player)