From 1f91e5df63dc91e3b77caeee3c820b8e52a02485 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期六, 25 五月 2019 16:19:45 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
Lua/Gen/ActorShowConfigWrap.cs | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/Lua/Gen/ActorShowConfigWrap.cs b/Lua/Gen/ActorShowConfigWrap.cs
index 7f5a151..640e6d4 100644
--- a/Lua/Gen/ActorShowConfigWrap.cs
+++ b/Lua/Gen/ActorShowConfigWrap.cs
@@ -21,7 +21,7 @@
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(ActorShowConfig);
- Utils.BeginObjectRegister(type, L, translator, 0, 1, 25, 0);
+ Utils.BeginObjectRegister(type, L, translator, 0, 1, 26, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnConfigParseCompleted", _m_OnConfigParseCompleted);
@@ -51,6 +51,7 @@
Utils.RegisterFunc(L, Utils.GETTER_IDX, "soundId", _g_get_soundId);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "soundTime", _g_get_soundTime);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "step", _g_get_step);
+ Utils.RegisterFunc(L, Utils.GETTER_IDX, "showName", _g_get_showName);
@@ -739,6 +740,20 @@
return 1;
}
+ [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+ static int _g_get_showName(RealStatePtr L)
+ {
+ try {
+ ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+
+ ActorShowConfig gen_to_be_invoked = (ActorShowConfig)translator.FastGetCSObj(L, 1);
+ LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.showName);
+ } catch(System.Exception gen_e) {
+ return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+ }
+ return 1;
+ }
+
--
Gitblit v1.8.0