|
|
@@ -6,9 +6,13 @@
|
|
|
#include "AnimationTarget.h"
|
|
|
#include "AudioSource.h"
|
|
|
#include "Base.h"
|
|
|
+#include "Drawable.h"
|
|
|
+#include "Form.h"
|
|
|
#include "Game.h"
|
|
|
#include "Joint.h"
|
|
|
+#include "MaterialParameter.h"
|
|
|
#include "MeshSkin.h"
|
|
|
+#include "Model.h"
|
|
|
#include "Node.h"
|
|
|
#include "PhysicsCharacter.h"
|
|
|
#include "PhysicsGhostObject.h"
|
|
|
@@ -54,8 +58,8 @@ void luaRegister_Joint()
|
|
|
{"getChildCount", lua_Joint_getChildCount},
|
|
|
{"getCollisionObject", lua_Joint_getCollisionObject},
|
|
|
{"getDownVector", lua_Joint_getDownVector},
|
|
|
+ {"getDrawable", lua_Joint_getDrawable},
|
|
|
{"getFirstChild", lua_Joint_getFirstChild},
|
|
|
- {"getForm", lua_Joint_getForm},
|
|
|
{"getForwardVector", lua_Joint_getForwardVector},
|
|
|
{"getForwardVectorView", lua_Joint_getForwardVectorView},
|
|
|
{"getForwardVectorWorld", lua_Joint_getForwardVectorWorld},
|
|
|
@@ -68,10 +72,8 @@ void luaRegister_Joint()
|
|
|
{"getLeftVector", lua_Joint_getLeftVector},
|
|
|
{"getLight", lua_Joint_getLight},
|
|
|
{"getMatrix", lua_Joint_getMatrix},
|
|
|
- {"getModel", lua_Joint_getModel},
|
|
|
{"getNextSibling", lua_Joint_getNextSibling},
|
|
|
{"getParent", lua_Joint_getParent},
|
|
|
- {"getParticleEmitter", lua_Joint_getParticleEmitter},
|
|
|
{"getPreviousSibling", lua_Joint_getPreviousSibling},
|
|
|
{"getProjectionMatrix", lua_Joint_getProjectionMatrix},
|
|
|
{"getRefCount", lua_Joint_getRefCount},
|
|
|
@@ -86,7 +88,6 @@ void luaRegister_Joint()
|
|
|
{"getScene", lua_Joint_getScene},
|
|
|
{"getScriptEvent", lua_Joint_getScriptEvent},
|
|
|
{"getTag", lua_Joint_getTag},
|
|
|
- {"getTerrain", lua_Joint_getTerrain},
|
|
|
{"getTranslation", lua_Joint_getTranslation},
|
|
|
{"getTranslationView", lua_Joint_getTranslationView},
|
|
|
{"getTranslationWorld", lua_Joint_getTranslationWorld},
|
|
|
@@ -127,20 +128,17 @@ void luaRegister_Joint()
|
|
|
{"setAudioSource", lua_Joint_setAudioSource},
|
|
|
{"setCamera", lua_Joint_setCamera},
|
|
|
{"setCollisionObject", lua_Joint_setCollisionObject},
|
|
|
+ {"setDrawable", lua_Joint_setDrawable},
|
|
|
{"setEnabled", lua_Joint_setEnabled},
|
|
|
- {"setForm", lua_Joint_setForm},
|
|
|
{"setId", lua_Joint_setId},
|
|
|
{"setIdentity", lua_Joint_setIdentity},
|
|
|
{"setLight", lua_Joint_setLight},
|
|
|
- {"setModel", lua_Joint_setModel},
|
|
|
- {"setParticleEmitter", lua_Joint_setParticleEmitter},
|
|
|
{"setRotation", lua_Joint_setRotation},
|
|
|
{"setScale", lua_Joint_setScale},
|
|
|
{"setScaleX", lua_Joint_setScaleX},
|
|
|
{"setScaleY", lua_Joint_setScaleY},
|
|
|
{"setScaleZ", lua_Joint_setScaleZ},
|
|
|
{"setTag", lua_Joint_setTag},
|
|
|
- {"setTerrain", lua_Joint_setTerrain},
|
|
|
{"setTranslation", lua_Joint_setTranslation},
|
|
|
{"setTranslationX", lua_Joint_setTranslationX},
|
|
|
{"setTranslationY", lua_Joint_setTranslationY},
|
|
|
@@ -1696,7 +1694,7 @@ int lua_Joint_getDownVector(lua_State* state)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int lua_Joint_getFirstChild(lua_State* state)
|
|
|
+int lua_Joint_getDrawable(lua_State* state)
|
|
|
{
|
|
|
// Get the number of parameters.
|
|
|
int paramCount = lua_gettop(state);
|
|
|
@@ -1709,13 +1707,13 @@ int lua_Joint_getFirstChild(lua_State* state)
|
|
|
if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
Joint* instance = getInstance(state);
|
|
|
- void* returnPtr = ((void*)instance->getFirstChild());
|
|
|
+ void* returnPtr = ((void*)instance->getDrawable());
|
|
|
if (returnPtr)
|
|
|
{
|
|
|
gameplay::ScriptUtil::LuaObject* object = (gameplay::ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(gameplay::ScriptUtil::LuaObject));
|
|
|
object->instance = returnPtr;
|
|
|
object->owns = false;
|
|
|
- luaL_getmetatable(state, "Node");
|
|
|
+ luaL_getmetatable(state, "Drawable");
|
|
|
lua_setmetatable(state, -2);
|
|
|
}
|
|
|
else
|
|
|
@@ -1726,7 +1724,7 @@ int lua_Joint_getFirstChild(lua_State* state)
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
- lua_pushstring(state, "lua_Joint_getFirstChild - Failed to match the given parameters to a valid function signature.");
|
|
|
+ lua_pushstring(state, "lua_Joint_getDrawable - Failed to match the given parameters to a valid function signature.");
|
|
|
lua_error(state);
|
|
|
break;
|
|
|
}
|
|
|
@@ -1740,7 +1738,7 @@ int lua_Joint_getFirstChild(lua_State* state)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int lua_Joint_getForm(lua_State* state)
|
|
|
+int lua_Joint_getFirstChild(lua_State* state)
|
|
|
{
|
|
|
// Get the number of parameters.
|
|
|
int paramCount = lua_gettop(state);
|
|
|
@@ -1753,13 +1751,13 @@ int lua_Joint_getForm(lua_State* state)
|
|
|
if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
{
|
|
|
Joint* instance = getInstance(state);
|
|
|
- void* returnPtr = ((void*)instance->getForm());
|
|
|
+ void* returnPtr = ((void*)instance->getFirstChild());
|
|
|
if (returnPtr)
|
|
|
{
|
|
|
gameplay::ScriptUtil::LuaObject* object = (gameplay::ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(gameplay::ScriptUtil::LuaObject));
|
|
|
object->instance = returnPtr;
|
|
|
object->owns = false;
|
|
|
- luaL_getmetatable(state, "Form");
|
|
|
+ luaL_getmetatable(state, "Node");
|
|
|
lua_setmetatable(state, -2);
|
|
|
}
|
|
|
else
|
|
|
@@ -1770,7 +1768,7 @@ int lua_Joint_getForm(lua_State* state)
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
- lua_pushstring(state, "lua_Joint_getForm - Failed to match the given parameters to a valid function signature.");
|
|
|
+ lua_pushstring(state, "lua_Joint_getFirstChild - Failed to match the given parameters to a valid function signature.");
|
|
|
lua_error(state);
|
|
|
break;
|
|
|
}
|
|
|
@@ -2357,50 +2355,6 @@ int lua_Joint_getMatrix(lua_State* state)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int lua_Joint_getModel(lua_State* state)
|
|
|
-{
|
|
|
- // Get the number of parameters.
|
|
|
- int paramCount = lua_gettop(state);
|
|
|
-
|
|
|
- // Attempt to match the parameters to a valid binding.
|
|
|
- switch (paramCount)
|
|
|
- {
|
|
|
- case 1:
|
|
|
- {
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
- {
|
|
|
- Joint* instance = getInstance(state);
|
|
|
- void* returnPtr = ((void*)instance->getModel());
|
|
|
- if (returnPtr)
|
|
|
- {
|
|
|
- gameplay::ScriptUtil::LuaObject* object = (gameplay::ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(gameplay::ScriptUtil::LuaObject));
|
|
|
- object->instance = returnPtr;
|
|
|
- object->owns = false;
|
|
|
- luaL_getmetatable(state, "Model");
|
|
|
- lua_setmetatable(state, -2);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- lua_pushnil(state);
|
|
|
- }
|
|
|
-
|
|
|
- return 1;
|
|
|
- }
|
|
|
-
|
|
|
- lua_pushstring(state, "lua_Joint_getModel - Failed to match the given parameters to a valid function signature.");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- default:
|
|
|
- {
|
|
|
- lua_pushstring(state, "Invalid number of parameters (expected 1).");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
int lua_Joint_getNextSibling(lua_State* state)
|
|
|
{
|
|
|
// Get the number of parameters.
|
|
|
@@ -2489,50 +2443,6 @@ int lua_Joint_getParent(lua_State* state)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int lua_Joint_getParticleEmitter(lua_State* state)
|
|
|
-{
|
|
|
- // Get the number of parameters.
|
|
|
- int paramCount = lua_gettop(state);
|
|
|
-
|
|
|
- // Attempt to match the parameters to a valid binding.
|
|
|
- switch (paramCount)
|
|
|
- {
|
|
|
- case 1:
|
|
|
- {
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
- {
|
|
|
- Joint* instance = getInstance(state);
|
|
|
- void* returnPtr = ((void*)instance->getParticleEmitter());
|
|
|
- if (returnPtr)
|
|
|
- {
|
|
|
- gameplay::ScriptUtil::LuaObject* object = (gameplay::ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(gameplay::ScriptUtil::LuaObject));
|
|
|
- object->instance = returnPtr;
|
|
|
- object->owns = false;
|
|
|
- luaL_getmetatable(state, "ParticleEmitter");
|
|
|
- lua_setmetatable(state, -2);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- lua_pushnil(state);
|
|
|
- }
|
|
|
-
|
|
|
- return 1;
|
|
|
- }
|
|
|
-
|
|
|
- lua_pushstring(state, "lua_Joint_getParticleEmitter - Failed to match the given parameters to a valid function signature.");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- default:
|
|
|
- {
|
|
|
- lua_pushstring(state, "Invalid number of parameters (expected 1).");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
int lua_Joint_getPreviousSibling(lua_State* state)
|
|
|
{
|
|
|
// Get the number of parameters.
|
|
|
@@ -3232,50 +3142,6 @@ int lua_Joint_getTag(lua_State* state)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int lua_Joint_getTerrain(lua_State* state)
|
|
|
-{
|
|
|
- // Get the number of parameters.
|
|
|
- int paramCount = lua_gettop(state);
|
|
|
-
|
|
|
- // Attempt to match the parameters to a valid binding.
|
|
|
- switch (paramCount)
|
|
|
- {
|
|
|
- case 1:
|
|
|
- {
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA))
|
|
|
- {
|
|
|
- Joint* instance = getInstance(state);
|
|
|
- void* returnPtr = ((void*)instance->getTerrain());
|
|
|
- if (returnPtr)
|
|
|
- {
|
|
|
- gameplay::ScriptUtil::LuaObject* object = (gameplay::ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(gameplay::ScriptUtil::LuaObject));
|
|
|
- object->instance = returnPtr;
|
|
|
- object->owns = false;
|
|
|
- luaL_getmetatable(state, "Terrain");
|
|
|
- lua_setmetatable(state, -2);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- lua_pushnil(state);
|
|
|
- }
|
|
|
-
|
|
|
- return 1;
|
|
|
- }
|
|
|
-
|
|
|
- lua_pushstring(state, "lua_Joint_getTerrain - Failed to match the given parameters to a valid function signature.");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- default:
|
|
|
- {
|
|
|
- lua_pushstring(state, "Invalid number of parameters (expected 1).");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
int lua_Joint_getTranslation(lua_State* state)
|
|
|
{
|
|
|
// Get the number of parameters.
|
|
|
@@ -5467,7 +5333,7 @@ int lua_Joint_setCollisionObject(lua_State* state)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int lua_Joint_setEnabled(lua_State* state)
|
|
|
+int lua_Joint_setDrawable(lua_State* state)
|
|
|
{
|
|
|
// Get the number of parameters.
|
|
|
int paramCount = lua_gettop(state);
|
|
|
@@ -5478,18 +5344,24 @@ int lua_Joint_setEnabled(lua_State* state)
|
|
|
case 2:
|
|
|
{
|
|
|
if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
- lua_type(state, 2) == LUA_TBOOLEAN)
|
|
|
+ (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TTABLE || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
- bool param1 = gameplay::ScriptUtil::luaCheckBool(state, 2);
|
|
|
+ bool param1Valid;
|
|
|
+ gameplay::ScriptUtil::LuaArray<Drawable> param1 = gameplay::ScriptUtil::getObjectPointer<Drawable>(2, "Drawable", false, ¶m1Valid);
|
|
|
+ if (!param1Valid)
|
|
|
+ {
|
|
|
+ lua_pushstring(state, "Failed to convert parameter 1 to type 'Drawable'.");
|
|
|
+ lua_error(state);
|
|
|
+ }
|
|
|
|
|
|
Joint* instance = getInstance(state);
|
|
|
- instance->setEnabled(param1);
|
|
|
+ instance->setDrawable(param1);
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
- lua_pushstring(state, "lua_Joint_setEnabled - Failed to match the given parameters to a valid function signature.");
|
|
|
+ lua_pushstring(state, "lua_Joint_setDrawable - Failed to match the given parameters to a valid function signature.");
|
|
|
lua_error(state);
|
|
|
break;
|
|
|
}
|
|
|
@@ -5503,7 +5375,7 @@ int lua_Joint_setEnabled(lua_State* state)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int lua_Joint_setForm(lua_State* state)
|
|
|
+int lua_Joint_setEnabled(lua_State* state)
|
|
|
{
|
|
|
// Get the number of parameters.
|
|
|
int paramCount = lua_gettop(state);
|
|
|
@@ -5514,24 +5386,18 @@ int lua_Joint_setForm(lua_State* state)
|
|
|
case 2:
|
|
|
{
|
|
|
if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
- (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TTABLE || lua_type(state, 2) == LUA_TNIL))
|
|
|
+ lua_type(state, 2) == LUA_TBOOLEAN)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
- bool param1Valid;
|
|
|
- gameplay::ScriptUtil::LuaArray<Form> param1 = gameplay::ScriptUtil::getObjectPointer<Form>(2, "Form", false, ¶m1Valid);
|
|
|
- if (!param1Valid)
|
|
|
- {
|
|
|
- lua_pushstring(state, "Failed to convert parameter 1 to type 'Form'.");
|
|
|
- lua_error(state);
|
|
|
- }
|
|
|
+ bool param1 = gameplay::ScriptUtil::luaCheckBool(state, 2);
|
|
|
|
|
|
Joint* instance = getInstance(state);
|
|
|
- instance->setForm(param1);
|
|
|
+ instance->setEnabled(param1);
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
- lua_pushstring(state, "lua_Joint_setForm - Failed to match the given parameters to a valid function signature.");
|
|
|
+ lua_pushstring(state, "lua_Joint_setEnabled - Failed to match the given parameters to a valid function signature.");
|
|
|
lua_error(state);
|
|
|
break;
|
|
|
}
|
|
|
@@ -5655,90 +5521,6 @@ int lua_Joint_setLight(lua_State* state)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int lua_Joint_setModel(lua_State* state)
|
|
|
-{
|
|
|
- // Get the number of parameters.
|
|
|
- int paramCount = lua_gettop(state);
|
|
|
-
|
|
|
- // Attempt to match the parameters to a valid binding.
|
|
|
- switch (paramCount)
|
|
|
- {
|
|
|
- case 2:
|
|
|
- {
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
- (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TTABLE || lua_type(state, 2) == LUA_TNIL))
|
|
|
- {
|
|
|
- // Get parameter 1 off the stack.
|
|
|
- bool param1Valid;
|
|
|
- gameplay::ScriptUtil::LuaArray<Model> param1 = gameplay::ScriptUtil::getObjectPointer<Model>(2, "Model", false, ¶m1Valid);
|
|
|
- if (!param1Valid)
|
|
|
- {
|
|
|
- lua_pushstring(state, "Failed to convert parameter 1 to type 'Model'.");
|
|
|
- lua_error(state);
|
|
|
- }
|
|
|
-
|
|
|
- Joint* instance = getInstance(state);
|
|
|
- instance->setModel(param1);
|
|
|
-
|
|
|
- return 0;
|
|
|
- }
|
|
|
-
|
|
|
- lua_pushstring(state, "lua_Joint_setModel - Failed to match the given parameters to a valid function signature.");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- default:
|
|
|
- {
|
|
|
- lua_pushstring(state, "Invalid number of parameters (expected 2).");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
-int lua_Joint_setParticleEmitter(lua_State* state)
|
|
|
-{
|
|
|
- // Get the number of parameters.
|
|
|
- int paramCount = lua_gettop(state);
|
|
|
-
|
|
|
- // Attempt to match the parameters to a valid binding.
|
|
|
- switch (paramCount)
|
|
|
- {
|
|
|
- case 2:
|
|
|
- {
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
- (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TTABLE || lua_type(state, 2) == LUA_TNIL))
|
|
|
- {
|
|
|
- // Get parameter 1 off the stack.
|
|
|
- bool param1Valid;
|
|
|
- gameplay::ScriptUtil::LuaArray<ParticleEmitter> param1 = gameplay::ScriptUtil::getObjectPointer<ParticleEmitter>(2, "ParticleEmitter", false, ¶m1Valid);
|
|
|
- if (!param1Valid)
|
|
|
- {
|
|
|
- lua_pushstring(state, "Failed to convert parameter 1 to type 'ParticleEmitter'.");
|
|
|
- lua_error(state);
|
|
|
- }
|
|
|
-
|
|
|
- Joint* instance = getInstance(state);
|
|
|
- instance->setParticleEmitter(param1);
|
|
|
-
|
|
|
- return 0;
|
|
|
- }
|
|
|
-
|
|
|
- lua_pushstring(state, "lua_Joint_setParticleEmitter - Failed to match the given parameters to a valid function signature.");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- default:
|
|
|
- {
|
|
|
- lua_pushstring(state, "Invalid number of parameters (expected 2).");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
int lua_Joint_setRotation(lua_State* state)
|
|
|
{
|
|
|
// Get the number of parameters.
|
|
|
@@ -6112,48 +5894,6 @@ int lua_Joint_setTag(lua_State* state)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int lua_Joint_setTerrain(lua_State* state)
|
|
|
-{
|
|
|
- // Get the number of parameters.
|
|
|
- int paramCount = lua_gettop(state);
|
|
|
-
|
|
|
- // Attempt to match the parameters to a valid binding.
|
|
|
- switch (paramCount)
|
|
|
- {
|
|
|
- case 2:
|
|
|
- {
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
- (lua_type(state, 2) == LUA_TUSERDATA || lua_type(state, 2) == LUA_TTABLE || lua_type(state, 2) == LUA_TNIL))
|
|
|
- {
|
|
|
- // Get parameter 1 off the stack.
|
|
|
- bool param1Valid;
|
|
|
- gameplay::ScriptUtil::LuaArray<Terrain> param1 = gameplay::ScriptUtil::getObjectPointer<Terrain>(2, "Terrain", false, ¶m1Valid);
|
|
|
- if (!param1Valid)
|
|
|
- {
|
|
|
- lua_pushstring(state, "Failed to convert parameter 1 to type 'Terrain'.");
|
|
|
- lua_error(state);
|
|
|
- }
|
|
|
-
|
|
|
- Joint* instance = getInstance(state);
|
|
|
- instance->setTerrain(param1);
|
|
|
-
|
|
|
- return 0;
|
|
|
- }
|
|
|
-
|
|
|
- lua_pushstring(state, "lua_Joint_setTerrain - Failed to match the given parameters to a valid function signature.");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- default:
|
|
|
- {
|
|
|
- lua_pushstring(state, "Invalid number of parameters (expected 2).");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
int lua_Joint_setTranslation(lua_State* state)
|
|
|
{
|
|
|
// Get the number of parameters.
|