In progress gameplay loop changes

This commit is contained in:
2025-04-15 00:33:59 -07:00
parent 03caa13ceb
commit 24b4227425
11 changed files with 108 additions and 29 deletions

View File

@@ -8,12 +8,18 @@ public partial class GameLogic
public partial record State
{
[Meta]
public partial record Quit : State
public partial record Quit : State, IGet<Input.GoToOverworld>
{
public Quit()
{
this.OnEnter(() => Output(new Output.ShowLostScreen()));
}
public Transition On(in Input.GoToOverworld input)
{
Input(new Input.StartGame());
return To<Playing>();
}
}
}
}