From 4c10209aa3c129171213d76821c7b8d960a04c5e Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期六, 25 五月 2019 15:45:41 +0800
Subject: [PATCH] 3335 扩展lua接口
---
Lua/Gen/MapEventPointConfigWrap.cs | 25 ++++++++++++++++++++++---
1 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/Lua/Gen/MapEventPointConfigWrap.cs b/Lua/Gen/MapEventPointConfigWrap.cs
index 8f1196b..661181b 100644
--- a/Lua/Gen/MapEventPointConfigWrap.cs
+++ b/Lua/Gen/MapEventPointConfigWrap.cs
@@ -21,12 +21,13 @@
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(MapEventPointConfig);
- Utils.BeginObjectRegister(type, L, translator, 0, 0, 13, 0);
+ Utils.BeginObjectRegister(type, L, translator, 0, 0, 14, 0);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Key", _g_get_Key);
- Utils.RegisterFunc(L, Utils.GETTER_IDX, "MapID", _g_get_MapID);
+ Utils.RegisterFunc(L, Utils.GETTER_IDX, "DataMapID", _g_get_DataMapID);
+ Utils.RegisterFunc(L, Utils.GETTER_IDX, "LineId", _g_get_LineId);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "NPCID", _g_get_NPCID);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsShowInfo", _g_get_IsShowInfo);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ShowInMipMap", _g_get_ShowInMipMap);
@@ -300,9 +301,27 @@
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int _g_get_MapID(RealStatePtr L)
+ static int _g_get_DataMapID(RealStatePtr L)
{
try {
+ ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+
+ MapEventPointConfig gen_to_be_invoked = (MapEventPointConfig)translator.FastGetCSObj(L, 1);
+ LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.DataMapID);
+ } catch(System.Exception gen_e) {
+ return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+ }
+ return 1;
+ }
+
+ [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+ static int _g_get_LineId(RealStatePtr L)
+ {
+ try {
+ ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+
+ MapEventPointConfig gen_to_be_invoked = (MapEventPointConfig)translator.FastGetCSObj(L, 1);
+ LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.LineId);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
--
Gitblit v1.8.0