mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 14:55:55 +00:00
Add FSM components for player and enemy state management, including initialization and module resolution
This commit is contained in:
parent
18683c0680
commit
b6cc5a00e8
57 changed files with 526 additions and 506 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
#nullable enable
|
||||
using System.Collections.Generic;
|
||||
using Godot;
|
||||
|
||||
namespace Cirno.Scripts.Components.FSM;
|
||||
|
|
@ -15,4 +16,7 @@ public interface IStateMachine<TKey, [MustBeVariant] TType>
|
|||
public TKey GetState();
|
||||
|
||||
public TType MainObject { get; }
|
||||
|
||||
// Allow states to query modules by type from the owning actor
|
||||
public T? GetModule<T>() where T : Node;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue