diff --git a/ADEPT-Godot/ADEPT.sln.DotSettings.user b/ADEPT-Godot/ADEPT.sln.DotSettings.user index 55ae3c9..fcf0ed8 100644 --- a/ADEPT-Godot/ADEPT.sln.DotSettings.user +++ b/ADEPT-Godot/ADEPT.sln.DotSettings.user @@ -1,4 +1,5 @@  + ForceIncluded <AssemblyExplorer> <Assembly Path="/home/chris/.nuget/packages/cogwheellib/1.3.0/lib/net9.0/CogwheelLib.dll" /> </AssemblyExplorer> \ No newline at end of file diff --git a/ADEPT-Godot/Core/Scenes/DELETEME.txt b/ADEPT-Godot/Core/Scenes/DELETEME.txt deleted file mode 100644 index e69de29..0000000 diff --git a/ADEPT-Godot/Core/Scenes/Main.tscn b/ADEPT-Godot/Core/Scenes/Main.tscn new file mode 100644 index 0000000..5c49e94 --- /dev/null +++ b/ADEPT-Godot/Core/Scenes/Main.tscn @@ -0,0 +1,6 @@ +[gd_scene load_steps=2 format=3 uid="uid://udmowtmx1o3l"] + +[ext_resource type="Script" uid="uid://bl2h8ot302x3g" path="res://Core/Scripts/MainNode.cs" id="1_wh72m"] + +[node name="Main" type="Node"] +script = ExtResource("1_wh72m") diff --git a/ADEPT-Godot/Core/Scripts/ADEPT.cs b/ADEPT-Godot/Core/Scripts/ADEPT.cs index 15b1beb..7aff408 100644 --- a/ADEPT-Godot/Core/Scripts/ADEPT.cs +++ b/ADEPT-Godot/Core/Scripts/ADEPT.cs @@ -1,13 +1,23 @@ +using System.Reflection; +using ADEPT.Core.Cogwheel; using Cogwheel; +using Godot; namespace ADEPT.Core; public static class ADEPT { + private static CommandsManager _commandsManager = new CommandsManager(); + private static ICogwheelConsole _cogwheelConsole = new GodotCogwheelConsole(); - public static void Initialize() + public static MainNode MainNode { get; private set; } + + public static void Initialize(MainNode mainNode) { + COGWHEEL.Initialize(_commandsManager, _cogwheelConsole); + COGWHEEL.AddAssembly(Assembly.GetCallingAssembly()); + MainNode = mainNode; } public static class Constants diff --git a/ADEPT-Godot/Core/Scripts/Cogwheel/GodotCogwheelConsole.cs b/ADEPT-Godot/Core/Scripts/Cogwheel/GodotCogwheelConsole.cs new file mode 100644 index 0000000..bfbd75f --- /dev/null +++ b/ADEPT-Godot/Core/Scripts/Cogwheel/GodotCogwheelConsole.cs @@ -0,0 +1,45 @@ +using Cogwheel; + +namespace ADEPT.Core.Cogwheel; + +public class GodotCogwheelConsole : ICogwheelConsole +{ + public void Initialize(CommandsManager commandsManager) + { + + } + + public void Log(string message) + { + + } + + public void LogError(string message) + { + + } + + public void LogWarning(string message) + { + + } + + public void Write(string message) + { + + } + + public void ClearConsole() + { + + } + + public void Exit() + { + + } + + public string OpeningMessage { get; set; } + public bool IsRunning { get; set; } + public CommandsManager CommandsManager { get; set; } +} \ No newline at end of file diff --git a/ADEPT-Godot/Core/Scripts/Interfaces/PartsSystem/IPartsSystem.cs.uid b/ADEPT-Godot/Core/Scripts/Interfaces/PartsSystem/IPartsSystem.cs.uid new file mode 100644 index 0000000..f05c6ed --- /dev/null +++ b/ADEPT-Godot/Core/Scripts/Interfaces/PartsSystem/IPartsSystem.cs.uid @@ -0,0 +1 @@ +uid://b8i0oy8ylysdf diff --git a/ADEPT-Godot/Core/Scripts/MainNode.cs b/ADEPT-Godot/Core/Scripts/MainNode.cs new file mode 100644 index 0000000..effefc3 --- /dev/null +++ b/ADEPT-Godot/Core/Scripts/MainNode.cs @@ -0,0 +1,11 @@ +using Godot; + +namespace ADEPT.Core; + +public partial class MainNode : Node +{ + public override void _Ready() + { + ADEPT.Initialize(this); + } +} diff --git a/ADEPT-Godot/Core/Scripts/MainNode.cs.uid b/ADEPT-Godot/Core/Scripts/MainNode.cs.uid new file mode 100644 index 0000000..0ff0fde --- /dev/null +++ b/ADEPT-Godot/Core/Scripts/MainNode.cs.uid @@ -0,0 +1 @@ +uid://bl2h8ot302x3g diff --git a/ADEPT-Godot/Core/Scripts/PartSystem/PartsSystem.cs.uid b/ADEPT-Godot/Core/Scripts/PartSystem/PartsSystem.cs.uid new file mode 100644 index 0000000..b049c4b --- /dev/null +++ b/ADEPT-Godot/Core/Scripts/PartSystem/PartsSystem.cs.uid @@ -0,0 +1 @@ +uid://b0olq0km7srqs