static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { xc.ChatItem __cl_gen_ret = new xc.ChatItem(); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to xc.ChatItem constructor!")); }
static int _m_GetVoiceButton(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.ChatItem __cl_gen_to_be_invoked = (xc.ChatItem)translator.FastGetCSObj(L, 1); try { { UnityEngine.UI.Button __cl_gen_ret = __cl_gen_to_be_invoked.GetVoiceButton( ); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_SetRechargeRedPacketIconTranslucence(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.ChatItem __cl_gen_to_be_invoked = (xc.ChatItem)translator.FastGetCSObj(L, 1); try { { bool b = LuaAPI.lua_toboolean(L, 2); __cl_gen_to_be_invoked.SetRechargeRedPacketIconTranslucence(b); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_ShowRechargeRedPacket(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.ChatItem __cl_gen_to_be_invoked = (xc.ChatItem)translator.FastGetCSObj(L, 1); try { { uint id = LuaAPI.xlua_touint(L, 2); __cl_gen_to_be_invoked.ShowRechargeRedPacket(id); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_ShowWineIcon(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.ChatItem __cl_gen_to_be_invoked = (xc.ChatItem)translator.FastGetCSObj(L, 1); try { { bool isShow = LuaAPI.lua_toboolean(L, 2); __cl_gen_to_be_invoked.ShowWineIcon(isShow); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_OnRecordPlayDone(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.ChatItem __cl_gen_to_be_invoked = (xc.ChatItem)translator.FastGetCSObj(L, 1); try { { CEventBaseArgs args = (CEventBaseArgs)translator.GetObject(L, 2, typeof(CEventBaseArgs)); __cl_gen_to_be_invoked.OnRecordPlayDone(args); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_SetVoiceId(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.ChatItem __cl_gen_to_be_invoked = (xc.ChatItem)translator.FastGetCSObj(L, 1); try { { string voice_id = LuaAPI.lua_tostring(L, 2); __cl_gen_to_be_invoked.SetVoiceId(voice_id); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_SetSenderLevelText(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.ChatItem __cl_gen_to_be_invoked = (xc.ChatItem)translator.FastGetCSObj(L, 1); try { { int level = LuaAPI.xlua_tointeger(L, 2); uint transferLv = LuaAPI.xlua_touint(L, 3); __cl_gen_to_be_invoked.SetSenderLevelText(level, transferLv); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_Init(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.ChatItem __cl_gen_to_be_invoked = (xc.ChatItem)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 9 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && translator.Assignable <UnityEngine.GameObject>(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9)) { uint senderID = LuaAPI.xlua_touint(L, 2); uint teamID = LuaAPI.xlua_touint(L, 3); uint roleId = LuaAPI.xlua_touint(L, 4); int chatItemType = LuaAPI.xlua_tointeger(L, 5); uint transferLv = LuaAPI.xlua_touint(L, 6); UnityEngine.GameObject wnd = (UnityEngine.GameObject)translator.GetObject(L, 7, typeof(UnityEngine.GameObject)); uint photoFrameId = LuaAPI.xlua_touint(L, 8); uint chatBubbleId = LuaAPI.xlua_touint(L, 9); __cl_gen_to_be_invoked.Init(senderID, teamID, roleId, chatItemType, transferLv, wnd, photoFrameId, chatBubbleId); return(0); } if (__gen_param_count == 8 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && translator.Assignable <UnityEngine.GameObject>(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8)) { uint senderID = LuaAPI.xlua_touint(L, 2); uint teamID = LuaAPI.xlua_touint(L, 3); uint roleId = LuaAPI.xlua_touint(L, 4); int chatItemType = LuaAPI.xlua_tointeger(L, 5); uint transferLv = LuaAPI.xlua_touint(L, 6); UnityEngine.GameObject wnd = (UnityEngine.GameObject)translator.GetObject(L, 7, typeof(UnityEngine.GameObject)); uint photoFrameId = LuaAPI.xlua_touint(L, 8); __cl_gen_to_be_invoked.Init(senderID, teamID, roleId, chatItemType, transferLv, wnd, photoFrameId); return(0); } if (__gen_param_count == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && translator.Assignable <UnityEngine.GameObject>(L, 7)) { uint senderID = LuaAPI.xlua_touint(L, 2); uint teamID = LuaAPI.xlua_touint(L, 3); uint roleId = LuaAPI.xlua_touint(L, 4); int chatItemType = LuaAPI.xlua_tointeger(L, 5); uint transferLv = LuaAPI.xlua_touint(L, 6); UnityEngine.GameObject wnd = (UnityEngine.GameObject)translator.GetObject(L, 7, typeof(UnityEngine.GameObject)); __cl_gen_to_be_invoked.Init(senderID, teamID, roleId, chatItemType, transferLv, wnd); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to xc.ChatItem.Init!")); }