Setting up main scene and some initalization
This commit is contained in:
@@ -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
|
||||
|
||||
45
ADEPT-Godot/Core/Scripts/Cogwheel/GodotCogwheelConsole.cs
Normal file
45
ADEPT-Godot/Core/Scripts/Cogwheel/GodotCogwheelConsole.cs
Normal file
@@ -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; }
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
uid://b8i0oy8ylysdf
|
||||
11
ADEPT-Godot/Core/Scripts/MainNode.cs
Normal file
11
ADEPT-Godot/Core/Scripts/MainNode.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Godot;
|
||||
|
||||
namespace ADEPT.Core;
|
||||
|
||||
public partial class MainNode : Node
|
||||
{
|
||||
public override void _Ready()
|
||||
{
|
||||
ADEPT.Initialize(this);
|
||||
}
|
||||
}
|
||||
1
ADEPT-Godot/Core/Scripts/MainNode.cs.uid
Normal file
1
ADEPT-Godot/Core/Scripts/MainNode.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bl2h8ot302x3g
|
||||
1
ADEPT-Godot/Core/Scripts/PartSystem/PartsSystem.cs.uid
Normal file
1
ADEPT-Godot/Core/Scripts/PartSystem/PartsSystem.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://b0olq0km7srqs
|
||||
Reference in New Issue
Block a user