|
@@ -38,14 +38,14 @@ void luaRegister_Font()
|
|
|
};
|
|
};
|
|
|
std::vector<std::string> scopePath;
|
|
std::vector<std::string> scopePath;
|
|
|
|
|
|
|
|
- ScriptUtil::registerClass("Font", lua_members, NULL, lua_Font__gc, lua_statics, scopePath);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::registerClass("Font", lua_members, NULL, lua_Font__gc, lua_statics, scopePath);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static Font* getInstance(lua_State* state)
|
|
static Font* getInstance(lua_State* state)
|
|
|
{
|
|
{
|
|
|
void* userdata = luaL_checkudata(state, 1, "Font");
|
|
void* userdata = luaL_checkudata(state, 1, "Font");
|
|
|
luaL_argcheck(state, userdata != NULL, 1, "'Font' expected.");
|
|
luaL_argcheck(state, userdata != NULL, 1, "'Font' expected.");
|
|
|
- return (Font*)((ScriptUtil::LuaObject*)userdata)->instance;
|
|
|
|
|
|
|
+ return (Font*)((gameplay::ScriptUtil::LuaObject*)userdata)->instance;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
int lua_Font__gc(lua_State* state)
|
|
int lua_Font__gc(lua_State* state)
|
|
@@ -62,7 +62,7 @@ int lua_Font__gc(lua_State* state)
|
|
|
{
|
|
{
|
|
|
void* userdata = luaL_checkudata(state, 1, "Font");
|
|
void* userdata = luaL_checkudata(state, 1, "Font");
|
|
|
luaL_argcheck(state, userdata != NULL, 1, "'Font' expected.");
|
|
luaL_argcheck(state, userdata != NULL, 1, "'Font' expected.");
|
|
|
- ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)userdata;
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaObject* object = (gameplay::ScriptUtil::LuaObject*)userdata;
|
|
|
if (object->owns)
|
|
if (object->owns)
|
|
|
{
|
|
{
|
|
|
Font* instance = (Font*)object->instance;
|
|
Font* instance = (Font*)object->instance;
|
|
@@ -134,11 +134,11 @@ int lua_Font_createText(lua_State* state)
|
|
|
(lua_type(state, 4) == LUA_TUSERDATA || lua_type(state, 4) == LUA_TNIL))
|
|
(lua_type(state, 4) == LUA_TUSERDATA || lua_type(state, 4) == LUA_TNIL))
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
@@ -147,7 +147,7 @@ int lua_Font_createText(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 3 off the stack.
|
|
// Get parameter 3 off the stack.
|
|
|
bool param3Valid;
|
|
bool param3Valid;
|
|
|
- ScriptUtil::LuaArray<Vector4> param3 = ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector4> param3 = gameplay::ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
if (!param3Valid)
|
|
if (!param3Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 3 to type 'Vector4'.");
|
|
lua_pushstring(state, "Failed to convert parameter 3 to type 'Vector4'.");
|
|
@@ -158,7 +158,7 @@ int lua_Font_createText(lua_State* state)
|
|
|
void* returnPtr = (void*)instance->createText(param1, *param2, *param3);
|
|
void* returnPtr = (void*)instance->createText(param1, *param2, *param3);
|
|
|
if (returnPtr)
|
|
if (returnPtr)
|
|
|
{
|
|
{
|
|
|
- ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaObject* object = (gameplay::ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(gameplay::ScriptUtil::LuaObject));
|
|
|
object->instance = returnPtr;
|
|
object->instance = returnPtr;
|
|
|
object->owns = false;
|
|
object->owns = false;
|
|
|
luaL_getmetatable(state, "FontText");
|
|
luaL_getmetatable(state, "FontText");
|
|
@@ -185,11 +185,11 @@ int lua_Font_createText(lua_State* state)
|
|
|
lua_type(state, 5) == LUA_TNUMBER)
|
|
lua_type(state, 5) == LUA_TNUMBER)
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
@@ -198,7 +198,7 @@ int lua_Font_createText(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 3 off the stack.
|
|
// Get parameter 3 off the stack.
|
|
|
bool param3Valid;
|
|
bool param3Valid;
|
|
|
- ScriptUtil::LuaArray<Vector4> param3 = ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector4> param3 = gameplay::ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
if (!param3Valid)
|
|
if (!param3Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 3 to type 'Vector4'.");
|
|
lua_pushstring(state, "Failed to convert parameter 3 to type 'Vector4'.");
|
|
@@ -212,7 +212,7 @@ int lua_Font_createText(lua_State* state)
|
|
|
void* returnPtr = (void*)instance->createText(param1, *param2, *param3, param4);
|
|
void* returnPtr = (void*)instance->createText(param1, *param2, *param3, param4);
|
|
|
if (returnPtr)
|
|
if (returnPtr)
|
|
|
{
|
|
{
|
|
|
- ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaObject* object = (gameplay::ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(gameplay::ScriptUtil::LuaObject));
|
|
|
object->instance = returnPtr;
|
|
object->instance = returnPtr;
|
|
|
object->owns = false;
|
|
object->owns = false;
|
|
|
luaL_getmetatable(state, "FontText");
|
|
luaL_getmetatable(state, "FontText");
|
|
@@ -240,11 +240,11 @@ int lua_Font_createText(lua_State* state)
|
|
|
(lua_type(state, 6) == LUA_TSTRING || lua_type(state, 6) == LUA_TNIL))
|
|
(lua_type(state, 6) == LUA_TSTRING || lua_type(state, 6) == LUA_TNIL))
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
@@ -253,7 +253,7 @@ int lua_Font_createText(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 3 off the stack.
|
|
// Get parameter 3 off the stack.
|
|
|
bool param3Valid;
|
|
bool param3Valid;
|
|
|
- ScriptUtil::LuaArray<Vector4> param3 = ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector4> param3 = gameplay::ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
if (!param3Valid)
|
|
if (!param3Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 3 to type 'Vector4'.");
|
|
lua_pushstring(state, "Failed to convert parameter 3 to type 'Vector4'.");
|
|
@@ -270,7 +270,7 @@ int lua_Font_createText(lua_State* state)
|
|
|
void* returnPtr = (void*)instance->createText(param1, *param2, *param3, param4, param5);
|
|
void* returnPtr = (void*)instance->createText(param1, *param2, *param3, param4, param5);
|
|
|
if (returnPtr)
|
|
if (returnPtr)
|
|
|
{
|
|
{
|
|
|
- ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaObject* object = (gameplay::ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(gameplay::ScriptUtil::LuaObject));
|
|
|
object->instance = returnPtr;
|
|
object->instance = returnPtr;
|
|
|
object->owns = false;
|
|
object->owns = false;
|
|
|
luaL_getmetatable(state, "FontText");
|
|
luaL_getmetatable(state, "FontText");
|
|
@@ -299,11 +299,11 @@ int lua_Font_createText(lua_State* state)
|
|
|
lua_type(state, 7) == LUA_TBOOLEAN)
|
|
lua_type(state, 7) == LUA_TBOOLEAN)
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
@@ -312,7 +312,7 @@ int lua_Font_createText(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 3 off the stack.
|
|
// Get parameter 3 off the stack.
|
|
|
bool param3Valid;
|
|
bool param3Valid;
|
|
|
- ScriptUtil::LuaArray<Vector4> param3 = ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector4> param3 = gameplay::ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
if (!param3Valid)
|
|
if (!param3Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 3 to type 'Vector4'.");
|
|
lua_pushstring(state, "Failed to convert parameter 3 to type 'Vector4'.");
|
|
@@ -326,13 +326,13 @@ int lua_Font_createText(lua_State* state)
|
|
|
Font::Justify param5 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 6));
|
|
Font::Justify param5 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 6));
|
|
|
|
|
|
|
|
// Get parameter 6 off the stack.
|
|
// Get parameter 6 off the stack.
|
|
|
- bool param6 = ScriptUtil::luaCheckBool(state, 7);
|
|
|
|
|
|
|
+ bool param6 = gameplay::ScriptUtil::luaCheckBool(state, 7);
|
|
|
|
|
|
|
|
Font* instance = getInstance(state);
|
|
Font* instance = getInstance(state);
|
|
|
void* returnPtr = (void*)instance->createText(param1, *param2, *param3, param4, param5, param6);
|
|
void* returnPtr = (void*)instance->createText(param1, *param2, *param3, param4, param5, param6);
|
|
|
if (returnPtr)
|
|
if (returnPtr)
|
|
|
{
|
|
{
|
|
|
- ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaObject* object = (gameplay::ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(gameplay::ScriptUtil::LuaObject));
|
|
|
object->instance = returnPtr;
|
|
object->instance = returnPtr;
|
|
|
object->owns = false;
|
|
object->owns = false;
|
|
|
luaL_getmetatable(state, "FontText");
|
|
luaL_getmetatable(state, "FontText");
|
|
@@ -362,11 +362,11 @@ int lua_Font_createText(lua_State* state)
|
|
|
lua_type(state, 8) == LUA_TBOOLEAN)
|
|
lua_type(state, 8) == LUA_TBOOLEAN)
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
@@ -375,7 +375,7 @@ int lua_Font_createText(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 3 off the stack.
|
|
// Get parameter 3 off the stack.
|
|
|
bool param3Valid;
|
|
bool param3Valid;
|
|
|
- ScriptUtil::LuaArray<Vector4> param3 = ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector4> param3 = gameplay::ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
if (!param3Valid)
|
|
if (!param3Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 3 to type 'Vector4'.");
|
|
lua_pushstring(state, "Failed to convert parameter 3 to type 'Vector4'.");
|
|
@@ -389,16 +389,16 @@ int lua_Font_createText(lua_State* state)
|
|
|
Font::Justify param5 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 6));
|
|
Font::Justify param5 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 6));
|
|
|
|
|
|
|
|
// Get parameter 6 off the stack.
|
|
// Get parameter 6 off the stack.
|
|
|
- bool param6 = ScriptUtil::luaCheckBool(state, 7);
|
|
|
|
|
|
|
+ bool param6 = gameplay::ScriptUtil::luaCheckBool(state, 7);
|
|
|
|
|
|
|
|
// Get parameter 7 off the stack.
|
|
// Get parameter 7 off the stack.
|
|
|
- bool param7 = ScriptUtil::luaCheckBool(state, 8);
|
|
|
|
|
|
|
+ bool param7 = gameplay::ScriptUtil::luaCheckBool(state, 8);
|
|
|
|
|
|
|
|
Font* instance = getInstance(state);
|
|
Font* instance = getInstance(state);
|
|
|
void* returnPtr = (void*)instance->createText(param1, *param2, *param3, param4, param5, param6, param7);
|
|
void* returnPtr = (void*)instance->createText(param1, *param2, *param3, param4, param5, param6, param7);
|
|
|
if (returnPtr)
|
|
if (returnPtr)
|
|
|
{
|
|
{
|
|
|
- ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaObject* object = (gameplay::ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(gameplay::ScriptUtil::LuaObject));
|
|
|
object->instance = returnPtr;
|
|
object->instance = returnPtr;
|
|
|
object->owns = false;
|
|
object->owns = false;
|
|
|
luaL_getmetatable(state, "FontText");
|
|
luaL_getmetatable(state, "FontText");
|
|
@@ -429,11 +429,11 @@ int lua_Font_createText(lua_State* state)
|
|
|
(lua_type(state, 9) == LUA_TUSERDATA || lua_type(state, 9) == LUA_TTABLE || lua_type(state, 9) == LUA_TNIL))
|
|
(lua_type(state, 9) == LUA_TUSERDATA || lua_type(state, 9) == LUA_TTABLE || lua_type(state, 9) == LUA_TNIL))
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
@@ -442,7 +442,7 @@ int lua_Font_createText(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 3 off the stack.
|
|
// Get parameter 3 off the stack.
|
|
|
bool param3Valid;
|
|
bool param3Valid;
|
|
|
- ScriptUtil::LuaArray<Vector4> param3 = ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector4> param3 = gameplay::ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
if (!param3Valid)
|
|
if (!param3Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 3 to type 'Vector4'.");
|
|
lua_pushstring(state, "Failed to convert parameter 3 to type 'Vector4'.");
|
|
@@ -456,14 +456,14 @@ int lua_Font_createText(lua_State* state)
|
|
|
Font::Justify param5 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 6));
|
|
Font::Justify param5 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 6));
|
|
|
|
|
|
|
|
// Get parameter 6 off the stack.
|
|
// Get parameter 6 off the stack.
|
|
|
- bool param6 = ScriptUtil::luaCheckBool(state, 7);
|
|
|
|
|
|
|
+ bool param6 = gameplay::ScriptUtil::luaCheckBool(state, 7);
|
|
|
|
|
|
|
|
// Get parameter 7 off the stack.
|
|
// Get parameter 7 off the stack.
|
|
|
- bool param7 = ScriptUtil::luaCheckBool(state, 8);
|
|
|
|
|
|
|
+ bool param7 = gameplay::ScriptUtil::luaCheckBool(state, 8);
|
|
|
|
|
|
|
|
// Get parameter 8 off the stack.
|
|
// Get parameter 8 off the stack.
|
|
|
bool param8Valid;
|
|
bool param8Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param8 = ScriptUtil::getObjectPointer<Rectangle>(9, "Rectangle", false, ¶m8Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param8 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(9, "Rectangle", false, ¶m8Valid);
|
|
|
if (!param8Valid)
|
|
if (!param8Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 8 to type 'Rectangle'.");
|
|
lua_pushstring(state, "Failed to convert parameter 8 to type 'Rectangle'.");
|
|
@@ -474,7 +474,7 @@ int lua_Font_createText(lua_State* state)
|
|
|
void* returnPtr = (void*)instance->createText(param1, *param2, *param3, param4, param5, param6, param7, param8);
|
|
void* returnPtr = (void*)instance->createText(param1, *param2, *param3, param4, param5, param6, param7, param8);
|
|
|
if (returnPtr)
|
|
if (returnPtr)
|
|
|
{
|
|
{
|
|
|
- ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaObject* object = (gameplay::ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(gameplay::ScriptUtil::LuaObject));
|
|
|
object->instance = returnPtr;
|
|
object->instance = returnPtr;
|
|
|
object->owns = false;
|
|
object->owns = false;
|
|
|
luaL_getmetatable(state, "FontText");
|
|
luaL_getmetatable(state, "FontText");
|
|
@@ -519,7 +519,7 @@ int lua_Font_drawText(lua_State* state)
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
bool param1Valid;
|
|
bool param1Valid;
|
|
|
- ScriptUtil::LuaArray<Font::Text> param1 = ScriptUtil::getObjectPointer<Font::Text>(2, "FontText", false, ¶m1Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Font::Text> param1 = gameplay::ScriptUtil::getObjectPointer<Font::Text>(2, "FontText", false, ¶m1Valid);
|
|
|
if (!param1Valid)
|
|
if (!param1Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -544,17 +544,17 @@ int lua_Font_drawText(lua_State* state)
|
|
|
(lua_type(state, 4) == LUA_TUSERDATA || lua_type(state, 4) == LUA_TNIL))
|
|
(lua_type(state, 4) == LUA_TUSERDATA || lua_type(state, 4) == LUA_TNIL))
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
// Get parameter 3 off the stack.
|
|
// Get parameter 3 off the stack.
|
|
|
bool param3Valid;
|
|
bool param3Valid;
|
|
|
- ScriptUtil::LuaArray<Vector4> param3 = ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector4> param3 = gameplay::ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
if (!param3Valid)
|
|
if (!param3Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -580,7 +580,7 @@ int lua_Font_drawText(lua_State* state)
|
|
|
(lua_type(state, 5) == LUA_TUSERDATA || lua_type(state, 5) == LUA_TNIL))
|
|
(lua_type(state, 5) == LUA_TUSERDATA || lua_type(state, 5) == LUA_TNIL))
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
int param2 = (int)luaL_checkint(state, 3);
|
|
int param2 = (int)luaL_checkint(state, 3);
|
|
@@ -590,7 +590,7 @@ int lua_Font_drawText(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 4 off the stack.
|
|
// Get parameter 4 off the stack.
|
|
|
bool param4Valid;
|
|
bool param4Valid;
|
|
|
- ScriptUtil::LuaArray<Vector4> param4 = ScriptUtil::getObjectPointer<Vector4>(5, "Vector4", true, ¶m4Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector4> param4 = gameplay::ScriptUtil::getObjectPointer<Vector4>(5, "Vector4", true, ¶m4Valid);
|
|
|
if (!param4Valid)
|
|
if (!param4Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -610,17 +610,17 @@ int lua_Font_drawText(lua_State* state)
|
|
|
lua_type(state, 5) == LUA_TNUMBER)
|
|
lua_type(state, 5) == LUA_TNUMBER)
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
// Get parameter 3 off the stack.
|
|
// Get parameter 3 off the stack.
|
|
|
bool param3Valid;
|
|
bool param3Valid;
|
|
|
- ScriptUtil::LuaArray<Vector4> param3 = ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector4> param3 = gameplay::ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
if (!param3Valid)
|
|
if (!param3Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -650,7 +650,7 @@ int lua_Font_drawText(lua_State* state)
|
|
|
lua_type(state, 6) == LUA_TNUMBER)
|
|
lua_type(state, 6) == LUA_TNUMBER)
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
int param2 = (int)luaL_checkint(state, 3);
|
|
int param2 = (int)luaL_checkint(state, 3);
|
|
@@ -660,7 +660,7 @@ int lua_Font_drawText(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 4 off the stack.
|
|
// Get parameter 4 off the stack.
|
|
|
bool param4Valid;
|
|
bool param4Valid;
|
|
|
- ScriptUtil::LuaArray<Vector4> param4 = ScriptUtil::getObjectPointer<Vector4>(5, "Vector4", true, ¶m4Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector4> param4 = gameplay::ScriptUtil::getObjectPointer<Vector4>(5, "Vector4", true, ¶m4Valid);
|
|
|
if (!param4Valid)
|
|
if (!param4Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -684,17 +684,17 @@ int lua_Font_drawText(lua_State* state)
|
|
|
(lua_type(state, 6) == LUA_TSTRING || lua_type(state, 6) == LUA_TNIL))
|
|
(lua_type(state, 6) == LUA_TSTRING || lua_type(state, 6) == LUA_TNIL))
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
// Get parameter 3 off the stack.
|
|
// Get parameter 3 off the stack.
|
|
|
bool param3Valid;
|
|
bool param3Valid;
|
|
|
- ScriptUtil::LuaArray<Vector4> param3 = ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector4> param3 = gameplay::ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
if (!param3Valid)
|
|
if (!param3Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -728,7 +728,7 @@ int lua_Font_drawText(lua_State* state)
|
|
|
lua_type(state, 7) == LUA_TBOOLEAN)
|
|
lua_type(state, 7) == LUA_TBOOLEAN)
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
int param2 = (int)luaL_checkint(state, 3);
|
|
int param2 = (int)luaL_checkint(state, 3);
|
|
@@ -738,7 +738,7 @@ int lua_Font_drawText(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 4 off the stack.
|
|
// Get parameter 4 off the stack.
|
|
|
bool param4Valid;
|
|
bool param4Valid;
|
|
|
- ScriptUtil::LuaArray<Vector4> param4 = ScriptUtil::getObjectPointer<Vector4>(5, "Vector4", true, ¶m4Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector4> param4 = gameplay::ScriptUtil::getObjectPointer<Vector4>(5, "Vector4", true, ¶m4Valid);
|
|
|
if (!param4Valid)
|
|
if (!param4Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -746,7 +746,7 @@ int lua_Font_drawText(lua_State* state)
|
|
|
unsigned int param5 = (unsigned int)luaL_checkunsigned(state, 6);
|
|
unsigned int param5 = (unsigned int)luaL_checkunsigned(state, 6);
|
|
|
|
|
|
|
|
// Get parameter 6 off the stack.
|
|
// Get parameter 6 off the stack.
|
|
|
- bool param6 = ScriptUtil::luaCheckBool(state, 7);
|
|
|
|
|
|
|
+ bool param6 = gameplay::ScriptUtil::luaCheckBool(state, 7);
|
|
|
|
|
|
|
|
Font* instance = getInstance(state);
|
|
Font* instance = getInstance(state);
|
|
|
instance->drawText(param1, param2, param3, *param4, param5, param6);
|
|
instance->drawText(param1, param2, param3, *param4, param5, param6);
|
|
@@ -766,17 +766,17 @@ int lua_Font_drawText(lua_State* state)
|
|
|
lua_type(state, 7) == LUA_TBOOLEAN)
|
|
lua_type(state, 7) == LUA_TBOOLEAN)
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
// Get parameter 3 off the stack.
|
|
// Get parameter 3 off the stack.
|
|
|
bool param3Valid;
|
|
bool param3Valid;
|
|
|
- ScriptUtil::LuaArray<Vector4> param3 = ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector4> param3 = gameplay::ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
if (!param3Valid)
|
|
if (!param3Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -787,7 +787,7 @@ int lua_Font_drawText(lua_State* state)
|
|
|
Font::Justify param5 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 6));
|
|
Font::Justify param5 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 6));
|
|
|
|
|
|
|
|
// Get parameter 6 off the stack.
|
|
// Get parameter 6 off the stack.
|
|
|
- bool param6 = ScriptUtil::luaCheckBool(state, 7);
|
|
|
|
|
|
|
+ bool param6 = gameplay::ScriptUtil::luaCheckBool(state, 7);
|
|
|
|
|
|
|
|
Font* instance = getInstance(state);
|
|
Font* instance = getInstance(state);
|
|
|
instance->drawText(param1, *param2, *param3, param4, param5, param6);
|
|
instance->drawText(param1, *param2, *param3, param4, param5, param6);
|
|
@@ -814,7 +814,7 @@ int lua_Font_drawText(lua_State* state)
|
|
|
lua_type(state, 8) == LUA_TNUMBER)
|
|
lua_type(state, 8) == LUA_TNUMBER)
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
int param2 = (int)luaL_checkint(state, 3);
|
|
int param2 = (int)luaL_checkint(state, 3);
|
|
@@ -853,17 +853,17 @@ int lua_Font_drawText(lua_State* state)
|
|
|
lua_type(state, 8) == LUA_TBOOLEAN)
|
|
lua_type(state, 8) == LUA_TBOOLEAN)
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
// Get parameter 3 off the stack.
|
|
// Get parameter 3 off the stack.
|
|
|
bool param3Valid;
|
|
bool param3Valid;
|
|
|
- ScriptUtil::LuaArray<Vector4> param3 = ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector4> param3 = gameplay::ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
if (!param3Valid)
|
|
if (!param3Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -874,10 +874,10 @@ int lua_Font_drawText(lua_State* state)
|
|
|
Font::Justify param5 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 6));
|
|
Font::Justify param5 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 6));
|
|
|
|
|
|
|
|
// Get parameter 6 off the stack.
|
|
// Get parameter 6 off the stack.
|
|
|
- bool param6 = ScriptUtil::luaCheckBool(state, 7);
|
|
|
|
|
|
|
+ bool param6 = gameplay::ScriptUtil::luaCheckBool(state, 7);
|
|
|
|
|
|
|
|
// Get parameter 7 off the stack.
|
|
// Get parameter 7 off the stack.
|
|
|
- bool param7 = ScriptUtil::luaCheckBool(state, 8);
|
|
|
|
|
|
|
+ bool param7 = gameplay::ScriptUtil::luaCheckBool(state, 8);
|
|
|
|
|
|
|
|
Font* instance = getInstance(state);
|
|
Font* instance = getInstance(state);
|
|
|
instance->drawText(param1, *param2, *param3, param4, param5, param6, param7);
|
|
instance->drawText(param1, *param2, *param3, param4, param5, param6, param7);
|
|
@@ -905,7 +905,7 @@ int lua_Font_drawText(lua_State* state)
|
|
|
lua_type(state, 9) == LUA_TNUMBER)
|
|
lua_type(state, 9) == LUA_TNUMBER)
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
int param2 = (int)luaL_checkint(state, 3);
|
|
int param2 = (int)luaL_checkint(state, 3);
|
|
@@ -948,17 +948,17 @@ int lua_Font_drawText(lua_State* state)
|
|
|
(lua_type(state, 9) == LUA_TUSERDATA || lua_type(state, 9) == LUA_TTABLE || lua_type(state, 9) == LUA_TNIL))
|
|
(lua_type(state, 9) == LUA_TUSERDATA || lua_type(state, 9) == LUA_TTABLE || lua_type(state, 9) == LUA_TNIL))
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
// Get parameter 3 off the stack.
|
|
// Get parameter 3 off the stack.
|
|
|
bool param3Valid;
|
|
bool param3Valid;
|
|
|
- ScriptUtil::LuaArray<Vector4> param3 = ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector4> param3 = gameplay::ScriptUtil::getObjectPointer<Vector4>(4, "Vector4", true, ¶m3Valid);
|
|
|
if (!param3Valid)
|
|
if (!param3Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -969,14 +969,14 @@ int lua_Font_drawText(lua_State* state)
|
|
|
Font::Justify param5 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 6));
|
|
Font::Justify param5 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 6));
|
|
|
|
|
|
|
|
// Get parameter 6 off the stack.
|
|
// Get parameter 6 off the stack.
|
|
|
- bool param6 = ScriptUtil::luaCheckBool(state, 7);
|
|
|
|
|
|
|
+ bool param6 = gameplay::ScriptUtil::luaCheckBool(state, 7);
|
|
|
|
|
|
|
|
// Get parameter 7 off the stack.
|
|
// Get parameter 7 off the stack.
|
|
|
- bool param7 = ScriptUtil::luaCheckBool(state, 8);
|
|
|
|
|
|
|
+ bool param7 = gameplay::ScriptUtil::luaCheckBool(state, 8);
|
|
|
|
|
|
|
|
// Get parameter 8 off the stack.
|
|
// Get parameter 8 off the stack.
|
|
|
bool param8Valid;
|
|
bool param8Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param8 = ScriptUtil::getObjectPointer<Rectangle>(9, "Rectangle", false, ¶m8Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param8 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(9, "Rectangle", false, ¶m8Valid);
|
|
|
if (!param8Valid)
|
|
if (!param8Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -1007,7 +1007,7 @@ int lua_Font_drawText(lua_State* state)
|
|
|
lua_type(state, 10) == LUA_TBOOLEAN)
|
|
lua_type(state, 10) == LUA_TBOOLEAN)
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
int param2 = (int)luaL_checkint(state, 3);
|
|
int param2 = (int)luaL_checkint(state, 3);
|
|
@@ -1031,7 +1031,7 @@ int lua_Font_drawText(lua_State* state)
|
|
|
unsigned int param8 = (unsigned int)luaL_checkunsigned(state, 9);
|
|
unsigned int param8 = (unsigned int)luaL_checkunsigned(state, 9);
|
|
|
|
|
|
|
|
// Get parameter 9 off the stack.
|
|
// Get parameter 9 off the stack.
|
|
|
- bool param9 = ScriptUtil::luaCheckBool(state, 10);
|
|
|
|
|
|
|
+ bool param9 = gameplay::ScriptUtil::luaCheckBool(state, 10);
|
|
|
|
|
|
|
|
Font* instance = getInstance(state);
|
|
Font* instance = getInstance(state);
|
|
|
instance->drawText(param1, param2, param3, param4, param5, param6, param7, param8, param9);
|
|
instance->drawText(param1, param2, param3, param4, param5, param6, param7, param8, param9);
|
|
@@ -1104,11 +1104,11 @@ int lua_Font_getIndexAtLocation(lua_State* state)
|
|
|
(lua_type(state, 6) == LUA_TUSERDATA || lua_type(state, 6) == LUA_TTABLE || lua_type(state, 6) == LUA_TNIL))
|
|
(lua_type(state, 6) == LUA_TUSERDATA || lua_type(state, 6) == LUA_TTABLE || lua_type(state, 6) == LUA_TNIL))
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
@@ -1120,7 +1120,7 @@ int lua_Font_getIndexAtLocation(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 4 off the stack.
|
|
// Get parameter 4 off the stack.
|
|
|
bool param4Valid;
|
|
bool param4Valid;
|
|
|
- ScriptUtil::LuaArray<Vector2> param4 = ScriptUtil::getObjectPointer<Vector2>(5, "Vector2", true, ¶m4Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector2> param4 = gameplay::ScriptUtil::getObjectPointer<Vector2>(5, "Vector2", true, ¶m4Valid);
|
|
|
if (!param4Valid)
|
|
if (!param4Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 4 to type 'Vector2'.");
|
|
lua_pushstring(state, "Failed to convert parameter 4 to type 'Vector2'.");
|
|
@@ -1129,7 +1129,7 @@ int lua_Font_getIndexAtLocation(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 5 off the stack.
|
|
// Get parameter 5 off the stack.
|
|
|
bool param5Valid;
|
|
bool param5Valid;
|
|
|
- ScriptUtil::LuaArray<Vector2> param5 = ScriptUtil::getObjectPointer<Vector2>(6, "Vector2", false, ¶m5Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector2> param5 = gameplay::ScriptUtil::getObjectPointer<Vector2>(6, "Vector2", false, ¶m5Valid);
|
|
|
if (!param5Valid)
|
|
if (!param5Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 5 to type 'Vector2'.");
|
|
lua_pushstring(state, "Failed to convert parameter 5 to type 'Vector2'.");
|
|
@@ -1160,11 +1160,11 @@ int lua_Font_getIndexAtLocation(lua_State* state)
|
|
|
(lua_type(state, 7) == LUA_TSTRING || lua_type(state, 7) == LUA_TNIL))
|
|
(lua_type(state, 7) == LUA_TSTRING || lua_type(state, 7) == LUA_TNIL))
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
@@ -1176,7 +1176,7 @@ int lua_Font_getIndexAtLocation(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 4 off the stack.
|
|
// Get parameter 4 off the stack.
|
|
|
bool param4Valid;
|
|
bool param4Valid;
|
|
|
- ScriptUtil::LuaArray<Vector2> param4 = ScriptUtil::getObjectPointer<Vector2>(5, "Vector2", true, ¶m4Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector2> param4 = gameplay::ScriptUtil::getObjectPointer<Vector2>(5, "Vector2", true, ¶m4Valid);
|
|
|
if (!param4Valid)
|
|
if (!param4Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 4 to type 'Vector2'.");
|
|
lua_pushstring(state, "Failed to convert parameter 4 to type 'Vector2'.");
|
|
@@ -1185,7 +1185,7 @@ int lua_Font_getIndexAtLocation(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 5 off the stack.
|
|
// Get parameter 5 off the stack.
|
|
|
bool param5Valid;
|
|
bool param5Valid;
|
|
|
- ScriptUtil::LuaArray<Vector2> param5 = ScriptUtil::getObjectPointer<Vector2>(6, "Vector2", false, ¶m5Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector2> param5 = gameplay::ScriptUtil::getObjectPointer<Vector2>(6, "Vector2", false, ¶m5Valid);
|
|
|
if (!param5Valid)
|
|
if (!param5Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 5 to type 'Vector2'.");
|
|
lua_pushstring(state, "Failed to convert parameter 5 to type 'Vector2'.");
|
|
@@ -1220,11 +1220,11 @@ int lua_Font_getIndexAtLocation(lua_State* state)
|
|
|
lua_type(state, 8) == LUA_TBOOLEAN)
|
|
lua_type(state, 8) == LUA_TBOOLEAN)
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
@@ -1236,7 +1236,7 @@ int lua_Font_getIndexAtLocation(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 4 off the stack.
|
|
// Get parameter 4 off the stack.
|
|
|
bool param4Valid;
|
|
bool param4Valid;
|
|
|
- ScriptUtil::LuaArray<Vector2> param4 = ScriptUtil::getObjectPointer<Vector2>(5, "Vector2", true, ¶m4Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector2> param4 = gameplay::ScriptUtil::getObjectPointer<Vector2>(5, "Vector2", true, ¶m4Valid);
|
|
|
if (!param4Valid)
|
|
if (!param4Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 4 to type 'Vector2'.");
|
|
lua_pushstring(state, "Failed to convert parameter 4 to type 'Vector2'.");
|
|
@@ -1245,7 +1245,7 @@ int lua_Font_getIndexAtLocation(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 5 off the stack.
|
|
// Get parameter 5 off the stack.
|
|
|
bool param5Valid;
|
|
bool param5Valid;
|
|
|
- ScriptUtil::LuaArray<Vector2> param5 = ScriptUtil::getObjectPointer<Vector2>(6, "Vector2", false, ¶m5Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector2> param5 = gameplay::ScriptUtil::getObjectPointer<Vector2>(6, "Vector2", false, ¶m5Valid);
|
|
|
if (!param5Valid)
|
|
if (!param5Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 5 to type 'Vector2'.");
|
|
lua_pushstring(state, "Failed to convert parameter 5 to type 'Vector2'.");
|
|
@@ -1256,7 +1256,7 @@ int lua_Font_getIndexAtLocation(lua_State* state)
|
|
|
Font::Justify param6 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 7));
|
|
Font::Justify param6 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 7));
|
|
|
|
|
|
|
|
// Get parameter 7 off the stack.
|
|
// Get parameter 7 off the stack.
|
|
|
- bool param7 = ScriptUtil::luaCheckBool(state, 8);
|
|
|
|
|
|
|
+ bool param7 = gameplay::ScriptUtil::luaCheckBool(state, 8);
|
|
|
|
|
|
|
|
Font* instance = getInstance(state);
|
|
Font* instance = getInstance(state);
|
|
|
int result = instance->getIndexAtLocation(param1, *param2, param3, *param4, param5, param6, param7);
|
|
int result = instance->getIndexAtLocation(param1, *param2, param3, *param4, param5, param6, param7);
|
|
@@ -1284,11 +1284,11 @@ int lua_Font_getIndexAtLocation(lua_State* state)
|
|
|
lua_type(state, 9) == LUA_TBOOLEAN)
|
|
lua_type(state, 9) == LUA_TBOOLEAN)
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
@@ -1300,7 +1300,7 @@ int lua_Font_getIndexAtLocation(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 4 off the stack.
|
|
// Get parameter 4 off the stack.
|
|
|
bool param4Valid;
|
|
bool param4Valid;
|
|
|
- ScriptUtil::LuaArray<Vector2> param4 = ScriptUtil::getObjectPointer<Vector2>(5, "Vector2", true, ¶m4Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector2> param4 = gameplay::ScriptUtil::getObjectPointer<Vector2>(5, "Vector2", true, ¶m4Valid);
|
|
|
if (!param4Valid)
|
|
if (!param4Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 4 to type 'Vector2'.");
|
|
lua_pushstring(state, "Failed to convert parameter 4 to type 'Vector2'.");
|
|
@@ -1309,7 +1309,7 @@ int lua_Font_getIndexAtLocation(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 5 off the stack.
|
|
// Get parameter 5 off the stack.
|
|
|
bool param5Valid;
|
|
bool param5Valid;
|
|
|
- ScriptUtil::LuaArray<Vector2> param5 = ScriptUtil::getObjectPointer<Vector2>(6, "Vector2", false, ¶m5Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector2> param5 = gameplay::ScriptUtil::getObjectPointer<Vector2>(6, "Vector2", false, ¶m5Valid);
|
|
|
if (!param5Valid)
|
|
if (!param5Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 5 to type 'Vector2'.");
|
|
lua_pushstring(state, "Failed to convert parameter 5 to type 'Vector2'.");
|
|
@@ -1320,10 +1320,10 @@ int lua_Font_getIndexAtLocation(lua_State* state)
|
|
|
Font::Justify param6 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 7));
|
|
Font::Justify param6 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 7));
|
|
|
|
|
|
|
|
// Get parameter 7 off the stack.
|
|
// Get parameter 7 off the stack.
|
|
|
- bool param7 = ScriptUtil::luaCheckBool(state, 8);
|
|
|
|
|
|
|
+ bool param7 = gameplay::ScriptUtil::luaCheckBool(state, 8);
|
|
|
|
|
|
|
|
// Get parameter 8 off the stack.
|
|
// Get parameter 8 off the stack.
|
|
|
- bool param8 = ScriptUtil::luaCheckBool(state, 9);
|
|
|
|
|
|
|
+ bool param8 = gameplay::ScriptUtil::luaCheckBool(state, 9);
|
|
|
|
|
|
|
|
Font* instance = getInstance(state);
|
|
Font* instance = getInstance(state);
|
|
|
int result = instance->getIndexAtLocation(param1, *param2, param3, *param4, param5, param6, param7, param8);
|
|
int result = instance->getIndexAtLocation(param1, *param2, param3, *param4, param5, param6, param7, param8);
|
|
@@ -1366,11 +1366,11 @@ int lua_Font_getLocationAtIndex(lua_State* state)
|
|
|
lua_type(state, 6) == LUA_TNUMBER)
|
|
lua_type(state, 6) == LUA_TNUMBER)
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
@@ -1382,7 +1382,7 @@ int lua_Font_getLocationAtIndex(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 4 off the stack.
|
|
// Get parameter 4 off the stack.
|
|
|
bool param4Valid;
|
|
bool param4Valid;
|
|
|
- ScriptUtil::LuaArray<Vector2> param4 = ScriptUtil::getObjectPointer<Vector2>(5, "Vector2", false, ¶m4Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector2> param4 = gameplay::ScriptUtil::getObjectPointer<Vector2>(5, "Vector2", false, ¶m4Valid);
|
|
|
if (!param4Valid)
|
|
if (!param4Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 4 to type 'Vector2'.");
|
|
lua_pushstring(state, "Failed to convert parameter 4 to type 'Vector2'.");
|
|
@@ -1413,11 +1413,11 @@ int lua_Font_getLocationAtIndex(lua_State* state)
|
|
|
(lua_type(state, 7) == LUA_TSTRING || lua_type(state, 7) == LUA_TNIL))
|
|
(lua_type(state, 7) == LUA_TSTRING || lua_type(state, 7) == LUA_TNIL))
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
@@ -1429,7 +1429,7 @@ int lua_Font_getLocationAtIndex(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 4 off the stack.
|
|
// Get parameter 4 off the stack.
|
|
|
bool param4Valid;
|
|
bool param4Valid;
|
|
|
- ScriptUtil::LuaArray<Vector2> param4 = ScriptUtil::getObjectPointer<Vector2>(5, "Vector2", false, ¶m4Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector2> param4 = gameplay::ScriptUtil::getObjectPointer<Vector2>(5, "Vector2", false, ¶m4Valid);
|
|
|
if (!param4Valid)
|
|
if (!param4Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 4 to type 'Vector2'.");
|
|
lua_pushstring(state, "Failed to convert parameter 4 to type 'Vector2'.");
|
|
@@ -1464,11 +1464,11 @@ int lua_Font_getLocationAtIndex(lua_State* state)
|
|
|
lua_type(state, 8) == LUA_TBOOLEAN)
|
|
lua_type(state, 8) == LUA_TBOOLEAN)
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
@@ -1480,7 +1480,7 @@ int lua_Font_getLocationAtIndex(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 4 off the stack.
|
|
// Get parameter 4 off the stack.
|
|
|
bool param4Valid;
|
|
bool param4Valid;
|
|
|
- ScriptUtil::LuaArray<Vector2> param4 = ScriptUtil::getObjectPointer<Vector2>(5, "Vector2", false, ¶m4Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector2> param4 = gameplay::ScriptUtil::getObjectPointer<Vector2>(5, "Vector2", false, ¶m4Valid);
|
|
|
if (!param4Valid)
|
|
if (!param4Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 4 to type 'Vector2'.");
|
|
lua_pushstring(state, "Failed to convert parameter 4 to type 'Vector2'.");
|
|
@@ -1494,7 +1494,7 @@ int lua_Font_getLocationAtIndex(lua_State* state)
|
|
|
Font::Justify param6 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 7));
|
|
Font::Justify param6 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 7));
|
|
|
|
|
|
|
|
// Get parameter 7 off the stack.
|
|
// Get parameter 7 off the stack.
|
|
|
- bool param7 = ScriptUtil::luaCheckBool(state, 8);
|
|
|
|
|
|
|
+ bool param7 = gameplay::ScriptUtil::luaCheckBool(state, 8);
|
|
|
|
|
|
|
|
Font* instance = getInstance(state);
|
|
Font* instance = getInstance(state);
|
|
|
instance->getLocationAtIndex(param1, *param2, param3, param4, param5, param6, param7);
|
|
instance->getLocationAtIndex(param1, *param2, param3, param4, param5, param6, param7);
|
|
@@ -1519,11 +1519,11 @@ int lua_Font_getLocationAtIndex(lua_State* state)
|
|
|
lua_type(state, 9) == LUA_TBOOLEAN)
|
|
lua_type(state, 9) == LUA_TBOOLEAN)
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
lua_pushstring(state, "Failed to convert parameter 2 to type 'Rectangle'.");
|
|
@@ -1535,7 +1535,7 @@ int lua_Font_getLocationAtIndex(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 4 off the stack.
|
|
// Get parameter 4 off the stack.
|
|
|
bool param4Valid;
|
|
bool param4Valid;
|
|
|
- ScriptUtil::LuaArray<Vector2> param4 = ScriptUtil::getObjectPointer<Vector2>(5, "Vector2", false, ¶m4Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Vector2> param4 = gameplay::ScriptUtil::getObjectPointer<Vector2>(5, "Vector2", false, ¶m4Valid);
|
|
|
if (!param4Valid)
|
|
if (!param4Valid)
|
|
|
{
|
|
{
|
|
|
lua_pushstring(state, "Failed to convert parameter 4 to type 'Vector2'.");
|
|
lua_pushstring(state, "Failed to convert parameter 4 to type 'Vector2'.");
|
|
@@ -1549,10 +1549,10 @@ int lua_Font_getLocationAtIndex(lua_State* state)
|
|
|
Font::Justify param6 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 7));
|
|
Font::Justify param6 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 7));
|
|
|
|
|
|
|
|
// Get parameter 7 off the stack.
|
|
// Get parameter 7 off the stack.
|
|
|
- bool param7 = ScriptUtil::luaCheckBool(state, 8);
|
|
|
|
|
|
|
+ bool param7 = gameplay::ScriptUtil::luaCheckBool(state, 8);
|
|
|
|
|
|
|
|
// Get parameter 8 off the stack.
|
|
// Get parameter 8 off the stack.
|
|
|
- bool param8 = ScriptUtil::luaCheckBool(state, 9);
|
|
|
|
|
|
|
+ bool param8 = gameplay::ScriptUtil::luaCheckBool(state, 9);
|
|
|
|
|
|
|
|
Font* instance = getInstance(state);
|
|
Font* instance = getInstance(state);
|
|
|
instance->getLocationAtIndex(param1, *param2, param3, param4, param5, param6, param7, param8);
|
|
instance->getLocationAtIndex(param1, *param2, param3, param4, param5, param6, param7, param8);
|
|
@@ -1660,7 +1660,7 @@ int lua_Font_getSpriteBatch(lua_State* state)
|
|
|
void* returnPtr = (void*)instance->getSpriteBatch();
|
|
void* returnPtr = (void*)instance->getSpriteBatch();
|
|
|
if (returnPtr)
|
|
if (returnPtr)
|
|
|
{
|
|
{
|
|
|
- ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaObject* object = (gameplay::ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(gameplay::ScriptUtil::LuaObject));
|
|
|
object->instance = returnPtr;
|
|
object->instance = returnPtr;
|
|
|
object->owns = false;
|
|
object->owns = false;
|
|
|
luaL_getmetatable(state, "SpriteBatch");
|
|
luaL_getmetatable(state, "SpriteBatch");
|
|
@@ -1707,16 +1707,16 @@ int lua_Font_measureText(lua_State* state)
|
|
|
(lua_type(state, 5) == LUA_TTABLE || lua_type(state, 5) == LUA_TLIGHTUSERDATA))
|
|
(lua_type(state, 5) == LUA_TTABLE || lua_type(state, 5) == LUA_TLIGHTUSERDATA))
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
unsigned int param2 = (unsigned int)luaL_checkunsigned(state, 3);
|
|
unsigned int param2 = (unsigned int)luaL_checkunsigned(state, 3);
|
|
|
|
|
|
|
|
// Get parameter 3 off the stack.
|
|
// Get parameter 3 off the stack.
|
|
|
- ScriptUtil::LuaArray<unsigned int> param3 = ScriptUtil::getUnsignedIntPointer(4);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<unsigned int> param3 = gameplay::ScriptUtil::getUnsignedIntPointer(4);
|
|
|
|
|
|
|
|
// Get parameter 4 off the stack.
|
|
// Get parameter 4 off the stack.
|
|
|
- ScriptUtil::LuaArray<unsigned int> param4 = ScriptUtil::getUnsignedIntPointer(5);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<unsigned int> param4 = gameplay::ScriptUtil::getUnsignedIntPointer(5);
|
|
|
|
|
|
|
|
Font* instance = getInstance(state);
|
|
Font* instance = getInstance(state);
|
|
|
instance->measureText(param1, param2, param3, param4);
|
|
instance->measureText(param1, param2, param3, param4);
|
|
@@ -1734,11 +1734,11 @@ int lua_Font_measureText(lua_State* state)
|
|
|
(lua_type(state, 5) == LUA_TUSERDATA || lua_type(state, 5) == LUA_TTABLE || lua_type(state, 5) == LUA_TNIL))
|
|
(lua_type(state, 5) == LUA_TUSERDATA || lua_type(state, 5) == LUA_TTABLE || lua_type(state, 5) == LUA_TNIL))
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -1747,7 +1747,7 @@ int lua_Font_measureText(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 4 off the stack.
|
|
// Get parameter 4 off the stack.
|
|
|
bool param4Valid;
|
|
bool param4Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param4 = ScriptUtil::getObjectPointer<Rectangle>(5, "Rectangle", false, ¶m4Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param4 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(5, "Rectangle", false, ¶m4Valid);
|
|
|
if (!param4Valid)
|
|
if (!param4Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -1774,11 +1774,11 @@ int lua_Font_measureText(lua_State* state)
|
|
|
(lua_type(state, 6) == LUA_TSTRING || lua_type(state, 6) == LUA_TNIL))
|
|
(lua_type(state, 6) == LUA_TSTRING || lua_type(state, 6) == LUA_TNIL))
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -1787,7 +1787,7 @@ int lua_Font_measureText(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 4 off the stack.
|
|
// Get parameter 4 off the stack.
|
|
|
bool param4Valid;
|
|
bool param4Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param4 = ScriptUtil::getObjectPointer<Rectangle>(5, "Rectangle", false, ¶m4Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param4 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(5, "Rectangle", false, ¶m4Valid);
|
|
|
if (!param4Valid)
|
|
if (!param4Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -1818,11 +1818,11 @@ int lua_Font_measureText(lua_State* state)
|
|
|
lua_type(state, 7) == LUA_TBOOLEAN)
|
|
lua_type(state, 7) == LUA_TBOOLEAN)
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -1831,7 +1831,7 @@ int lua_Font_measureText(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 4 off the stack.
|
|
// Get parameter 4 off the stack.
|
|
|
bool param4Valid;
|
|
bool param4Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param4 = ScriptUtil::getObjectPointer<Rectangle>(5, "Rectangle", false, ¶m4Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param4 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(5, "Rectangle", false, ¶m4Valid);
|
|
|
if (!param4Valid)
|
|
if (!param4Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -1839,7 +1839,7 @@ int lua_Font_measureText(lua_State* state)
|
|
|
Font::Justify param5 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 6));
|
|
Font::Justify param5 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 6));
|
|
|
|
|
|
|
|
// Get parameter 6 off the stack.
|
|
// Get parameter 6 off the stack.
|
|
|
- bool param6 = ScriptUtil::luaCheckBool(state, 7);
|
|
|
|
|
|
|
+ bool param6 = gameplay::ScriptUtil::luaCheckBool(state, 7);
|
|
|
|
|
|
|
|
Font* instance = getInstance(state);
|
|
Font* instance = getInstance(state);
|
|
|
instance->measureText(param1, *param2, param3, param4, param5, param6);
|
|
instance->measureText(param1, *param2, param3, param4, param5, param6);
|
|
@@ -1866,11 +1866,11 @@ int lua_Font_measureText(lua_State* state)
|
|
|
lua_type(state, 8) == LUA_TBOOLEAN)
|
|
lua_type(state, 8) == LUA_TBOOLEAN)
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
bool param2Valid;
|
|
bool param2Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param2 = ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param2 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(3, "Rectangle", true, ¶m2Valid);
|
|
|
if (!param2Valid)
|
|
if (!param2Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -1879,7 +1879,7 @@ int lua_Font_measureText(lua_State* state)
|
|
|
|
|
|
|
|
// Get parameter 4 off the stack.
|
|
// Get parameter 4 off the stack.
|
|
|
bool param4Valid;
|
|
bool param4Valid;
|
|
|
- ScriptUtil::LuaArray<Rectangle> param4 = ScriptUtil::getObjectPointer<Rectangle>(5, "Rectangle", false, ¶m4Valid);
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaArray<Rectangle> param4 = gameplay::ScriptUtil::getObjectPointer<Rectangle>(5, "Rectangle", false, ¶m4Valid);
|
|
|
if (!param4Valid)
|
|
if (!param4Valid)
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
@@ -1887,10 +1887,10 @@ int lua_Font_measureText(lua_State* state)
|
|
|
Font::Justify param5 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 6));
|
|
Font::Justify param5 = (Font::Justify)lua_enumFromString_FontJustify(luaL_checkstring(state, 6));
|
|
|
|
|
|
|
|
// Get parameter 6 off the stack.
|
|
// Get parameter 6 off the stack.
|
|
|
- bool param6 = ScriptUtil::luaCheckBool(state, 7);
|
|
|
|
|
|
|
+ bool param6 = gameplay::ScriptUtil::luaCheckBool(state, 7);
|
|
|
|
|
|
|
|
// Get parameter 7 off the stack.
|
|
// Get parameter 7 off the stack.
|
|
|
- bool param7 = ScriptUtil::luaCheckBool(state, 8);
|
|
|
|
|
|
|
+ bool param7 = gameplay::ScriptUtil::luaCheckBool(state, 8);
|
|
|
|
|
|
|
|
Font* instance = getInstance(state);
|
|
Font* instance = getInstance(state);
|
|
|
instance->measureText(param1, *param2, param3, param4, param5, param6, param7);
|
|
instance->measureText(param1, *param2, param3, param4, param5, param6, param7);
|
|
@@ -1990,12 +1990,12 @@ int lua_Font_static_create(lua_State* state)
|
|
|
if ((lua_type(state, 1) == LUA_TSTRING || lua_type(state, 1) == LUA_TNIL))
|
|
if ((lua_type(state, 1) == LUA_TSTRING || lua_type(state, 1) == LUA_TNIL))
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(1, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(1, false);
|
|
|
|
|
|
|
|
void* returnPtr = (void*)Font::create(param1);
|
|
void* returnPtr = (void*)Font::create(param1);
|
|
|
if (returnPtr)
|
|
if (returnPtr)
|
|
|
{
|
|
{
|
|
|
- ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaObject* object = (gameplay::ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(gameplay::ScriptUtil::LuaObject));
|
|
|
object->instance = returnPtr;
|
|
object->instance = returnPtr;
|
|
|
object->owns = true;
|
|
object->owns = true;
|
|
|
luaL_getmetatable(state, "Font");
|
|
luaL_getmetatable(state, "Font");
|
|
@@ -2019,15 +2019,15 @@ int lua_Font_static_create(lua_State* state)
|
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
|
|
(lua_type(state, 2) == LUA_TSTRING || lua_type(state, 2) == LUA_TNIL))
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(1, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(1, false);
|
|
|
|
|
|
|
|
// Get parameter 2 off the stack.
|
|
// Get parameter 2 off the stack.
|
|
|
- const char* param2 = ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
+ const char* param2 = gameplay::ScriptUtil::getString(2, false);
|
|
|
|
|
|
|
|
void* returnPtr = (void*)Font::create(param1, param2);
|
|
void* returnPtr = (void*)Font::create(param1, param2);
|
|
|
if (returnPtr)
|
|
if (returnPtr)
|
|
|
{
|
|
{
|
|
|
- ScriptUtil::LuaObject* object = (ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(ScriptUtil::LuaObject));
|
|
|
|
|
|
|
+ gameplay::ScriptUtil::LuaObject* object = (gameplay::ScriptUtil::LuaObject*)lua_newuserdata(state, sizeof(gameplay::ScriptUtil::LuaObject));
|
|
|
object->instance = returnPtr;
|
|
object->instance = returnPtr;
|
|
|
object->owns = true;
|
|
object->owns = true;
|
|
|
luaL_getmetatable(state, "Font");
|
|
luaL_getmetatable(state, "Font");
|
|
@@ -2068,7 +2068,7 @@ int lua_Font_static_getJustify(lua_State* state)
|
|
|
if ((lua_type(state, 1) == LUA_TSTRING || lua_type(state, 1) == LUA_TNIL))
|
|
if ((lua_type(state, 1) == LUA_TSTRING || lua_type(state, 1) == LUA_TNIL))
|
|
|
{
|
|
{
|
|
|
// Get parameter 1 off the stack.
|
|
// Get parameter 1 off the stack.
|
|
|
- const char* param1 = ScriptUtil::getString(1, false);
|
|
|
|
|
|
|
+ const char* param1 = gameplay::ScriptUtil::getString(1, false);
|
|
|
|
|
|
|
|
Font::Justify result = Font::getJustify(param1);
|
|
Font::Justify result = Font::getJustify(param1);
|
|
|
|
|
|