Refactors, Introduce GameManager, Lobby work, Docs

This commit is contained in:
2024-12-23 03:15:16 -08:00
parent 299752bd75
commit 0fffa21ff1
10 changed files with 170 additions and 31 deletions

22
code/GameManager.cs Normal file
View File

@@ -0,0 +1,22 @@
namespace LuckerParty;
/// <summary>
/// Manages the Game state, which right now is either Lobby or Round.
/// Maintains the lifecycle of the Lobby and Round Managers.
/// </summary>
public sealed class GameManager : Component
{
public enum State
{
Lobby,
Round
}
public State CurrentState { get; private set; } = State.Lobby;
protected override void OnStart()
{
// Start Lobby
GameObject.AddComponent<LobbyManager>();
}
}