|
NSUNI/NSLAR Library a250670
|
Contains the definition for action identifiers that are used across different parts of the library. More...
Classes | |
| struct | nnl::action::Id |
| Represents a unique identifier for an action. More... | |
Enumerations | |
| enum class | nnl::action::ActionCategory { nnl::action::ActionCategory::kMovement = 0 , nnl::action::ActionCategory::kCombat = 1 , nnl::action::ActionCategory::kDamage = 2 , nnl::action::ActionCategory::kCutscene = 3 } |
| Defines the categories of actions. More... | |
Variables | |
| constexpr std::size_t | nnl::action::kNumActionCategories = 4 |
| Defines the number of action categories;. | |
| constexpr std::size_t | nnl::action::kMaxActionIndex = 0x3FFF |
| Defines the maximum index of an action in a category;. | |
Contains the definition for action identifiers that are used across different parts of the library.
| struct nnl::action::Id |
Represents a unique identifier for an action.
The action_category member determines the type of an action, while the action_index provides a unique identifier for the action within that category. Together, they form a complete identifier for an action.
Public Attributes | |
| ActionCategory | action_category = ActionCategory::kMovement |
| Type of the action. | |
| u16 | action_index = 0 |
| The index within the category. | |
| ActionCategory nnl::action::Id::action_category = ActionCategory::kMovement |
Type of the action.
| u16 nnl::action::Id::action_index = 0 |
The index within the category.
|
strong |
Defines the categories of actions.
Each category groups related actions with their animations and effects.
| Enumerator | |
|---|---|
| kMovement | Related to moving the entity. |
| kCombat | Related to attacking behaviors. |
| kDamage | Related to receiving damage. |
| kCutscene | Related to scripted events or cutscenes. |
|
constexpr |
Defines the maximum index of an action in a category;.
|
constexpr |
Defines the number of action categories;.