| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.ChatCenter); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 24, 17, 10); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 25, 17, 10); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetChatExtra", _m_SetChatExtra); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "HandleChatBanned", _m_HandleChatBanned); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ChatClientBan", _m_ChatClientBan); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsClientBan", _m_IsClientBan); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateChatValueEvent", _e_UpdateChatValueEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateChatType", _e_UpdateChatType); |
| | |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsClientBan(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.ChatCenter gen_to_be_invoked = (Snxxz.UI.ChatCenter)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | ChatInfoType _chatType;translator.Get(L, 2, out _chatType); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsClientBan( _chatType ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |