From 85e21b956e9a60cc4584a771559f7716f37d63c5 Mon Sep 17 00:00:00 2001 From: Chris Bell Date: Thu, 13 Feb 2025 23:35:07 -0600 Subject: [PATCH] Creating classes and interfaces, defining project structure --- ADEPT-Godot/Core/Scripts/ADEPT.cs | 20 +++++++++++++++++++ ADEPT-Godot/Core/Scripts/DELETEME.txt | 0 .../Core/Scripts/Interfaces/Lesson/ILesson.cs | 6 ++++++ .../Interfaces/Lesson/ILessonHandler.cs | 7 +++++++ .../Core/Scripts/Interfaces/Lesson/IPage.cs | 6 ++++++ .../Interfaces/Lesson/IPageComponent.cs | 6 ++++++ .../Interfaces/PartsSystem/IPartsSystem.cs | 6 ++++++ .../Core/Scripts/Lesson/BasePageComponent.cs | 6 ++++++ ADEPT-Godot/Core/Scripts/Lesson/Lesson.cs | 6 ++++++ .../Core/Scripts/Lesson/LessonHandler.cs | 18 +++++++++++++++++ ADEPT-Godot/Core/Scripts/Lesson/Page.cs | 6 ++++++ .../Core/Scripts/PartSystem/PartsSystem.cs | 6 ++++++ 12 files changed, 93 insertions(+) create mode 100644 ADEPT-Godot/Core/Scripts/ADEPT.cs delete mode 100644 ADEPT-Godot/Core/Scripts/DELETEME.txt create mode 100644 ADEPT-Godot/Core/Scripts/Interfaces/Lesson/ILesson.cs create mode 100644 ADEPT-Godot/Core/Scripts/Interfaces/Lesson/ILessonHandler.cs create mode 100644 ADEPT-Godot/Core/Scripts/Interfaces/Lesson/IPage.cs create mode 100644 ADEPT-Godot/Core/Scripts/Interfaces/Lesson/IPageComponent.cs create mode 100644 ADEPT-Godot/Core/Scripts/Interfaces/PartsSystem/IPartsSystem.cs create mode 100644 ADEPT-Godot/Core/Scripts/Lesson/BasePageComponent.cs create mode 100644 ADEPT-Godot/Core/Scripts/Lesson/Lesson.cs create mode 100644 ADEPT-Godot/Core/Scripts/Lesson/LessonHandler.cs create mode 100644 ADEPT-Godot/Core/Scripts/Lesson/Page.cs create mode 100644 ADEPT-Godot/Core/Scripts/PartSystem/PartsSystem.cs diff --git a/ADEPT-Godot/Core/Scripts/ADEPT.cs b/ADEPT-Godot/Core/Scripts/ADEPT.cs new file mode 100644 index 0000000..15b1beb --- /dev/null +++ b/ADEPT-Godot/Core/Scripts/ADEPT.cs @@ -0,0 +1,20 @@ +using Cogwheel; + +namespace ADEPT.Core; + +public static class ADEPT +{ + + public static void Initialize() + { + + } + + public static class Constants + { + public const string Version = "0.0.0"; + public const string DefaultLessonPath = "res://Assets/ADEPT/Lessons/"; + public const string DefaultLessonFileExtension = ".adept"; + } + +} \ No newline at end of file diff --git a/ADEPT-Godot/Core/Scripts/DELETEME.txt b/ADEPT-Godot/Core/Scripts/DELETEME.txt deleted file mode 100644 index e69de29..0000000 diff --git a/ADEPT-Godot/Core/Scripts/Interfaces/Lesson/ILesson.cs b/ADEPT-Godot/Core/Scripts/Interfaces/Lesson/ILesson.cs new file mode 100644 index 0000000..98d604a --- /dev/null +++ b/ADEPT-Godot/Core/Scripts/Interfaces/Lesson/ILesson.cs @@ -0,0 +1,6 @@ +namespace ADEPT.Core.Lesson; + +public interface ILesson +{ + +} \ No newline at end of file diff --git a/ADEPT-Godot/Core/Scripts/Interfaces/Lesson/ILessonHandler.cs b/ADEPT-Godot/Core/Scripts/Interfaces/Lesson/ILessonHandler.cs new file mode 100644 index 0000000..0159712 --- /dev/null +++ b/ADEPT-Godot/Core/Scripts/Interfaces/Lesson/ILessonHandler.cs @@ -0,0 +1,7 @@ +namespace ADEPT.Core.Lesson; + +public interface ILessonHandler +{ + public ILesson loadLesson(string lessonName); + public void saveLesson(ILesson lesson, string lessonName); +} \ No newline at end of file diff --git a/ADEPT-Godot/Core/Scripts/Interfaces/Lesson/IPage.cs b/ADEPT-Godot/Core/Scripts/Interfaces/Lesson/IPage.cs new file mode 100644 index 0000000..c0de70d --- /dev/null +++ b/ADEPT-Godot/Core/Scripts/Interfaces/Lesson/IPage.cs @@ -0,0 +1,6 @@ +namespace ADEPT.Core.Lesson; + +public interface IPage +{ + +} \ No newline at end of file diff --git a/ADEPT-Godot/Core/Scripts/Interfaces/Lesson/IPageComponent.cs b/ADEPT-Godot/Core/Scripts/Interfaces/Lesson/IPageComponent.cs new file mode 100644 index 0000000..8c60226 --- /dev/null +++ b/ADEPT-Godot/Core/Scripts/Interfaces/Lesson/IPageComponent.cs @@ -0,0 +1,6 @@ +namespace ADEPT.Core.Lesson; + +public interface IPageComponent +{ + +} \ No newline at end of file diff --git a/ADEPT-Godot/Core/Scripts/Interfaces/PartsSystem/IPartsSystem.cs b/ADEPT-Godot/Core/Scripts/Interfaces/PartsSystem/IPartsSystem.cs new file mode 100644 index 0000000..9ae803c --- /dev/null +++ b/ADEPT-Godot/Core/Scripts/Interfaces/PartsSystem/IPartsSystem.cs @@ -0,0 +1,6 @@ +namespace ADEPT.Core.PartsSystem; + +public interface IPartsSystem +{ + +} \ No newline at end of file diff --git a/ADEPT-Godot/Core/Scripts/Lesson/BasePageComponent.cs b/ADEPT-Godot/Core/Scripts/Lesson/BasePageComponent.cs new file mode 100644 index 0000000..262ae4b --- /dev/null +++ b/ADEPT-Godot/Core/Scripts/Lesson/BasePageComponent.cs @@ -0,0 +1,6 @@ +namespace ADEPT.Core.Lesson; + +public class BasePageComponent : IPageComponent +{ + +} \ No newline at end of file diff --git a/ADEPT-Godot/Core/Scripts/Lesson/Lesson.cs b/ADEPT-Godot/Core/Scripts/Lesson/Lesson.cs new file mode 100644 index 0000000..4dd5f42 --- /dev/null +++ b/ADEPT-Godot/Core/Scripts/Lesson/Lesson.cs @@ -0,0 +1,6 @@ +namespace ADEPT.Core.Lesson; + +public class Lesson : ILesson +{ + +} \ No newline at end of file diff --git a/ADEPT-Godot/Core/Scripts/Lesson/LessonHandler.cs b/ADEPT-Godot/Core/Scripts/Lesson/LessonHandler.cs new file mode 100644 index 0000000..c32f104 --- /dev/null +++ b/ADEPT-Godot/Core/Scripts/Lesson/LessonHandler.cs @@ -0,0 +1,18 @@ +using Cogwheel; + +namespace ADEPT.Core.Lesson; + +public class LessonHandler : ILessonHandler +{ + public ILesson loadLesson(string lessonName) + { + var path = $"{ADEPT.Constants.DefaultLessonPath}{lessonName}{ADEPT.Constants.DefaultLessonFileExtension}"; + + throw new System.NotImplementedException(); + } + + public void saveLesson(ILesson lesson, string lessonName) + { + throw new System.NotImplementedException(); + } +} \ No newline at end of file diff --git a/ADEPT-Godot/Core/Scripts/Lesson/Page.cs b/ADEPT-Godot/Core/Scripts/Lesson/Page.cs new file mode 100644 index 0000000..b84b88b --- /dev/null +++ b/ADEPT-Godot/Core/Scripts/Lesson/Page.cs @@ -0,0 +1,6 @@ +namespace ADEPT.Core.Lesson; + +public class Page : IPage +{ + +} \ No newline at end of file diff --git a/ADEPT-Godot/Core/Scripts/PartSystem/PartsSystem.cs b/ADEPT-Godot/Core/Scripts/PartSystem/PartsSystem.cs new file mode 100644 index 0000000..7086310 --- /dev/null +++ b/ADEPT-Godot/Core/Scripts/PartSystem/PartsSystem.cs @@ -0,0 +1,6 @@ +namespace ADEPT.Core.PartsSystem; + +public class PartsSystem : IPartsSystem +{ + +} \ No newline at end of file