From 91ff24488ca86c7d64d4ac6a0c33415d4f029f9f Mon Sep 17 00:00:00 2001 From: Josef Date: Tue, 12 Nov 2024 09:44:05 +0100 Subject: [PATCH] Adding Plugin Structure --- RokojoriPlugin.cs | 23 +++++++++++++++++++++++ plugin.cfg | 7 +++++++ 2 files changed, 30 insertions(+) create mode 100644 RokojoriPlugin.cs create mode 100644 plugin.cfg diff --git a/RokojoriPlugin.cs b/RokojoriPlugin.cs new file mode 100644 index 0000000..3d4f313 --- /dev/null +++ b/RokojoriPlugin.cs @@ -0,0 +1,23 @@ + +using Godot; +using Rokojori; +using System.Collections.Generic; + +namespace Rokojori +{ + [Tool] + public partial class RokojoriPlugin:EditorPlugin + { + GizmoDrawerPlugin gizmoDrawerPlugin = new GizmoDrawerPlugin(); + + public override void _EnterTree() + { + AddNode3DGizmoPlugin( gizmoDrawerPlugin ); + } + + public override void _ExitTree() + { + RemoveNode3DGizmoPlugin( gizmoDrawerPlugin ); + } + } +} \ No newline at end of file diff --git a/plugin.cfg b/plugin.cfg new file mode 100644 index 0000000..e97c26c --- /dev/null +++ b/plugin.cfg @@ -0,0 +1,7 @@ +[plugin] + +name="Rokojori Action Library" +description="Rokojori plugin for the library" +author="Rokojori" +version="1.0" +script="RokojoriPlugin.cs"