![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Describes a single case branch on a Switch node. More...
#include <TaskGraphTypes.h>
Public Member Functions | |
| const std::string & | GetDisplayName () const |
| Returns the display name shown in the editor. | |
Public Attributes | |
| std::string | value |
| The value to match (int as decimal string or raw string) | |
| std::string | pinName |
| The exec-out pin name used internally (e.g. "Case_0") | |
| std::string | customLabel |
| User-defined display label (empty = use pinName) | |
Describes a single case branch on a Switch node.
Each case maps a match value to a named exec-out pin. An optional custom label can be set by the user for readability (e.g. "Patrol" instead of "Case_5").
Definition at line 404 of file TaskGraphTypes.h.
|
inline |
Returns the display name shown in the editor.
Returns customLabel if non-empty, otherwise pinName.
Definition at line 413 of file TaskGraphTypes.h.
References customLabel, and pinName.
| std::string Olympe::SwitchCaseDefinition::customLabel |
User-defined display label (empty = use pinName)
Definition at line 407 of file TaskGraphTypes.h.
Referenced by GetDisplayName().
| std::string Olympe::SwitchCaseDefinition::pinName |
The exec-out pin name used internally (e.g. "Case_0")
Definition at line 406 of file TaskGraphTypes.h.
Referenced by GetDisplayName().
| std::string Olympe::SwitchCaseDefinition::value |
The value to match (int as decimal string or raw string)
Definition at line 405 of file TaskGraphTypes.h.
Referenced by Olympe::VSGraphVerifier::CheckSwitchNodes(), and Olympe::TaskGraphLoader::ParseNodeV4().