Kasen Plugin Infrastructure v½ Codename "Modkit Mini"
Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 25 files). Show all
Unified · Split
| @@ -237,6 +237,11 @@ ScriptEngine::ScriptEngine(Context context, const QString& scriptContents, const · 236 unmodified lines | |||
| 237 | } | 237 | } |
| 238 | } | 238 | } |
| 239 | 239 | ||
| 240 | QString ScriptEngine::getTypeAsString() const { | ||
| 241 | auto value = QVariant::fromValue(_type).toString(); | ||
| 242 | return value.isEmpty() ? "unknown" : value.toLower(); | ||
| 243 | } | ||
| 244 | |||
| 240 | QString ScriptEngine::getContext() const { | 245 | QString ScriptEngine::getContext() const { |
| 241 | switch (_context) { | 246 | switch (_context) { |
| 242 | case CLIENT_SCRIPT: | 247 | case CLIENT_SCRIPT: |