| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(SkillHelper); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 6, 0, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 8, 0, 0); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetExpertSkill", _m_GetExpertSkill); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetExpertSkillEvByMainSkillID", _m_TryGetExpertSkillEvByMainSkillID); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "BindSkill", _m_BindSkill); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSkillID", _m_GetSkillID); |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetExpertSkill(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | SkillHelper gen_to_be_invoked = (SkillHelper)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _mainSkillId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | SkillHelper.SkillInfo gen_ret = gen_to_be_invoked.GetExpertSkill( _mainSkillId ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetExpertSkillEvByMainSkillID(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | SkillHelper gen_to_be_invoked = (SkillHelper)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _mainSkillId = LuaAPI.xlua_tointeger(L, 2); |
| | | int _evID = LuaAPI.xlua_tointeger(L, 3); |
| | | SkillHelper.EffectValue _ev; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetExpertSkillEvByMainSkillID( _mainSkillId, _evID, out _ev ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _ev); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Init(RealStatePtr L) |
| | | { |
| | | try { |