Class Display
Represents a text display that's visible to a selection of players
Inherited Members
Namespace: Slipe.Server.Displays
Assembly: SlipeServer.dll
Syntax
public class Display
Constructors
| Improve this Doc View SourceDisplay()
Create a new empty display
Declaration
public Display()
Properties
| Improve this Doc View SourceDisplayElement
Get the associated display element
Declaration
public MtaElement DisplayElement { get; }
Property Value
Type | Description |
---|---|
Slipe.MtaDefinitions.MtaElement |
Observers
Get an array of all the observers of this display
Declaration
public Player[] Observers { get; }
Property Value
Type | Description |
---|---|
Player[] |
Methods
| Improve this Doc View SourceAddObserver(Player)
Add a player who can observe this text display
Declaration
public void AddObserver(Player player)
Parameters
Type | Name | Description |
---|---|---|
Player | player |
AddObservers(Player[])
Add multiple players as observers
Declaration
public void AddObservers(Player[] players)
Parameters
Type | Name | Description |
---|---|---|
Player[] | players |
Destroy()
Destroy this display
Declaration
public bool Destroy()
Returns
Type | Description |
---|---|
Boolean |
RemoveObserver(Player)
Remove an observer
Declaration
public bool RemoveObserver(Player player)
Parameters
Type | Name | Description |
---|---|---|
Player | player |
Returns
Type | Description |
---|---|
Boolean |