mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-02-02 10:41:09 -05:00
* Added ability to bake envmap textures * Added Scene.Editor.GetSceneFolder() - allows saving baked resources for scene * Envmaps are represented with a shiny sphere now instead of a handle * Fixed Enum Dropdown being the wrong color * Added [EnumButtonGroup] * Added GroupButtonControlWidget * Added Editor.EditorSystem (accessible via Application.Editor) * Can place [Menu] attributes in game code (was previously in tools only) * Added "Scene/Bake Envmaps" option
60 lines
1.6 KiB
C#
60 lines
1.6 KiB
C#
using Editor;
|
|
using NativeEngine;
|
|
|
|
namespace Sandbox.Engine;
|
|
|
|
internal unsafe interface IToolsDll
|
|
{
|
|
public static IToolsDll Current { get; set; }
|
|
|
|
|
|
public void Bootstrap();
|
|
public Task Initialize();
|
|
public void Tick();
|
|
public void RunEvent( string name );
|
|
public void RunEvent( string name, object argument );
|
|
public void RunEvent( string name, object arg0, object arg1 );
|
|
public void RunEvent<T>( Action<T> action );
|
|
public void Exiting();
|
|
public bool ConsoleFocus();
|
|
public void ExitPlaymode();
|
|
|
|
public void Spin();
|
|
public void RunFrame();
|
|
public void OnRender();
|
|
|
|
public void OnFunctionKey( ButtonCode key, KeyboardModifiers modifiers );
|
|
|
|
/// <summary>
|
|
/// Registers exclusive Sandbox.Tools <see cref="Sandbox.IHandle"/> types
|
|
/// </summary>
|
|
public int RegisterHandle( IntPtr ptr, uint type );
|
|
|
|
/// <summary>
|
|
/// Load the startup project for the first time
|
|
/// </summary>
|
|
public Task LoadProject();
|
|
|
|
public object InspectedObject { get; set; }
|
|
|
|
/// <summary>
|
|
/// Is the game view visible, or is it in a tab in the background?
|
|
/// </summary>
|
|
public bool IsGameViewVisible { get; }
|
|
|
|
/// <summary>
|
|
/// A public interface to the active editor system
|
|
/// </summary>
|
|
public EditorSystem ActiveEditor { get; }
|
|
|
|
/// <summary>
|
|
/// Called after the host network system is initialised, used to add additional package references etc. to dev servers
|
|
/// </summary>
|
|
public Task OnInitializeHost();
|
|
|
|
/// <summary>
|
|
/// Get a thumbnail for the specified asset.Can return null if not immediately available.
|
|
/// </summary>
|
|
Bitmap GetThumbnail( string filename );
|
|
}
|