Add game scene and level catalog interfaces, and implement scene management in AppRoot
This commit is contained in:
10
app/IGameScenes.cs
Normal file
10
app/IGameScenes.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using Godot;
|
||||
|
||||
namespace Mr.BrickAdventures.app;
|
||||
|
||||
public interface IGameScenes
|
||||
{
|
||||
void Load(PackedScene scene);
|
||||
void Restart();
|
||||
void ReturnToMain(PackedScene mainMenu);
|
||||
}
|
1
app/IGameScenes.cs.uid
Normal file
1
app/IGameScenes.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://b7d1ospa5p4nx
|
11
app/ILevelCatalog.cs
Normal file
11
app/ILevelCatalog.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Godot;
|
||||
|
||||
namespace Mr.BrickAdventures.app;
|
||||
|
||||
public interface ILevelCatalog
|
||||
{
|
||||
int Count { get; }
|
||||
PackedScene? Get(int index);
|
||||
PackedScene First { get; }
|
||||
PackedScene MainMenu { get; }
|
||||
}
|
1
app/ILevelCatalog.cs.uid
Normal file
1
app/ILevelCatalog.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://b2sxttgvk6nuq
|
Reference in New Issue
Block a user