27 lines
678 B
C#
27 lines
678 B
C#
using Chickensoft.Introspection;
|
|
using Chickensoft.LogicBlocks;
|
|
|
|
namespace GameJamDungeon
|
|
{
|
|
public partial class GameLogic
|
|
{
|
|
public partial record State
|
|
{
|
|
[Meta]
|
|
public partial record Paused : State, IGet<Input.InventoryMenuToggle>, IGet<Input.MiniMapButtonReleased>
|
|
{
|
|
public Paused()
|
|
{
|
|
this.OnEnter(() => Get<IGameRepo>().Pause());
|
|
this.OnExit(() => Output(new Output.SetPauseMode(false)));
|
|
}
|
|
|
|
|
|
public virtual Transition On(in Input.InventoryMenuToggle input) => To<Playing>();
|
|
|
|
public virtual Transition On(in Input.MiniMapButtonReleased input) => To<Playing>();
|
|
}
|
|
}
|
|
}
|
|
}
|