In progress gameplay loop changes
This commit is contained in:
@@ -20,7 +20,6 @@ public partial class GameLogic
|
||||
|
||||
public Transition On(in Input.StartGame input)
|
||||
{
|
||||
Output(new Output.LoadMap());
|
||||
return To<Playing>();
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ public partial class GameLogic
|
||||
OnAttach(() =>
|
||||
{
|
||||
Output(new Output.StartGame());
|
||||
Output(new Output.LoadMap());
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -8,12 +8,18 @@ public partial class GameLogic
|
||||
public partial record State
|
||||
{
|
||||
[Meta]
|
||||
public partial record Quit : State
|
||||
public partial record Quit : State, IGet<Input.GoToOverworld>
|
||||
{
|
||||
public Quit()
|
||||
{
|
||||
this.OnEnter(() => Output(new Output.ShowLostScreen()));
|
||||
}
|
||||
|
||||
public Transition On(in Input.GoToOverworld input)
|
||||
{
|
||||
Input(new Input.StartGame());
|
||||
return To<Playing>();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,8 @@ namespace Zennysoft.Ma.Adapter;
|
||||
|
||||
public interface IPlayer : IKillable
|
||||
{
|
||||
public void InitializePlayerState();
|
||||
|
||||
public void Attack();
|
||||
|
||||
public void PlayerPause();
|
||||
|
||||
Reference in New Issue
Block a user