23 lines
605 B
C#
23 lines
605 B
C#
using Chickensoft.Introspection;
|
|
using Chickensoft.LogicBlocks;
|
|
|
|
namespace Zennysoft.Game.Ma.Implementation;
|
|
|
|
public partial class GameLogic
|
|
{
|
|
public partial record State
|
|
{
|
|
[Meta]
|
|
public partial record MinimapOpen : Playing, IGet<Input.MiniMapButtonReleased>
|
|
{
|
|
public MinimapOpen()
|
|
{
|
|
this.OnEnter(() => { Get<IGameRepo>().Pause(); Output(new Output.ShowMiniMap()); });
|
|
this.OnExit(() => { Get<IGameRepo>().Resume(); Output(new Output.HideMiniMap()); });
|
|
}
|
|
|
|
public Transition On(in Input.MiniMapButtonReleased input) => To<Playing>();
|
|
}
|
|
}
|
|
}
|