Class Input
Inherited Members
Namespace: Slipe.Server.IO
Assembly: SlipeServer.dll
Syntax
public static class Input
Methods
| Improve this Doc View SourceBindKey(Player, String, KeyState, Action<Player, String, KeyState>)
Binds a key to a method
Declaration
public static bool BindKey(Player player, string key, KeyState state, Action<Player, string, KeyState> handler)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
String | key | |
KeyState | state | |
Action<Player, String, KeyState> | handler |
Returns
Type | Description |
---|---|
Boolean |
BindKey(Player, String, KeyState, String)
Binds a key to a command
Declaration
public static bool BindKey(Player player, string key, KeyState state, string command)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
String | key | |
KeyState | state | |
String | command |
Returns
Type | Description |
---|---|
Boolean |
UnbindKey(Player, String, KeyState, Action<Player, String, KeyState>)
Unbinds a key from a method
Declaration
public static bool UnbindKey(Player player, string key, KeyState state, Action<Player, string, KeyState> handler)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
String | key | |
KeyState | state | |
Action<Player, String, KeyState> | handler |
Returns
Type | Description |
---|---|
Boolean |
UnbindKey(Player, String, KeyState, String)
Unbinds a key from a command
Declaration
public static bool UnbindKey(Player player, string key, KeyState state, string command = null)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
String | key | |
KeyState | state | |
String | command |
Returns
Type | Description |
---|---|
Boolean |