static int _m_SetCodeText(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Game.UIText gen_to_be_invoked = (Game.UIText)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int _id = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.SetCodeText(_id); return(0); } if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { int _id = LuaAPI.xlua_tointeger(L, 2); bool _z1 = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.SetCodeText(_id, _z1); return(0); } if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { int _id = LuaAPI.xlua_tointeger(L, 2); int _z1 = LuaAPI.xlua_tointeger(L, 3); gen_to_be_invoked.SetCodeText(_id, _z1); return(0); } if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _text = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.SetCodeText(_text); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to Game.UIText.SetCodeText!")); }