Creating classes and interfaces, defining project structure
This commit is contained in:
parent
a65e61b6df
commit
85e21b956e
20
ADEPT-Godot/Core/Scripts/ADEPT.cs
Normal file
20
ADEPT-Godot/Core/Scripts/ADEPT.cs
Normal file
@ -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";
|
||||
}
|
||||
|
||||
}
|
6
ADEPT-Godot/Core/Scripts/Interfaces/Lesson/ILesson.cs
Normal file
6
ADEPT-Godot/Core/Scripts/Interfaces/Lesson/ILesson.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace ADEPT.Core.Lesson;
|
||||
|
||||
public interface ILesson
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
namespace ADEPT.Core.Lesson;
|
||||
|
||||
public interface ILessonHandler
|
||||
{
|
||||
public ILesson loadLesson(string lessonName);
|
||||
public void saveLesson(ILesson lesson, string lessonName);
|
||||
}
|
6
ADEPT-Godot/Core/Scripts/Interfaces/Lesson/IPage.cs
Normal file
6
ADEPT-Godot/Core/Scripts/Interfaces/Lesson/IPage.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace ADEPT.Core.Lesson;
|
||||
|
||||
public interface IPage
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
namespace ADEPT.Core.Lesson;
|
||||
|
||||
public interface IPageComponent
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
namespace ADEPT.Core.PartsSystem;
|
||||
|
||||
public interface IPartsSystem
|
||||
{
|
||||
|
||||
}
|
6
ADEPT-Godot/Core/Scripts/Lesson/BasePageComponent.cs
Normal file
6
ADEPT-Godot/Core/Scripts/Lesson/BasePageComponent.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace ADEPT.Core.Lesson;
|
||||
|
||||
public class BasePageComponent : IPageComponent
|
||||
{
|
||||
|
||||
}
|
6
ADEPT-Godot/Core/Scripts/Lesson/Lesson.cs
Normal file
6
ADEPT-Godot/Core/Scripts/Lesson/Lesson.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace ADEPT.Core.Lesson;
|
||||
|
||||
public class Lesson : ILesson
|
||||
{
|
||||
|
||||
}
|
18
ADEPT-Godot/Core/Scripts/Lesson/LessonHandler.cs
Normal file
18
ADEPT-Godot/Core/Scripts/Lesson/LessonHandler.cs
Normal file
@ -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();
|
||||
}
|
||||
}
|
6
ADEPT-Godot/Core/Scripts/Lesson/Page.cs
Normal file
6
ADEPT-Godot/Core/Scripts/Lesson/Page.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace ADEPT.Core.Lesson;
|
||||
|
||||
public class Page : IPage
|
||||
{
|
||||
|
||||
}
|
6
ADEPT-Godot/Core/Scripts/PartSystem/PartsSystem.cs
Normal file
6
ADEPT-Godot/Core/Scripts/PartSystem/PartsSystem.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace ADEPT.Core.PartsSystem;
|
||||
|
||||
public class PartsSystem : IPartsSystem
|
||||
{
|
||||
|
||||
}
|
Reference in New Issue
Block a user