feat: serialized state machine & states
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
using Syntriax.Engine.Core;
|
||||
|
||||
namespace Syntriax.Engine.Systems.StateMachine;
|
||||
|
||||
public interface IState
|
||||
public interface IState : IEntity, INameable
|
||||
{
|
||||
event StateUpdateEventHandler? OnStateUpdate;
|
||||
event StateTransitionedFromEventHandler? OnStateTransitionedFrom;
|
||||
event StateTransitionedToEventHandler? OnStateTransitionedTo;
|
||||
event StateTransitionReadyEventHandler? OnStateTransitionReady;
|
||||
|
||||
string Name { get; }
|
||||
|
||||
IState? GetNextState();
|
||||
|
||||
void Update();
|
||||
|
Reference in New Issue
Block a user