Skip to content

Commit

Permalink
feature: PUSH_STATE_QUEUED macros
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonetfal committed Jan 13, 2024
1 parent 3853cbe commit ba647ff
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,21 @@ UE5FSM_API UE_DECLARE_GAMEPLAY_TAG_EXTERN(TAG_StateMachine_Label_Default);
#define PUSH_STATE_CLASS_LABEL(STATE_CLASS, LABEL_NAME) \
PUSH_STATE_IMPLEMENTATION(STATE_CLASS, TAG_StateMachine_Label_ ## LABEL_NAME)

#define PUSH_STATE_QUEUED_IMPLEMENTATION(STATE_CLASS, LABEL) \
RUN_LATENT_EXECUTION(PushStateQueued, STATE_CLASS, LABEL)

#define PUSH_STATE_QUEUED(STATE_NAME) \
PUSH_STATE_QUEUED_LABEL(STATE_NAME, Default)

#define PUSH_STATE_QUEUED_LABEL(STATE_NAME, LABEL_NAME) \
PUSH_STATE_QUEUED_IMPLEMENTATION(STATE_NAME ## ::StaticClass(), TAG_StateMachine_Label_ ## LABEL_NAME)

#define PUSH_STATE_QUEUED_CLASS(STATE_CLASS) \
PUSH_STATE_QUEUED_CLASS_LABEL(STATE_CLASS, Default)

#define PUSH_STATE_QUEUED_CLASS_LABEL(STATE_CLASS, LABEL_NAME) \
PUSH_STATE_QUEUED_IMPLEMENTATION(STATE_CLASS, TAG_StateMachine_Label_ ## LABEL_NAME)

#define POP_STATE() if (PopState()) co_return

#define TO_STR(x) #x
Expand Down

0 comments on commit ba647ff

Please sign in to comment.