In progress gameplay loop changes
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user