IndieGame/client/Assets/ParadoxNotion/NodeCanvas/Modules/StateMachines/IState.cs

22 lines
857 B
C#
Raw Normal View History

2024-10-11 10:12:15 +08:00
namespace NodeCanvas.StateMachines
{
//An interface for states. Works together with IStateCallbackReceiver
public interface IState
{
///<summary>The name of the state</summary>
string name { get; }
///<summary>The tag of the state</summary>
string tag { get; }
///<summary>The elapsed time of the state</summary>
float elapsedTime { get; }
///<summary>The FSM this state belongs to</summary>
FSM FSM { get; }
///<summary>An array of the state's transition connections</summary>
FSMConnection[] GetTransitions();
///<summary>Evaluates the state's transitions and returns true if a transition has been performed</summary>
bool CheckTransitions();
///<summary>Marks the state as Finished</summary>
void Finish(bool success);
}
}