24 lines
533 B
C#
24 lines
533 B
C#
namespace Zennysoft.Ma.Godot.Adapter;
|
|
|
|
using Chickensoft.Introspection;
|
|
using Chickensoft.LogicBlocks;
|
|
|
|
public partial class GameLogic
|
|
{
|
|
public partial record State
|
|
{
|
|
[Meta]
|
|
public partial record Resuming : Playing, IGet<Input.PauseMenuTransitioned>
|
|
{
|
|
public Resuming()
|
|
{
|
|
this.OnEnter(() => Get<IGameRepo>().Resume());
|
|
this.OnExit(() => Output(new Output.HidePauseMenu()));
|
|
}
|
|
|
|
public Transition On(in Input.PauseMenuTransitioned input) =>
|
|
To<Playing>();
|
|
}
|
|
}
|
|
}
|