Skip to content
This repository was archived by the owner on Nov 16, 2025. It is now read-only.

StateBase is()

ged edited this page Sep 10, 2024 · 2 revisions

Definition

Checks the current state's status.

bool is(StateStatus status) const

Parameters

  • status: The status to compare.

Remarks

The status of the state updates whenever one of the callbacks (enter, update, and exit) is executed.

  • When the enter callback is executed, the status is set to StateStatus::Entering. After it is executed, the status is set to StateStatus::Updating.
  • When the update callback is executed, the status remains in StateStatus::Updating.
  • When the exit callback is executed, the status is set to StateStatus::Exiting. After it is executed, the status is cleared.

Clone this wiki locally