28 lines
651 B
C#
28 lines
651 B
C#
using Chickensoft.Introspection;
|
|
using Chickensoft.LogicBlocks;
|
|
|
|
namespace Zennysoft.Ma.Adapter;
|
|
|
|
public partial class GameState
|
|
{
|
|
public partial record State
|
|
{
|
|
[Meta, LogicBlock(typeof(State), Diagram = true)]
|
|
public partial record GameOver : InGame, IGet<Input.NewGame>, IGet<Input.ExitGame>
|
|
{
|
|
public Transition On(in Input.NewGame input)
|
|
{
|
|
Output(new Output.InitializeGame());
|
|
return To<InGame>();
|
|
}
|
|
|
|
public Transition On(in Input.ExitGame input)
|
|
{
|
|
Output(new Output.ClosePauseScreen());
|
|
Output(new Output.ExitGame());
|
|
return To<State>();
|
|
}
|
|
}
|
|
}
|
|
}
|