| | |
| | | { |
| | | 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); |
| | |
| | | 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); |
| | |
| | | |
| | | { |
| | | 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); |
| | | |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | [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!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |