Empeld
Empeld plugin documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
essentials.Subsystems.Scoreboard.ScoreboardClient Class Reference
Inheritance diagram for essentials.Subsystems.Scoreboard.ScoreboardClient:
pluginbase.Objects.Game.IClientSubsystem pluginbase.Objects.Game.ISubsystem

Public Member Functions

 ScoreboardClient ()
 
void OnStart ()
 
void OnStop ()
 
void Simulate (IFrameTimeState frameTime)
 

Properties

IRpcManager RpcManager [get]
 
IBuiScreen BuiScreen [get]
 
IInputManager InputManager [get]
 
IResourceResolver ResourceResolver [get, set]
 

Constructor & Destructor Documentation

essentials.Subsystems.Scoreboard.ScoreboardClient.ScoreboardClient ( )
31  {
32  this.InjectDependencies();
33  _scoreboardServer = this.RpcManager.GetClass<ScoreboardServer>();
34  }
IRpcManager RpcManager
Definition: ScoreboardClient.cs:15

Member Function Documentation

void essentials.Subsystems.Scoreboard.ScoreboardClient.OnStart ( )

Implements pluginbase.Objects.Game.ISubsystem.

37  {
38  _ui = this.BuiScreen.AddControl(this.ResourceResolver.Resolve("ui/scoreboard.xml"));
39 
40  _input = this.InputManager.GetBinding(typeof(ScoreboardClient));
41  _input.Description = "Scoreboard";
42  _input.Listen("scoreboard", Key.Tab);
43  _input.Bind("scoreboard", InputDirection.Down, () => HandleScoreboardKey(true));
44  _input.Bind("scoreboard", InputDirection.Up, () => HandleScoreboardKey(false));
45  _input.StartListening();
46  }
void StartListening()
Start listening to bindings
ScoreboardClient()
Definition: ScoreboardClient.cs:30
IResourceResolver ResourceResolver
Definition: ScoreboardClient.cs:24
IBuiScreen BuiScreen
Definition: ScoreboardClient.cs:18
string Description
Gets or sets the description.
Definition: IInputBinding.cs:22
void Listen(string bindName, Key defaultKey)
Listen to a key, with the assigned bind name
void Bind(string bindName, Action action)
Do an action when the event attached to the bind occurs
InputDirection
Specifies the direction of an input key or mouse bind
Definition: InputDirection.cs:9
string Resolve(string resource)
Resolves the data.
IBoundInput GetBinding(string name)
Get or create a new binding class by name
IInputManager InputManager
Definition: ScoreboardClient.cs:21
IBuiControl AddControl(string filename)
Add a control by filename
void essentials.Subsystems.Scoreboard.ScoreboardClient.OnStop ( )
void essentials.Subsystems.Scoreboard.ScoreboardClient.Simulate ( IFrameTimeState  frameTime)

Implements pluginbase.Objects.Game.ISubsystem.

52  {
53  }

Property Documentation

IBuiScreen essentials.Subsystems.Scoreboard.ScoreboardClient.BuiScreen
getprotected

Attribute: Dependency

IInputManager essentials.Subsystems.Scoreboard.ScoreboardClient.InputManager
getprotected

Attribute: Dependency

IResourceResolver essentials.Subsystems.Scoreboard.ScoreboardClient.ResourceResolver
getsetprotected

Attribute: Dependency

IRpcManager essentials.Subsystems.Scoreboard.ScoreboardClient.RpcManager
getprotected

Attribute: Dependency


The documentation for this class was generated from the following file: