23 lines
558 B
C#
23 lines
558 B
C#
using Chickensoft.Introspection;
|
|
|
|
namespace Zennysoft.Ma.Adapter;
|
|
|
|
public partial class AppLogic
|
|
{
|
|
public partial record State
|
|
{
|
|
[Meta]
|
|
public partial record MainMenu : State, IGet<Input.NewGame>, IGet<Input.LoadGame>, IGet<Input.EnemyViewerOpened>
|
|
{
|
|
public MainMenu()
|
|
{
|
|
}
|
|
|
|
public Transition On(in Input.NewGame input) => To<GameStarted>();
|
|
|
|
public Transition On(in Input.EnemyViewerOpened input) => To<EnemyViewer>();
|
|
public Transition On(in Input.LoadGame input) => To<LoadingSaveFile>();
|
|
}
|
|
}
|
|
}
|