Overhaul game state logic to support gameplay loop
This commit is contained in:
13
Zennysoft.Game.Ma.Implementation/Game/GameState.cs
Normal file
13
Zennysoft.Game.Ma.Implementation/Game/GameState.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Chickensoft.Introspection;
|
||||
using Chickensoft.LogicBlocks;
|
||||
|
||||
namespace Zennysoft.Ma.Adapter;
|
||||
|
||||
public interface IGameState : ILogicBlock<GameState.State>;
|
||||
|
||||
[Meta]
|
||||
[LogicBlock(typeof(State), Diagram = true)]
|
||||
public partial class GameState : LogicBlock<GameState.State>, IGameState
|
||||
{
|
||||
public override Transition GetInitialState() => To<State.MainMenu>();
|
||||
}
|
||||
Reference in New Issue
Block a user