protected override void Load(Dsl.CallData callData, SkillInstance instance) { if (callData.GetParamNum() >= 5) { StartTime = long.Parse(callData.GetParamId(0)); m_BoneName = callData.GetParamId(1); if (m_BoneName == " ") { m_BoneName = ""; } var param2 = callData.GetParam(2); m_PosObjPath = param2.GetId(); var cd2 = param2 as Dsl.CallData; if (null != cd2 && m_PosObjPath == "vector3") { m_Postion = DslUtility.CalcVector3(cd2); } var param3 = callData.GetParam(3); m_RotateObjPath = param3.GetId(); var cd3 = param3 as Dsl.CallData; if (null != cd3 && m_RotateObjPath == "eular") { m_Rotate = DslUtility.CalcEularAngles(cd3); } m_RelativeType = callData.GetParamId(4); } if (callData.GetParamNum() >= 6) { m_IsAttach = bool.Parse(callData.GetParamId(5)); } if (callData.GetParamNum() >= 7) { m_IsUseTerrainHeight = bool.Parse(callData.GetParamId(6)); } if (callData.GetParamNum() >= 8) { m_RandomRotate = DslUtility.CalcVector3(callData.GetParam(7) as Dsl.CallData); } }
protected override void Load(Dsl.CallData callData, SkillInstance instance) { if (callData.GetParamNum() >= 6) { StartTime = long.Parse(callData.GetParamId(0)); m_BoneName = callData.GetParamId(1); if (m_BoneName == " ") { m_BoneName = ""; } m_Postion = DslUtility.CalcVector3(callData.GetParam(2) as Dsl.CallData); m_Rotate = DslUtility.CalcEularAngles(callData.GetParam(3) as Dsl.CallData); m_RelativeType = callData.GetParamId(4); m_IsAttach = bool.Parse(callData.GetParamId(5)); } if (callData.GetParamNum() >= 7) { m_IsUseTerrainHeight = bool.Parse(callData.GetParamId(6)); } if (callData.GetParamNum() >= 8) { m_RandomRotate = DslUtility.CalcVector3(callData.GetParam(7) as Dsl.CallData); } }