Files
sbox-public/engine/Sandbox.Engine/Game/IGameInstance.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

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; }
}