Showing the changes to interface/src/scripting/PlatformInfoScriptingInterface.cpp (1 of 11 files). Show all
Unified · Split
| @@ -27,6 +27,12 @@ STATIC_SCRIPT_TYPES_INITIALIZER(+[](ScriptManager* manager){ · 26 unmodified lines | ||
| 27 | 27 | scriptRegisterMetaType(scriptEngine, scriptValueFromEnumClass<PlatformInfoScriptingInterface::PlatformTier>, scriptValueToEnumClass<PlatformInfoScriptingInterface::PlatformTier>, "PlatformTier"); |
| 28 | 28 | }); |
| 29 | 29 | |
| 30 | +STATIC_SCRIPT_INITIALIZER(+[](ScriptManager* manager){ | |
| 31 | + auto scriptEngine = manager->engine().get(); | |
| 32 | + | |
| 33 | + scriptEngine->registerEnum("PlatformInfo.PlatformTier",QMetaEnum::fromType<PlatformInfoScriptingInterface::PlatformTier>()); | |
| 34 | +}); | |
| 35 | + | |
| 30 | 36 | PlatformInfoScriptingInterface* PlatformInfoScriptingInterface::getInstance() { |
| 31 | 37 | static PlatformInfoScriptingInterface sharedInstance; |
| 32 | 38 | return &sharedInstance; |