X-Git-Url: https://git.bts.cx/benzene.git/blobdiff_plain/88fe7f92d3fd592960bc2534fcdc534021c870bc..76064b2ae48e49da4341490dd00f8977ea540fd8:/src/bz/scripting/bindings.cpp diff --git a/src/bz/scripting/bindings.cpp b/src/bz/scripting/bindings.cpp index 2a88b12..06ede90 100644 --- a/src/bz/scripting/bindings.cpp +++ b/src/bz/scripting/bindings.cpp @@ -112,6 +112,8 @@ static void native_rnd(SVMModuleInstance *instance, int32_t parameterCount, SVMO } } +_FUNCTION_BINDING(srand, bzRandomReseed, _INT_PARAMETER(1)) + _FUNCTION_BINDING_RTN(lerp, fixedLerp, _FUNCTION_PARAMETER(1, float), _FUNCTION_PARAMETER(2, float), _FUNCTION_PARAMETER(3, float)) static void native_dot(SVMModuleInstance *instance, int32_t parameterCount, SVMOperand stack[]) { @@ -676,6 +678,7 @@ SVMFunctionCallback bzScriptingBindingsLookupNativeFunction(uint32_t nameCRC, vo FUNCTION_BIND(ceil) FUNCTION_BIND(adelta) FUNCTION_BIND(rnd) + FUNCTION_BIND(srand) FUNCTION_BIND(lerp) FUNCTION_BIND(dot)