| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(SkillHelper); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 4, 0, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 6, 0, 0); |
| | | |
| | | 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); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSpSkillChange", _m_OnSpSkillChange); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSpSkill", _m_GetSpSkill); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Get", _m_Get); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_BindSkill(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | SkillHelper gen_to_be_invoked = (SkillHelper)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _skillID = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.BindSkill( _skillID ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetSkillID(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | SkillHelper gen_to_be_invoked = (SkillHelper)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _typeID = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetSkillID( _typeID ); |
| | | LuaAPI.xlua_pushinteger(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_OnSpSkillChange(RealStatePtr L) |
| | | { |
| | | try { |