feat: serialized state machine & states

This commit is contained in:
2025-04-30 19:20:45 +03:00
parent d2ca85568f
commit bd5eb432b7
4 changed files with 36 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
using Syntriax.Engine.Core;
using Syntriax.Engine.Core.Serialization;
namespace Syntriax.Engine.Systems.StateMachine;
@@ -7,6 +8,7 @@ public class StateMachine : Behaviour
public event StateChangedEventHandler? OnStateChanged = null;
private IState _state = new State();
[Serialize]
public IState State
{
get => _state;