59 if (op ==
"+")
return "Add (+)";
60 if (op ==
"-")
return "Subtract (-)";
61 if (op ==
"*")
return "Multiply (*)";
62 if (op ==
"/")
return "Divide (/)";
63 if (op ==
"%")
return "Modulo (%)";
64 if (op ==
"==")
return "Equal (==)";
65 if (op ==
"!=")
return "Not Equal (!=)";
66 if (op ==
"<")
return "Less Than (<)";
67 if (op ==
"<=")
return "Less or Equal (<=)";
68 if (op ==
">")
return "Greater Than (>)";
69 if (op ==
">=")
return "Greater or Equal (>=)";
ComponentTypeID GetComponentTypeID_Static()
Hardcoded lists of math and comparison operators for dropdown editors.
static bool IsValidMathOperator(const std::string &op)
Returns true if the given symbol is a valid math operator.
static bool IsValidComparisonOperator(const std::string &op)
Returns true if the given symbol is a valid comparison operator.
static std::string GetDisplayName(const std::string &op)
Returns a human-readable display name for an operator.
static const std::vector< std::string > & GetComparisonOperators()
Returns the list of supported comparison operator symbols.
static const std::vector< std::string > & GetMathOperators()
Returns the list of supported math operator symbols.
< Provides AssetID and INVALID_ASSET_ID
static const std::vector< std::string > s_comparisonOperators
static const std::vector< std::string > s_mathOperators