From 1db5bf44375dc80e1220a8407a32466cf5ea65db Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期三, 22 五月 2019 16:38:37 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
Lua/Gen/StatusMgrWrap.cs | 52 +++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 49 insertions(+), 3 deletions(-)
diff --git a/Lua/Gen/StatusMgrWrap.cs b/Lua/Gen/StatusMgrWrap.cs
index fcb352a..276e9f8 100644
--- a/Lua/Gen/StatusMgrWrap.cs
+++ b/Lua/Gen/StatusMgrWrap.cs
@@ -21,7 +21,7 @@
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(StatusMgr);
- Utils.BeginObjectRegister(type, L, translator, 0, 23, 5, 5);
+ Utils.BeginObjectRegister(type, L, translator, 0, 24, 5, 5);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Request", _m_Request);
@@ -46,6 +46,7 @@
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsInvincible", _m_IsInvincible);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsInvisible", _m_IsInvisible);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetSkillEffectValue", _m_TryGetSkillEffectValue);
+ Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsBurning", _m_IsBurning);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ZhongJiDict", _g_get_ZhongJiDict);
@@ -685,9 +686,9 @@
{
uint _sid = LuaAPI.xlua_touint(L, 2);
- int _skillSeries = LuaAPI.xlua_tointeger(L, 3);
+ SkillConfig __config = (SkillConfig)translator.GetObject(L, 3, typeof(SkillConfig));
- bool gen_ret = gen_to_be_invoked.CanAttack( _sid, _skillSeries );
+ bool gen_ret = gen_to_be_invoked.CanAttack( _sid, __config );
LuaAPI.lua_pushboolean(L, gen_ret);
@@ -792,6 +793,51 @@
}
+ [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
+ static int _m_IsBurning(RealStatePtr L)
+ {
+ try {
+
+ ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
+
+
+ StatusMgr gen_to_be_invoked = (StatusMgr)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_TNUMBER == LuaAPI.lua_type(L, 3))
+ {
+ uint _targetSID = LuaAPI.xlua_touint(L, 2);
+ uint _attackSID = LuaAPI.xlua_touint(L, 3);
+
+ bool gen_ret = gen_to_be_invoked.IsBurning( _targetSID, _attackSID );
+ LuaAPI.lua_pushboolean(L, gen_ret);
+
+
+
+ return 1;
+ }
+ if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
+ {
+ uint _targetSID = LuaAPI.xlua_touint(L, 2);
+
+ bool gen_ret = gen_to_be_invoked.IsBurning( _targetSID );
+ LuaAPI.lua_pushboolean(L, gen_ret);
+
+
+
+ return 1;
+ }
+
+ } catch(System.Exception gen_e) {
+ return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
+ }
+
+ return LuaAPI.luaL_error(L, "invalid arguments to StatusMgr.IsBurning!");
+
+ }
+
--
Gitblit v1.8.0