From 3d101da093e4d3db02a005beec51d8a9aa0e6725 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期二, 20 十一月 2018 10:42:39 +0800
Subject: [PATCH] 3335 【1.3】生成model对应xlua代码
---
Lua/Gen/MapTransferUtilityWrap.cs | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/Lua/Gen/MapTransferUtilityWrap.cs b/Lua/Gen/MapTransferUtilityWrap.cs
index 386b5e5..3baa016 100644
--- a/Lua/Gen/MapTransferUtilityWrap.cs
+++ b/Lua/Gen/MapTransferUtilityWrap.cs
@@ -164,7 +164,20 @@
MapTransferUtility gen_to_be_invoked = (MapTransferUtility)translator.FastGetCSObj(L, 1);
-
+ int gen_param_count = LuaAPI.lua_gettop(L);
+
+ if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
+ {
+ int _mapID = LuaAPI.xlua_tointeger(L, 2);
+ bool _force = LuaAPI.lua_toboolean(L, 3);
+
+ gen_to_be_invoked.CheckMap( _mapID, _force );
+
+
+
+ return 0;
+ }
+ if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
{
int _mapID = LuaAPI.xlua_tointeger(L, 2);
@@ -179,6 +192,8 @@
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
+ return LuaAPI.luaL_error(L, "invalid arguments to MapTransferUtility.CheckMap!");
+
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
--
Gitblit v1.8.0