diff --git a/bind.go b/bind.go index 89cc652..497fa5f 100644 --- a/bind.go +++ b/bind.go @@ -10800,6 +10800,17 @@ func (pointer *SceneLuaVM) SetScriptValue(script *Script, name string, value *Lu return bool(retval) } +// SetScriptValueWithNotify ... +func (pointer *SceneLuaVM) SetScriptValueWithNotify(script *Script, name string, value *LuaObject, notify bool) bool { + scriptToC := script.h + nameToC, idFinnameToC := wrapString(name) + defer idFinnameToC() + valueToC := value.h + notifyToC := C.bool(notify) + retval := C.WrapSetScriptValueSceneLuaVMWithNotify(pointer.h, scriptToC, nameToC, valueToC, notifyToC) + return bool(retval) +} + // Call ... func (pointer *SceneLuaVM) Call(script *Script, function string, args *LuaObjectList) (bool, *LuaObjectList) { scriptToC := script.h diff --git a/linux/libharfang.a b/linux/libharfang.a index 236fb22..a639672 100644 Binary files a/linux/libharfang.a and b/linux/libharfang.a differ diff --git a/linux/libhg_go.a b/linux/libhg_go.a index 2e8946a..1e68f8e 100644 Binary files a/linux/libhg_go.a and b/linux/libhg_go.a differ diff --git a/windows/libharfang.a b/windows/libharfang.a index 2bc1cbc..ef3e289 100644 Binary files a/windows/libharfang.a and b/windows/libharfang.a differ diff --git a/windows/libhg_go.a b/windows/libhg_go.a index c502bb1..e5885d3 100644 Binary files a/windows/libhg_go.a and b/windows/libhg_go.a differ diff --git a/wrapper.h b/wrapper.h index 21dc165..9051c50 100644 --- a/wrapper.h +++ b/wrapper.h @@ -1435,6 +1435,7 @@ extern size_t WrapGetScriptCountSceneLuaVM(WrapSceneLuaVM this_); extern WrapLuaObject WrapGetScriptEnvSceneLuaVM(WrapSceneLuaVM this_, const WrapScript script); extern WrapLuaObject WrapGetScriptValueSceneLuaVM(WrapSceneLuaVM this_, const WrapScript script, const char *name); extern bool WrapSetScriptValueSceneLuaVM(WrapSceneLuaVM this_, const WrapScript script, const char *name, const WrapLuaObject value); +extern bool WrapSetScriptValueSceneLuaVMWithNotify(WrapSceneLuaVM this_, const WrapScript script, const char *name, const WrapLuaObject value, bool notify); extern bool WrapCallSceneLuaVM(WrapSceneLuaVM this_, const WrapScript script, const char *function, const WrapLuaObjectList args, WrapLuaObjectList ret_vals); extern bool WrapCallSceneLuaVMWithSliceOfArgs(WrapSceneLuaVM this_, const WrapScript script, const char *function, size_t SliceOfargsToCSize, WrapLuaObject *SliceOfargsToCBuf, WrapLuaObjectList ret_vals);