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/GuideConfigWrap.cs | 47 ++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 46 insertions(+), 1 deletions(-)
diff --git a/Lua/Gen/GuideConfigWrap.cs b/Lua/Gen/GuideConfigWrap.cs
index b0799b1..c4683af 100644
--- a/Lua/Gen/GuideConfigWrap.cs
+++ b/Lua/Gen/GuideConfigWrap.cs
@@ -21,7 +21,7 @@
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(GuideConfig);
- Utils.BeginObjectRegister(type, L, translator, 0, 0, 9, 0);
+ Utils.BeginObjectRegister(type, L, translator, 0, 0, 12, 0);
@@ -29,11 +29,14 @@
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Type", _g_get_Type);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "TriggerType", _g_get_TriggerType);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Condition", _g_get_Condition);
+ Utils.RegisterFunc(L, Utils.GETTER_IDX, "SupplementCondition", _g_get_SupplementCondition);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "PreGuideId", _g_get_PreGuideId);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Steps", _g_get_Steps);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "CanSkip", _g_get_CanSkip);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "RemoveWhenOtherGuide", _g_get_RemoveWhenOtherGuide);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "CannotCompleteByClick", _g_get_CannotCompleteByClick);
+ Utils.RegisterFunc(L, Utils.GETTER_IDX, "UnfoldAreas", _g_get_UnfoldAreas);
+ Utils.RegisterFunc(L, Utils.GETTER_IDX, "AutoCompleteTime", _g_get_AutoCompleteTime);
@@ -338,6 +341,20 @@
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+ static int _g_get_SupplementCondition(RealStatePtr L)
+ {
+ try {
+ ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+
+ GuideConfig gen_to_be_invoked = (GuideConfig)translator.FastGetCSObj(L, 1);
+ LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.SupplementCondition);
+ } catch(System.Exception gen_e) {
+ return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+ }
+ return 1;
+ }
+
+ [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_PreGuideId(RealStatePtr L)
{
try {
@@ -407,6 +424,34 @@
return 1;
}
+ [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+ static int _g_get_UnfoldAreas(RealStatePtr L)
+ {
+ try {
+ ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+
+ GuideConfig gen_to_be_invoked = (GuideConfig)translator.FastGetCSObj(L, 1);
+ translator.Push(L, gen_to_be_invoked.UnfoldAreas);
+ } catch(System.Exception gen_e) {
+ return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+ }
+ return 1;
+ }
+
+ [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+ static int _g_get_AutoCompleteTime(RealStatePtr L)
+ {
+ try {
+ ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+
+ GuideConfig gen_to_be_invoked = (GuideConfig)translator.FastGetCSObj(L, 1);
+ LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.AutoCompleteTime);
+ } catch(System.Exception gen_e) {
+ return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+ }
+ return 1;
+ }
+
--
Gitblit v1.8.0