Refactors, Introduce GameManager, Lobby work

This commit is contained in:
2024-12-23 03:15:16 -08:00
parent 299752bd75
commit 9e2fdafa48
9 changed files with 144 additions and 47 deletions

25
code/LobbyManager.cs Normal file
View File

@@ -0,0 +1,25 @@
using LuckerParty.UI;
namespace LuckerParty;
public sealed class LobbyManager : Component
{
private PanelComponent _panelComponent;
protected override void OnEnabled()
{
var screenPanel = Scene.Directory.FindByName( "UI Root" ).First();
_panelComponent = screenPanel.AddComponent<Lobby>();
}
protected override void OnDisabled()
{
_panelComponent.Destroy();
_panelComponent = null;
}
public interface ILobbyEvent : ISceneEvent<ILobbyEvent>
{
void OnStartGame( RoundConfiguration roundConfiguration );
}
}