mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-16 02:09:20 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
33 lines
860 B
C#
33 lines
860 B
C#
namespace Sandbox;
|
|
|
|
/// <summary>
|
|
/// Todo: make internal - the only thing using ir right now is the binds system
|
|
/// </summary>
|
|
public interface IGameInstance
|
|
{
|
|
public static IGameInstance Current { get; internal set; }
|
|
|
|
internal Package Package { get; }
|
|
internal void Close();
|
|
|
|
internal InputSettings InputSettings { get; }
|
|
|
|
public void ResetBinds();
|
|
public void SaveBinds();
|
|
public string GetBind( string actionName, out bool isDefault, out bool isCommon );
|
|
public void SetBind( string actionName, string buttonName );
|
|
public void TrapButtons( Action<string[]> callback );
|
|
|
|
/// <summary>
|
|
/// Called after all loading is done, right before we enter the game
|
|
/// </summary>
|
|
internal void OnLoadingFinished();
|
|
|
|
/// <summary>
|
|
/// True after the game is fully loaded
|
|
/// </summary>
|
|
public bool IsLoading { get; }
|
|
|
|
public Scene Scene { get; }
|
|
}
|