mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Allow dragging and dropping of Entities in editor
+ New Dictionary Helpers + Made ImGui Payloads safer + Start of Component drag'n'drop
This commit is contained in:
@@ -53,9 +53,16 @@ namespace GlitchyEditor
|
||||
public SceneRenderer GameSceneRenderer {get; set;}
|
||||
public SceneRenderer EditorSceneRenderer {get; set;}
|
||||
|
||||
private static Editor s_Instance;
|
||||
|
||||
public static Editor Instance => s_Instance;
|
||||
|
||||
/// Creates a new editor for the given world
|
||||
public this(Scene scene, EditorContentManager contentManager)
|
||||
{
|
||||
Log.EngineLogger.AssertDebug(s_Instance == null, "Cannot create a second instance of a singleton.");
|
||||
s_Instance = this;
|
||||
|
||||
_scene = scene;
|
||||
_contentManager = contentManager;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user