public AddImpactForInit ( ISkillTriger trigger ) : void | ||
trigger | ISkillTriger | |
return | void |
static public int AddImpactForInit(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); if (argc == 2) { SkillSystem.SkillInstance self = (SkillSystem.SkillInstance)checkSelf(l); SkillSystem.ISkillTriger a1; checkType(l, 2, out a1); self.AddImpactForInit(a1); pushValue(l, true); return(1); } else if (argc == 4) { SkillSystem.SkillInstance self = (SkillSystem.SkillInstance)checkSelf(l); SkillSystem.ISkillTriger a1; checkType(l, 2, out a1); System.Int32 a2; checkType(l, 3, out a2); System.Boolean a3; checkType(l, 4, out a3); self.AddImpactForInit(a1, a2, a3); pushValue(l, true); return(1); } pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function to call"); return(2); } catch (Exception e) { return(error(l, e)); } }
protected override void Load(Dsl.CallData callData, SkillInstance instance) { int num = callData.GetParamNum(); if (num > 0) { m_EffectPath.Set(callData.GetParam(0)); } if (num > 1) { m_EmitBone.Set(callData.GetParam(1)); } if (num > 2) { m_EmitImpact = int.Parse(callData.GetParamId(2)); } if (num > 3) { m_EmitSpeed.Set(callData.GetParam(3)); } if (num > 4) { StartTime = long.Parse(callData.GetParamId(4)); } if (num > 5) { m_IsExternalImpact = callData.GetParamId(5) == "true"; } instance.AddImpactForInit(this, m_EmitImpact, m_IsExternalImpact); }
protected override void Load(Dsl.CallData callData, SkillInstance instance) { instance.AddImpactForInit(this); int num = callData.GetParamNum(); if (num >= 6) { StartTime = long.Parse(callData.GetParamId(0)); m_RelativeCenter.x = float.Parse(callData.GetParamId(1)); m_RelativeCenter.y = float.Parse(callData.GetParamId(2)); m_RelativeCenter.z = float.Parse(callData.GetParamId(3)); m_RelativeToTarget = callData.GetParamId(4) == "true"; m_DurationTime.Set(callData.GetParam(5)); m_IntervalTime.Set(callData.GetParam(6)); } }
protected override void Load(Dsl.CallData callData, SkillInstance instance) { int num = callData.GetParamNum(); if (num > 0) { m_EffectPath.Set(callData.GetParam(0)); } if (num > 1) { m_EmitBone.Set(callData.GetParamId(1)); } if (num > 5) { m_RelativeCenter.x = float.Parse(callData.GetParamId(2)); m_RelativeCenter.y = float.Parse(callData.GetParamId(3)); m_RelativeCenter.z = float.Parse(callData.GetParamId(4)); m_RelativeToTarget = callData.GetParamId(5) == "true"; } if (num > 6) { m_EmitImpact = int.Parse(callData.GetParamId(6)); } if (num > 7) { m_EmitSpeed.Set(callData.GetParam(7)); } if (num > 8) { StartTime = long.Parse(callData.GetParamId(8)); } if (num > 9) { m_IsExternalImpact = callData.GetParamId(9) == "true"; } instance.AddImpactForInit(this, m_EmitImpact, m_IsExternalImpact); }
protected override void Load(Dsl.CallData callData, SkillInstance instance) { instance.AddImpactForInit(this); int num = callData.GetParamNum(); if (num >= 5) { StartTime = long.Parse(callData.GetParamId(0)); m_RelativeCenter.x = float.Parse(callData.GetParamId(1)); m_RelativeCenter.y = float.Parse(callData.GetParamId(2)); m_RelativeCenter.z = float.Parse(callData.GetParamId(3)); m_DurationTime.Set(callData.GetParam(4)); } if (num >= 6) { m_FinishOnCollide = callData.GetParamId(5) == "true"; } if (num >= 7) { m_SingleHit = callData.GetParamId(6) == "true"; } }