Showing the changes to interface/src/scripting/PlatformInfoScriptingInterface.cpp (1 of 35 files). Show all
Unified · Split
| @@ -21,11 +21,11 @@ · 20 unmodified lines | ||
| 21 | 21 | #include <sstream> |
| 22 | 22 | #endif |
| 23 | 23 | |
| 24 | −STATIC_SCRIPT_TYPES_INITIALIZER(+[](ScriptManager* manager){ | |
| 24 | +STATIC_SCRIPT_TYPES_INITIALIZER((+[](ScriptManager* manager){ | |
| 25 | 25 | auto scriptEngine = manager->engine().get(); |
| 26 | 26 | |
| 27 | − scriptRegisterMetaType(scriptEngine, scriptValueFromEnumClass<PlatformInfoScriptingInterface::PlatformTier>, scriptValueToEnumClass<PlatformInfoScriptingInterface::PlatformTier>, "PlatformTier"); | |
| 28 | −}); | |
| 27 | + scriptRegisterMetaType<PlatformInfoScriptingInterface::PlatformTier, scriptValueFromEnumClass<PlatformInfoScriptingInterface::PlatformTier>, scriptValueToEnumClass<PlatformInfoScriptingInterface::PlatformTier> >(scriptEngine, "PlatformTier"); | |
| 28 | +})); | |
| 29 | 29 | |
| 30 | 30 | STATIC_SCRIPT_INITIALIZER(+[](ScriptManager* manager){ |
| 31 | 31 | auto scriptEngine = manager->engine().get(); |