32 lines
725 B
C#
32 lines
725 B
C#
using Chickensoft.Introspection;
|
|
using Chickensoft.LogicBlocks;
|
|
using Godot;
|
|
|
|
namespace Zennysoft.Ma.Adapter;
|
|
|
|
public partial class GameState
|
|
{
|
|
public partial record State
|
|
{
|
|
[Meta, LogicBlock(typeof(State), Diagram = true)]
|
|
public partial record AskForTeleportScreen : State, IGet<Input.UseTeleport>, IGet<Input.CloseTeleport>
|
|
{
|
|
public AskForTeleportScreen()
|
|
{
|
|
OnAttach(() => Get<IGameRepo>().Pause());
|
|
}
|
|
|
|
public Transition On(in Input.UseTeleport input)
|
|
{
|
|
Output(new Output.OpenFloorExitScreen());
|
|
return To<FloorExitScreen>();
|
|
}
|
|
|
|
public Transition On(in Input.CloseTeleport input)
|
|
{
|
|
return To<InGame>();
|
|
}
|
|
}
|
|
}
|
|
}
|