![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Atomic task that compares two values and returns Success or Failure. More...
#include "../../IAtomicTask.h"
Include dependency graph for Task_Compare.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | Olympe::Task_Compare |
| Atomic task that returns Success if a comparison holds, Failure otherwise. More... | |
Namespaces | |
| namespace | Olympe |
| < Provides AssetID and INVALID_ASSET_ID | |
Atomic task that compares two values and returns Success or Failure.
Task_Compare evaluates a comparison between "LHS" and "RHS" parameters using the "Operator" parameter and returns Success if the comparison is true, Failure otherwise.
Parameters (ParameterMap): "LHS" (Int|Float|String) - left-hand side value (required) "RHS" (Int|Float|String) - right-hand side value (required, same type) "Operator" (String) - one of: "==", "!=", "<", ">", "<=", ">=" (required; "<","<=",">",">=" numeric only)
Returns: Success if the comparison is true. Failure if the comparison is false, or if parameters are invalid.
C++14 compliant - no C++17/20 features.
Definition in file Task_Compare.h.