static int _g_get_SkillAttackInst(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { SkillBaseComponent __cl_gen_to_be_invoked = (SkillBaseComponent)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.SkillAttackInst); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { SkillBaseComponent __cl_gen_ret = new SkillBaseComponent(); translator.Push(L, __cl_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 SkillBaseComponent constructor!")); }
/// <summary> /// 初始化 /// </summary> public void Init(ulong id, UnitID actor_id, DBSkillSev.SkillInfoSev skill_info, float forwardTime, float totalTime, float attack_speed, SkillBaseComponent AnimationTriggerOption, Action <SkillAttackInstance> hit_callback) { mID = id; m_SrcActorID = actor_id; m_SkillInfo = skill_info; mForwardTime = forwardTime; mfTimeCount = totalTime; if (mForwardTime > mfTimeCount) { mForwardTime = mfTimeCount; GameDebug.LogError("[SkillAttackInstance]前摇时间大于总时间"); } mAttackSpeed = attack_speed; mfElapseTime = 0.0f; mEffectBaseComponent = AnimationTriggerOption; m_HitCallback = hit_callback; m_HasHited = false; Update(); }
static int _m_DestroyAll(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SkillBaseComponent __cl_gen_to_be_invoked = (SkillBaseComponent)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.DestroyAll( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_UpdateCycle(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SkillBaseComponent __cl_gen_to_be_invoked = (SkillBaseComponent)translator.FastGetCSObj(L, 1); try { { float elapseTime = (float)LuaAPI.lua_tonumber(L, 2); __cl_gen_to_be_invoked.UpdateCycle(elapseTime); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_Init(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SkillBaseComponent __cl_gen_to_be_invoked = (SkillBaseComponent)translator.FastGetCSObj(L, 1); try { { xc.SkillAttackInstance inst = (xc.SkillAttackInstance)translator.GetObject(L, 2, typeof(xc.SkillAttackInstance)); __cl_gen_to_be_invoked.Init(inst); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_AddMonoEnableOption(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); SkillBaseComponent __cl_gen_to_be_invoked = (SkillBaseComponent)translator.FastGetCSObj(L, 1); try { { UnityEngine.MonoBehaviour kTarget = (UnityEngine.MonoBehaviour)translator.GetObject(L, 2, typeof(UnityEngine.MonoBehaviour)); bool bEnable = LuaAPI.lua_toboolean(L, 3); float fDelayTime = (float)LuaAPI.lua_tonumber(L, 4); __cl_gen_to_be_invoked.AddMonoEnableOption(kTarget, bEnable, fDelayTime); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }