API ReferenceSandbox
IGameInstanceclass
Todo: make internal - the only thing using ir right now is the binds system
object→IGameInstance
Methods5
Showing 5 methods
public virtual string GetBind(string actionName, bool isDefault, bool isCommon)
| Parameter | Type | Description |
|---|---|---|
| actionName | string | — |
| isDefault | bool | — |
| isCommon | bool | — |
Returns:
string—public virtual void ResetBinds()
Returns:
void—public virtual void SaveBinds()
Returns:
void—public virtual void SetBind(string actionName, string buttonName)
| Parameter | Type | Description |
|---|---|---|
| actionName | string | — |
| buttonName | string | — |
Returns:
void—public virtual void TrapButtons(System.Action`1<string[]> callback)
| Parameter | Type | Description |
|---|---|---|
| callback | Action<string[]> | — |
Returns:
void—No results match this filter.
Properties3
Showing 3 properties
public static Sandbox.IGameInstance Sandbox.IGameInstance.Current { get; set; }
public virtual bool Sandbox.IGameInstance.IsLoading { get; set; }
True after the game is fully loaded
Returns:
bool—public virtual Sandbox.Scene Sandbox.IGameInstance.Scene { get; set; }
No results match this filter.