Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Olympe::SwitchCaseDefinition Struct Reference

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)
 

Detailed Description

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.

Member Function Documentation

◆ GetDisplayName()

const std::string & Olympe::SwitchCaseDefinition::GetDisplayName ( ) const
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.

Member Data Documentation

◆ customLabel

std::string Olympe::SwitchCaseDefinition::customLabel

User-defined display label (empty = use pinName)

Definition at line 407 of file TaskGraphTypes.h.

Referenced by GetDisplayName().

◆ pinName

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().

◆ value

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().


The documentation for this struct was generated from the following file: