]> git.bts.cx Git - benzene.git/blobdiff - src/bz/scripting/bindings.cpp
Updates for bindings
[benzene.git] / src / bz / scripting / bindings.cpp
index 2a88b12d02946fb65924466380ef87b8f93c44f6..06ede90243861c02748e20ef124be835d406538d 100644 (file)
@@ -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[]) {
 _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(ceil)
                FUNCTION_BIND(adelta)
                FUNCTION_BIND(rnd)
+               FUNCTION_BIND(srand)
                FUNCTION_BIND(lerp)
                FUNCTION_BIND(dot)
 
                FUNCTION_BIND(lerp)
                FUNCTION_BIND(dot)