mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 02:48:12 +02:00
dropped KALILA global script attributes
This commit is contained in:
parent
9b87072a49
commit
457728cee1
1 changed files with 0 additions and 4 deletions
|
@ -715,10 +715,6 @@ void ScriptManager::init() {
|
||||||
scriptEngine->registerGlobalObject("StackTest", new StackTestScriptingInterface(this));
|
scriptEngine->registerGlobalObject("StackTest", new StackTestScriptingInterface(this));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
scriptEngine->globalObject().setProperty("KALILA", "isWaifu");
|
|
||||||
scriptEngine->globalObject().setProperty("Kute", scriptEngine->newFunction([](ScriptContext* context, ScriptEngine* engine) -> ScriptValue {
|
|
||||||
return context->engine()->newValue(context->argument(0).toString().toLower() == "kalila" ? true : false);
|
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// registers a global object by name
|
// registers a global object by name
|
||||||
|
|
Loading…
Reference in a new issue