Esempio n. 1
0
    /// <summary>
    /// 复制技能信息
    /// </summary>
    /// <param name="skillInfo">被复制信息</param>
    /// <returns>复制数据</returns>
    public SkillInfo CopySkillInfo(SkillInfo skillInfo)
    {
        SkillInfo result = null;

        if (skillInfo != null)
        {
            result = new SkillInfo(skillInfo.Num)
            {
                CDGroup           = skillInfo.CDGroup,
                CDTime            = skillInfo.CDTime,
                DataList          = skillInfo.DataList,
                ChangeData        = skillInfo.ChangeData,
                ChangeDataTypeDic = skillInfo.ChangeDataTypeDic,
                Description       = skillInfo.Description,
                Icon                    = skillInfo.Icon,
                ReleaseMember           = skillInfo.ReleaseMember,
                IntervalTime            = skillInfo.IntervalTime,
                ReleaseTime             = skillInfo.ReleaseTime,
                TickTime                = skillInfo.TickTime,
                TriggerLevel1           = skillInfo.TriggerLevel1,
                TriggerLevel2           = skillInfo.TriggerLevel2,
                TriggerProbability      = skillInfo.TriggerProbability,
                DemageChange            = skillInfo.DemageChange,
                DemageChangeProbability = skillInfo.DemageChangeProbability,
                DemageChangeTargetType  = skillInfo.DemageChangeTargetType,
                DemageChangeType        = skillInfo.DemageChangeType,
                IsActive                = skillInfo.IsActive,
                IsDone                  = skillInfo.IsDone,
                ReplaceSourceDataDic    = skillInfo.ReplaceSourceDataDic,
                SkillName               = skillInfo.SkillName
            };
            result.AddActionFormulaItem(skillInfo.GetActionFormulaItem());
        }

        return(result);
    }