Files
GameJamDungeon/Zennysoft.Game.Ma.Implementation/Game/state/states/GameLogic.State.Quit.cs

25 lines
505 B
C#

using Chickensoft.Introspection;
using Chickensoft.LogicBlocks;
namespace Zennysoft.Ma.Adapter;
public partial class GameLogic
{
public partial record State
{
[Meta]
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>();
}
}
}
}