31 lines
630 B
C#
31 lines
630 B
C#
using Chickensoft.Introspection;
|
|
using Chickensoft.LogicBlocks;
|
|
using Zennysoft.Game.Abstractions;
|
|
|
|
namespace Zennysoft.Ma.Adapter;
|
|
|
|
public partial class AppLogic
|
|
{
|
|
public partial record State
|
|
{
|
|
[Meta]
|
|
public partial record EnemyViewer : State, IGet<Input.EnemyViewerExited>
|
|
{
|
|
public EnemyViewer()
|
|
{
|
|
|
|
this.OnEnter(() =>
|
|
{
|
|
Output(new Output.EnemyViewerOpened());
|
|
});
|
|
this.OnExit(() =>
|
|
{
|
|
Output(new Output.EnemyViewerExited());
|
|
});
|
|
}
|
|
|
|
public Transition On(in Input.EnemyViewerExited input) => To<MainMenu>();
|
|
}
|
|
}
|
|
}
|