| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(DebugUtility); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 3, 4, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 3, 3, 1); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CreateDebugRoot", _m_CreateDebugRoot); |
| | |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "debugAccount", _g_get_debugAccount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "debugConfig", _g_get_debugConfig); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "debugBranch", _g_get_debugBranch); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "isWhiteListAccount", _g_get_isWhiteListAccount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "debugBranch", _g_get_debugBranch); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "debugBranch", _s_set_debugBranch); |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_debugConfig(RealStatePtr L) |
| | | static int _g_get_isWhiteListAccount(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DebugUtility gen_to_be_invoked = (DebugUtility)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.debugConfig); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isWhiteListAccount); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_isWhiteListAccount(RealStatePtr L) |
| | | static int _s_set_debugBranch(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DebugUtility gen_to_be_invoked = (DebugUtility)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isWhiteListAccount); |
| | | gen_to_be_invoked.debugBranch = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |