![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Discriminated union of property value types (String / Float). More...
#include <UndoRedoStack.h>
Public Types | |
| enum class | Kind { String , Float , Int } |
Public Member Functions | |
| PropertyValue () | |
Static Public Member Functions | |
| static PropertyValue | FromString (const std::string &s) |
| static PropertyValue | FromFloat (float f) |
| static PropertyValue | FromInt (int i) |
Public Attributes | |
| enum Olympe::PropertyValue::Kind | kind |
| std::string | strVal |
| float | floatVal |
| int | intVal |
Discriminated union of property value types (String / Float).
C++14 compliant — no std::variant, no std::optional.
Definition at line 187 of file UndoRedoStack.h.
|
strong |
| Enumerator | |
|---|---|
| String | |
| Float | |
| Int | |
Definition at line 188 of file UndoRedoStack.h.
|
inline |
Definition at line 193 of file UndoRedoStack.h.
|
inlinestatic |
Definition at line 200 of file UndoRedoStack.h.
References Float, GetComponentTypeID_Static(), and kind.
Here is the call graph for this function:
|
inlinestatic |
Definition at line 205 of file UndoRedoStack.h.
References GetComponentTypeID_Static(), Int, and kind.
Here is the call graph for this function:
|
inlinestatic |
Definition at line 195 of file UndoRedoStack.h.
References GetComponentTypeID_Static(), kind, and String.
Referenced by Olympe::VisualScriptEditorPanel::RenderNodePropertiesPanelContent(), and Olympe::VisualScriptEditorPanel::RenderSwitchNodeProperties().
Here is the call graph for this function:
Here is the caller graph for this function:| float Olympe::PropertyValue::floatVal |
Definition at line 190 of file UndoRedoStack.h.
Referenced by Olympe::EditNodePropertyCommand::ApplyValue().
| int Olympe::PropertyValue::intVal |
Definition at line 191 of file UndoRedoStack.h.
| enum Olympe::PropertyValue::Kind Olympe::PropertyValue::kind |
Referenced by FromFloat(), FromInt(), and FromString().
| std::string Olympe::PropertyValue::strVal |
Definition at line 189 of file UndoRedoStack.h.
Referenced by Olympe::EditNodePropertyCommand::ApplyValue().