base system
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#if TOOLS
|
||||
using Godot;
|
||||
using GodotHostTest.addons.godot_di;
|
||||
|
||||
namespace GodotHostTest.GodotDI;
|
||||
|
||||
[Tool]
|
||||
public partial class GodotDI : EditorPlugin
|
||||
{
|
||||
private ScopeInspectorPlugin? _plugin;
|
||||
|
||||
public override void _EnterTree()
|
||||
{
|
||||
GD.Print("Initializing Godot DI");
|
||||
_plugin = new ScopeInspectorPlugin();
|
||||
AddInspectorPlugin(_plugin);
|
||||
}
|
||||
|
||||
public override void _ExitTree()
|
||||
{
|
||||
GD.Print("Deinitializing Godot DI");
|
||||
RemoveInspectorPlugin(_plugin);
|
||||
_plugin?.Dispose();
|
||||
_plugin = null;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user