|
|
@@ -6,7 +6,6 @@
|
|
|
#include "Base.h"
|
|
|
#include "FileSystem.h"
|
|
|
#include "Game.h"
|
|
|
-#include "Image.h"
|
|
|
#include "Node.h"
|
|
|
#include "Ref.h"
|
|
|
#include "ScriptController.h"
|
|
|
@@ -26,6 +25,8 @@ void luaRegister_Terrain()
|
|
|
{"addRef", lua_Terrain_addRef},
|
|
|
{"draw", lua_Terrain_draw},
|
|
|
{"getBoundingBox", lua_Terrain_getBoundingBox},
|
|
|
+ {"getHeight", lua_Terrain_getHeight},
|
|
|
+ {"getNode", lua_Terrain_getNode},
|
|
|
{"getPatchCount", lua_Terrain_getPatchCount},
|
|
|
{"getRefCount", lua_Terrain_getRefCount},
|
|
|
{"getTriangleCount", lua_Terrain_getTriangleCount},
|
|
|
@@ -34,7 +35,6 @@ void luaRegister_Terrain()
|
|
|
{"isFlagSet", lua_Terrain_isFlagSet},
|
|
|
{"release", lua_Terrain_release},
|
|
|
{"setFlag", lua_Terrain_setFlag},
|
|
|
- {"setLayer", lua_Terrain_setLayer},
|
|
|
{"transformChanged", lua_Terrain_transformChanged},
|
|
|
{NULL, NULL}
|
|
|
};
|
|
|
@@ -219,6 +219,93 @@ int lua_Terrain_getBoundingBox(lua_State* state)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+int lua_Terrain_getHeight(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 3:
|
|
|
+ {
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
+ lua_type(state, 2) == LUA_TNUMBER &&
|
|
|
+ lua_type(state, 3) == LUA_TNUMBER)
|
|
|
+ {
|
|
|
+ // Get parameter 1 off the stack.
|
|
|
+ float param1 = (float)luaL_checknumber(state, 2);
|
|
|
+
|
|
|
+ // Get parameter 2 off the stack.
|
|
|
+ float param2 = (float)luaL_checknumber(state, 3);
|
|
|
+
|
|
|
+ Terrain* instance = getInstance(state);
|
|
|
+ float result = instance->getHeight(param1, param2);
|
|
|
+
|
|
|
+ // Push the return value onto the stack.
|
|
|
+ lua_pushnumber(state, result);
|
|
|
+
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ lua_pushstring(state, "lua_Terrain_getHeight - Failed to match the given parameters to a valid function signature.");
|
|
|
+ lua_error(state);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ default:
|
|
|
+ {
|
|
|
+ lua_pushstring(state, "Invalid number of parameters (expected 3).");
|
|
|
+ lua_error(state);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
+int lua_Terrain_getNode(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))
|
|
|
+ {
|
|
|
+ Terrain* instance = getInstance(state);
|
|
|
+ void* returnPtr = (void*)instance->getNode();
|
|
|
+ if (returnPtr)
|
|
|
+ {
|
|
|
+ ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
|
|
|
+ object->instance = returnPtr;
|
|
|
+ object->owns = false;
|
|
|
+ luaL_getmetatable(state, "Node");
|
|
|
+ lua_setmetatable(state, -2);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ lua_pushnil(state);
|
|
|
+ }
|
|
|
+
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ lua_pushstring(state, "lua_Terrain_getNode - 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_Terrain_getPatchCount(lua_State* state)
|
|
|
{
|
|
|
// Get the number of parameters.
|
|
|
@@ -505,7 +592,7 @@ int lua_Terrain_setFlag(lua_State* state)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int lua_Terrain_setLayer(lua_State* state)
|
|
|
+int lua_Terrain_static_create(lua_State* state)
|
|
|
{
|
|
|
// Get the number of parameters.
|
|
|
int paramCount = lua_gettop(state);
|
|
|
@@ -513,272 +600,42 @@ int lua_Terrain_setLayer(lua_State* state)
|
|
|
// Attempt to match the parameters to a valid binding.
|
|
|
switch (paramCount)
|
|
|
{
|
|
|
- case 3:
|
|
|
- {
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
- lua_type(state, 2) == LUA_TNUMBER &&
|
|
|
- (lua_type(state, 3) == LUA_TSTRING || lua_type(state, 3) == LUA_TNIL))
|
|
|
- {
|
|
|
- // Get parameter 1 off the stack.
|
|
|
- int param1 = (int)luaL_checkint(state, 2);
|
|
|
-
|
|
|
- // Get parameter 2 off the stack.
|
|
|
- const char* param2 = ScriptUtil::getString(3, false);
|
|
|
-
|
|
|
- Terrain* instance = getInstance(state);
|
|
|
- bool result = instance->setLayer(param1, param2);
|
|
|
-
|
|
|
- // Push the return value onto the stack.
|
|
|
- lua_pushboolean(state, result);
|
|
|
-
|
|
|
- return 1;
|
|
|
- }
|
|
|
-
|
|
|
- lua_pushstring(state, "lua_Terrain_setLayer - Failed to match the given parameters to a valid function signature.");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- case 4:
|
|
|
- {
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
- lua_type(state, 2) == LUA_TNUMBER &&
|
|
|
- (lua_type(state, 3) == LUA_TSTRING || lua_type(state, 3) == LUA_TNIL) &&
|
|
|
- (lua_type(state, 4) == LUA_TUSERDATA || lua_type(state, 4) == LUA_TNIL))
|
|
|
- {
|
|
|
- // Get parameter 1 off the stack.
|
|
|
- int param1 = (int)luaL_checkint(state, 2);
|
|
|
-
|
|
|
- // Get parameter 2 off the stack.
|
|
|
- const char* param2 = ScriptUtil::getString(3, false);
|
|
|
-
|
|
|
- // Get parameter 3 off the stack.
|
|
|
- bool param3Valid;
|
|
|
- ScriptUtil::LuaArray<Vector2> param3 = ScriptUtil::getObjectPointer<Vector2>(4, "Vector2", true, ¶m3Valid);
|
|
|
- if (!param3Valid)
|
|
|
- {
|
|
|
- lua_pushstring(state, "Failed to convert parameter 3 to type 'Vector2'.");
|
|
|
- lua_error(state);
|
|
|
- }
|
|
|
-
|
|
|
- Terrain* instance = getInstance(state);
|
|
|
- bool result = instance->setLayer(param1, param2, *param3);
|
|
|
-
|
|
|
- // Push the return value onto the stack.
|
|
|
- lua_pushboolean(state, result);
|
|
|
-
|
|
|
- return 1;
|
|
|
- }
|
|
|
-
|
|
|
- lua_pushstring(state, "lua_Terrain_setLayer - Failed to match the given parameters to a valid function signature.");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- case 5:
|
|
|
- {
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
- lua_type(state, 2) == LUA_TNUMBER &&
|
|
|
- (lua_type(state, 3) == LUA_TSTRING || lua_type(state, 3) == LUA_TNIL) &&
|
|
|
- (lua_type(state, 4) == LUA_TUSERDATA || lua_type(state, 4) == LUA_TNIL) &&
|
|
|
- (lua_type(state, 5) == LUA_TSTRING || lua_type(state, 5) == LUA_TNIL))
|
|
|
- {
|
|
|
- // Get parameter 1 off the stack.
|
|
|
- int param1 = (int)luaL_checkint(state, 2);
|
|
|
-
|
|
|
- // Get parameter 2 off the stack.
|
|
|
- const char* param2 = ScriptUtil::getString(3, false);
|
|
|
-
|
|
|
- // Get parameter 3 off the stack.
|
|
|
- bool param3Valid;
|
|
|
- ScriptUtil::LuaArray<Vector2> param3 = ScriptUtil::getObjectPointer<Vector2>(4, "Vector2", true, ¶m3Valid);
|
|
|
- if (!param3Valid)
|
|
|
- {
|
|
|
- lua_pushstring(state, "Failed to convert parameter 3 to type 'Vector2'.");
|
|
|
- lua_error(state);
|
|
|
- }
|
|
|
-
|
|
|
- // Get parameter 4 off the stack.
|
|
|
- const char* param4 = ScriptUtil::getString(5, false);
|
|
|
-
|
|
|
- Terrain* instance = getInstance(state);
|
|
|
- bool result = instance->setLayer(param1, param2, *param3, param4);
|
|
|
-
|
|
|
- // Push the return value onto the stack.
|
|
|
- lua_pushboolean(state, result);
|
|
|
-
|
|
|
- return 1;
|
|
|
- }
|
|
|
-
|
|
|
- lua_pushstring(state, "lua_Terrain_setLayer - Failed to match the given parameters to a valid function signature.");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- case 6:
|
|
|
- {
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
- lua_type(state, 2) == LUA_TNUMBER &&
|
|
|
- (lua_type(state, 3) == LUA_TSTRING || lua_type(state, 3) == LUA_TNIL) &&
|
|
|
- (lua_type(state, 4) == LUA_TUSERDATA || lua_type(state, 4) == LUA_TNIL) &&
|
|
|
- (lua_type(state, 5) == LUA_TSTRING || lua_type(state, 5) == LUA_TNIL) &&
|
|
|
- lua_type(state, 6) == LUA_TNUMBER)
|
|
|
- {
|
|
|
- // Get parameter 1 off the stack.
|
|
|
- int param1 = (int)luaL_checkint(state, 2);
|
|
|
-
|
|
|
- // Get parameter 2 off the stack.
|
|
|
- const char* param2 = ScriptUtil::getString(3, false);
|
|
|
-
|
|
|
- // Get parameter 3 off the stack.
|
|
|
- bool param3Valid;
|
|
|
- ScriptUtil::LuaArray<Vector2> param3 = ScriptUtil::getObjectPointer<Vector2>(4, "Vector2", true, ¶m3Valid);
|
|
|
- if (!param3Valid)
|
|
|
- {
|
|
|
- lua_pushstring(state, "Failed to convert parameter 3 to type 'Vector2'.");
|
|
|
- lua_error(state);
|
|
|
- }
|
|
|
-
|
|
|
- // Get parameter 4 off the stack.
|
|
|
- const char* param4 = ScriptUtil::getString(5, false);
|
|
|
-
|
|
|
- // Get parameter 5 off the stack.
|
|
|
- int param5 = (int)luaL_checkint(state, 6);
|
|
|
-
|
|
|
- Terrain* instance = getInstance(state);
|
|
|
- bool result = instance->setLayer(param1, param2, *param3, param4, param5);
|
|
|
-
|
|
|
- // Push the return value onto the stack.
|
|
|
- lua_pushboolean(state, result);
|
|
|
-
|
|
|
- return 1;
|
|
|
- }
|
|
|
-
|
|
|
- lua_pushstring(state, "lua_Terrain_setLayer - Failed to match the given parameters to a valid function signature.");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- case 7:
|
|
|
+ case 1:
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
- lua_type(state, 2) == LUA_TNUMBER &&
|
|
|
- (lua_type(state, 3) == LUA_TSTRING || lua_type(state, 3) == LUA_TNIL) &&
|
|
|
- (lua_type(state, 4) == LUA_TUSERDATA || lua_type(state, 4) == LUA_TNIL) &&
|
|
|
- (lua_type(state, 5) == LUA_TSTRING || lua_type(state, 5) == LUA_TNIL) &&
|
|
|
- lua_type(state, 6) == LUA_TNUMBER &&
|
|
|
- lua_type(state, 7) == LUA_TNUMBER)
|
|
|
+ do
|
|
|
{
|
|
|
- // Get parameter 1 off the stack.
|
|
|
- int param1 = (int)luaL_checkint(state, 2);
|
|
|
-
|
|
|
- // Get parameter 2 off the stack.
|
|
|
- const char* param2 = ScriptUtil::getString(3, false);
|
|
|
-
|
|
|
- // Get parameter 3 off the stack.
|
|
|
- bool param3Valid;
|
|
|
- ScriptUtil::LuaArray<Vector2> param3 = ScriptUtil::getObjectPointer<Vector2>(4, "Vector2", true, ¶m3Valid);
|
|
|
- if (!param3Valid)
|
|
|
+ if ((lua_type(state, 1) == LUA_TSTRING || lua_type(state, 1) == LUA_TNIL))
|
|
|
{
|
|
|
- lua_pushstring(state, "Failed to convert parameter 3 to type 'Vector2'.");
|
|
|
- lua_error(state);
|
|
|
- }
|
|
|
-
|
|
|
- // Get parameter 4 off the stack.
|
|
|
- const char* param4 = ScriptUtil::getString(5, false);
|
|
|
-
|
|
|
- // Get parameter 5 off the stack.
|
|
|
- int param5 = (int)luaL_checkint(state, 6);
|
|
|
-
|
|
|
- // Get parameter 6 off the stack.
|
|
|
- int param6 = (int)luaL_checkint(state, 7);
|
|
|
-
|
|
|
- Terrain* instance = getInstance(state);
|
|
|
- bool result = instance->setLayer(param1, param2, *param3, param4, param5, param6);
|
|
|
-
|
|
|
- // Push the return value onto the stack.
|
|
|
- lua_pushboolean(state, result);
|
|
|
-
|
|
|
- return 1;
|
|
|
- }
|
|
|
-
|
|
|
- lua_pushstring(state, "lua_Terrain_setLayer - Failed to match the given parameters to a valid function signature.");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- case 8:
|
|
|
- {
|
|
|
- if ((lua_type(state, 1) == LUA_TUSERDATA) &&
|
|
|
- lua_type(state, 2) == LUA_TNUMBER &&
|
|
|
- (lua_type(state, 3) == LUA_TSTRING || lua_type(state, 3) == LUA_TNIL) &&
|
|
|
- (lua_type(state, 4) == LUA_TUSERDATA || lua_type(state, 4) == LUA_TNIL) &&
|
|
|
- (lua_type(state, 5) == LUA_TSTRING || lua_type(state, 5) == LUA_TNIL) &&
|
|
|
- lua_type(state, 6) == LUA_TNUMBER &&
|
|
|
- lua_type(state, 7) == LUA_TNUMBER &&
|
|
|
- lua_type(state, 8) == LUA_TNUMBER)
|
|
|
- {
|
|
|
- // Get parameter 1 off the stack.
|
|
|
- int param1 = (int)luaL_checkint(state, 2);
|
|
|
+ // Get parameter 1 off the stack.
|
|
|
+ const char* param1 = ScriptUtil::getString(1, false);
|
|
|
|
|
|
- // Get parameter 2 off the stack.
|
|
|
- const char* param2 = ScriptUtil::getString(3, false);
|
|
|
+ void* returnPtr = (void*)Terrain::create(param1);
|
|
|
+ if (returnPtr)
|
|
|
+ {
|
|
|
+ ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
|
|
|
+ object->instance = returnPtr;
|
|
|
+ object->owns = false;
|
|
|
+ luaL_getmetatable(state, "Terrain");
|
|
|
+ lua_setmetatable(state, -2);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ lua_pushnil(state);
|
|
|
+ }
|
|
|
|
|
|
- // Get parameter 3 off the stack.
|
|
|
- bool param3Valid;
|
|
|
- ScriptUtil::LuaArray<Vector2> param3 = ScriptUtil::getObjectPointer<Vector2>(4, "Vector2", true, ¶m3Valid);
|
|
|
- if (!param3Valid)
|
|
|
- {
|
|
|
- lua_pushstring(state, "Failed to convert parameter 3 to type 'Vector2'.");
|
|
|
- lua_error(state);
|
|
|
+ return 1;
|
|
|
}
|
|
|
+ } while (0);
|
|
|
|
|
|
- // Get parameter 4 off the stack.
|
|
|
- const char* param4 = ScriptUtil::getString(5, false);
|
|
|
-
|
|
|
- // Get parameter 5 off the stack.
|
|
|
- int param5 = (int)luaL_checkint(state, 6);
|
|
|
-
|
|
|
- // Get parameter 6 off the stack.
|
|
|
- int param6 = (int)luaL_checkint(state, 7);
|
|
|
-
|
|
|
- // Get parameter 7 off the stack.
|
|
|
- int param7 = (int)luaL_checkint(state, 8);
|
|
|
-
|
|
|
- Terrain* instance = getInstance(state);
|
|
|
- bool result = instance->setLayer(param1, param2, *param3, param4, param5, param6, param7);
|
|
|
-
|
|
|
- // Push the return value onto the stack.
|
|
|
- lua_pushboolean(state, result);
|
|
|
-
|
|
|
- return 1;
|
|
|
- }
|
|
|
-
|
|
|
- lua_pushstring(state, "lua_Terrain_setLayer - Failed to match the given parameters to a valid function signature.");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- default:
|
|
|
- {
|
|
|
- lua_pushstring(state, "Invalid number of parameters (expected 3, 4, 5, 6, 7 or 8).");
|
|
|
- lua_error(state);
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
-int lua_Terrain_static_create(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:
|
|
|
- {
|
|
|
do
|
|
|
{
|
|
|
- if ((lua_type(state, 1) == LUA_TSTRING || lua_type(state, 1) == LUA_TNIL))
|
|
|
+ if ((lua_type(state, 1) == LUA_TUSERDATA || lua_type(state, 1) == LUA_TTABLE || lua_type(state, 1) == LUA_TNIL))
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(1, false);
|
|
|
+ bool param1Valid;
|
|
|
+ ScriptUtil::LuaArray<Properties> param1 = ScriptUtil::getObjectPointer<Properties>(1, "Properties", false, ¶m1Valid);
|
|
|
+ if (!param1Valid)
|
|
|
+ break;
|
|
|
|
|
|
void* returnPtr = (void*)Terrain::create(param1);
|
|
|
if (returnPtr)
|
|
|
@@ -804,7 +661,7 @@ int lua_Terrain_static_create(lua_State* state)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
bool param1Valid;
|
|
|
- ScriptUtil::LuaArray<Terrain::HeightField> param1 = ScriptUtil::getObjectPointer<Terrain::HeightField>(1, "TerrainHeightField", false, ¶m1Valid);
|
|
|
+ ScriptUtil::LuaArray<HeightField> param1 = ScriptUtil::getObjectPointer<HeightField>(1, "HeightField", false, ¶m1Valid);
|
|
|
if (!param1Valid)
|
|
|
break;
|
|
|
|
|
|
@@ -839,7 +696,7 @@ int lua_Terrain_static_create(lua_State* state)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
bool param1Valid;
|
|
|
- ScriptUtil::LuaArray<Terrain::HeightField> param1 = ScriptUtil::getObjectPointer<Terrain::HeightField>(1, "TerrainHeightField", false, ¶m1Valid);
|
|
|
+ ScriptUtil::LuaArray<HeightField> param1 = ScriptUtil::getObjectPointer<HeightField>(1, "HeightField", false, ¶m1Valid);
|
|
|
if (!param1Valid)
|
|
|
break;
|
|
|
|
|
|
@@ -881,7 +738,7 @@ int lua_Terrain_static_create(lua_State* state)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
bool param1Valid;
|
|
|
- ScriptUtil::LuaArray<Terrain::HeightField> param1 = ScriptUtil::getObjectPointer<Terrain::HeightField>(1, "TerrainHeightField", false, ¶m1Valid);
|
|
|
+ ScriptUtil::LuaArray<HeightField> param1 = ScriptUtil::getObjectPointer<HeightField>(1, "HeightField", false, ¶m1Valid);
|
|
|
if (!param1Valid)
|
|
|
break;
|
|
|
|
|
|
@@ -927,7 +784,7 @@ int lua_Terrain_static_create(lua_State* state)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
bool param1Valid;
|
|
|
- ScriptUtil::LuaArray<Terrain::HeightField> param1 = ScriptUtil::getObjectPointer<Terrain::HeightField>(1, "TerrainHeightField", false, ¶m1Valid);
|
|
|
+ ScriptUtil::LuaArray<HeightField> param1 = ScriptUtil::getObjectPointer<HeightField>(1, "HeightField", false, ¶m1Valid);
|
|
|
if (!param1Valid)
|
|
|
break;
|
|
|
|
|
|
@@ -977,7 +834,7 @@ int lua_Terrain_static_create(lua_State* state)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
bool param1Valid;
|
|
|
- ScriptUtil::LuaArray<Terrain::HeightField> param1 = ScriptUtil::getObjectPointer<Terrain::HeightField>(1, "TerrainHeightField", false, ¶m1Valid);
|
|
|
+ ScriptUtil::LuaArray<HeightField> param1 = ScriptUtil::getObjectPointer<HeightField>(1, "HeightField", false, ¶m1Valid);
|
|
|
if (!param1Valid)
|
|
|
break;
|
|
|
|
|
|
@@ -1031,7 +888,7 @@ int lua_Terrain_static_create(lua_State* state)
|
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
|
bool param1Valid;
|
|
|
- ScriptUtil::LuaArray<Terrain::HeightField> param1 = ScriptUtil::getObjectPointer<Terrain::HeightField>(1, "TerrainHeightField", false, ¶m1Valid);
|
|
|
+ ScriptUtil::LuaArray<HeightField> param1 = ScriptUtil::getObjectPointer<HeightField>(1, "HeightField", false, ¶m1Valid);
|
|
|
if (!param1Valid)
|
|
|
break;
|
|
|
|