From 929319ecb207edadbd47c28a20a2091114e4be27 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期四, 27 六月 2019 16:06:46 +0800
Subject: [PATCH] 3335 更新xlua导出
---
Lua/Gen/DebugUtilityWrap.cs | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/Lua/Gen/DebugUtilityWrap.cs b/Lua/Gen/DebugUtilityWrap.cs
index 8197577..61c1f17 100644
--- a/Lua/Gen/DebugUtilityWrap.cs
+++ b/Lua/Gen/DebugUtilityWrap.cs
@@ -21,7 +21,7 @@
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(DebugUtility);
- Utils.BeginObjectRegister(type, L, translator, 0, 3, 3, 1);
+ Utils.BeginObjectRegister(type, L, translator, 0, 3, 4, 1);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CreateDebugRoot", _m_CreateDebugRoot);
@@ -30,6 +30,7 @@
Utils.RegisterFunc(L, Utils.GETTER_IDX, "debugAccount", _g_get_debugAccount);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "isWhiteListAccount", _g_get_isWhiteListAccount);
+ Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoLogin", _g_get_autoLogin);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "debugBranch", _g_get_debugBranch);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "debugBranch", _s_set_debugBranch);
@@ -292,6 +293,20 @@
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+ static int _g_get_autoLogin(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.autoLogin);
+ } catch(System.Exception gen_e) {
+ return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+ }
+ return 1;
+ }
+
+ [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_debugBranch(RealStatePtr L)
{
try {
--
Gitblit v1.8.0