#if USE_UNI_LUA 
 | 
using LuaAPI = UniLua.Lua; 
 | 
using RealStatePtr = UniLua.ILuaState; 
 | 
using LuaCSFunction = UniLua.CSharpFunctionDelegate; 
 | 
#else 
 | 
using LuaAPI = XLua.LuaDLL.Lua; 
 | 
using RealStatePtr = System.IntPtr; 
 | 
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; 
 | 
#endif 
 | 
  
 | 
using XLua; 
 | 
using System.Collections.Generic; 
 | 
  
 | 
  
 | 
namespace XLua.CSObjectWrap 
 | 
{ 
 | 
    using Utils = XLua.Utils; 
 | 
    public class ChatSettingWrap  
 | 
    { 
 | 
        public static void __Register(RealStatePtr L) 
 | 
        { 
 | 
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
            System.Type type = typeof(ChatSetting); 
 | 
            Utils.BeginObjectRegister(type, L, translator, 0, 5, 1, 0); 
 | 
             
 | 
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetLoginBoolSet", _m_GetLoginBoolSet); 
 | 
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBoolSetStr", _m_SetBoolSetStr); 
 | 
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBool", _m_GetBool); 
 | 
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAutoPlayVoice", _m_GetAutoPlayVoice); 
 | 
             
 | 
            Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshChatSetAct", _e_RefreshChatSetAct); 
 | 
             
 | 
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "boolSetDict", _g_get_boolSetDict); 
 | 
             
 | 
             
 | 
             
 | 
            Utils.EndObjectRegister(type, L, translator, null, null, 
 | 
                null, null, null); 
 | 
  
 | 
            Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); 
 | 
             
 | 
             
 | 
             
 | 
             
 | 
             
 | 
             
 | 
            Utils.EndClassRegister(type, L, translator); 
 | 
        } 
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int __CreateInstance(RealStatePtr L) 
 | 
        { 
 | 
             
 | 
            try { 
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
                if(LuaAPI.lua_gettop(L) == 1) 
 | 
                { 
 | 
                     
 | 
                    ChatSetting gen_ret = new ChatSetting(); 
 | 
                    translator.Push(L, 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 ChatSetting constructor!"); 
 | 
             
 | 
        } 
 | 
         
 | 
         
 | 
         
 | 
         
 | 
         
 | 
         
 | 
         
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _m_GetLoginBoolSet(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
             
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
             
 | 
                ChatSetting gen_to_be_invoked = (ChatSetting)translator.FastGetCSObj(L, 1); 
 | 
             
 | 
             
 | 
                 
 | 
                { 
 | 
                     
 | 
                    gen_to_be_invoked.GetLoginBoolSet(  ); 
 | 
                     
 | 
                     
 | 
                     
 | 
                    return 0; 
 | 
                } 
 | 
                 
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
             
 | 
        } 
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _m_SetBoolSetStr(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
             
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
             
 | 
                ChatSetting gen_to_be_invoked = (ChatSetting)translator.FastGetCSObj(L, 1); 
 | 
             
 | 
             
 | 
                 
 | 
                { 
 | 
                    ChatBoolType _type;translator.Get(L, 2, out _type); 
 | 
                    bool _isOpen = LuaAPI.lua_toboolean(L, 3); 
 | 
                     
 | 
                    gen_to_be_invoked.SetBoolSetStr( _type, _isOpen ); 
 | 
                     
 | 
                     
 | 
                     
 | 
                    return 0; 
 | 
                } 
 | 
                 
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
             
 | 
        } 
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _m_GetBool(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
             
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
             
 | 
                ChatSetting gen_to_be_invoked = (ChatSetting)translator.FastGetCSObj(L, 1); 
 | 
             
 | 
             
 | 
                 
 | 
                { 
 | 
                    ChatBoolType _type;translator.Get(L, 2, out _type); 
 | 
                     
 | 
                        bool gen_ret = gen_to_be_invoked.GetBool( _type ); 
 | 
                        LuaAPI.lua_pushboolean(L, gen_ret); 
 | 
                     
 | 
                     
 | 
                     
 | 
                    return 1; 
 | 
                } 
 | 
                 
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
             
 | 
        } 
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _m_GetAutoPlayVoice(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
             
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
             
 | 
                ChatSetting gen_to_be_invoked = (ChatSetting)translator.FastGetCSObj(L, 1); 
 | 
             
 | 
             
 | 
                 
 | 
                { 
 | 
                    ChatInfoType _type;translator.Get(L, 2, out _type); 
 | 
                    int _netState = LuaAPI.xlua_tointeger(L, 3); 
 | 
                     
 | 
                        bool gen_ret = gen_to_be_invoked.GetAutoPlayVoice( _type, _netState ); 
 | 
                        LuaAPI.lua_pushboolean(L, gen_ret); 
 | 
                     
 | 
                     
 | 
                     
 | 
                    return 1; 
 | 
                } 
 | 
                 
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
             
 | 
        } 
 | 
         
 | 
         
 | 
         
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _g_get_boolSetDict(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
             
 | 
                ChatSetting gen_to_be_invoked = (ChatSetting)translator.FastGetCSObj(L, 1); 
 | 
                translator.Push(L, gen_to_be_invoked.boolSetDict); 
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
            return 1; 
 | 
        } 
 | 
         
 | 
         
 | 
         
 | 
         
 | 
         
 | 
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 
 | 
        static int _e_RefreshChatSetAct(RealStatePtr L) 
 | 
        { 
 | 
            try { 
 | 
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); 
 | 
                int gen_param_count = LuaAPI.lua_gettop(L); 
 | 
            ChatSetting gen_to_be_invoked = (ChatSetting)translator.FastGetCSObj(L, 1); 
 | 
                System.Action<ChatBoolType, bool> gen_delegate = translator.GetDelegate<System.Action<ChatBoolType, bool>>(L, 3); 
 | 
                if (gen_delegate == null) { 
 | 
                    return LuaAPI.luaL_error(L, "#3 need System.Action<ChatBoolType, bool>!"); 
 | 
                } 
 | 
                 
 | 
                if (gen_param_count == 3) 
 | 
                { 
 | 
                     
 | 
                    if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { 
 | 
                        gen_to_be_invoked.RefreshChatSetAct += gen_delegate; 
 | 
                        return 0; 
 | 
                    }  
 | 
                     
 | 
                     
 | 
                    if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { 
 | 
                        gen_to_be_invoked.RefreshChatSetAct -= gen_delegate; 
 | 
                        return 0; 
 | 
                    }  
 | 
                     
 | 
                } 
 | 
            } catch(System.Exception gen_e) { 
 | 
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e); 
 | 
            } 
 | 
            LuaAPI.luaL_error(L, "invalid arguments to ChatSetting.RefreshChatSetAct!"); 
 | 
            return 0; 
 | 
        } 
 | 
         
 | 
         
 | 
         
 | 
    } 
 | 
} 
 |