Example #1
0
    private List <SkillEffectView> _GetSkillEffects(SkillVariety variety)
    {
        List <SkillEffectView> list = new List <SkillEffectView>();

        switch (variety)
        {
        case SkillVariety.FireBall:
            list.Add(_GetEffectView(SkillEffectViewType.FireBall));
            list.Add(_GetEffectView(SkillEffectViewType.FireBallExplosion));
            break;

        case SkillVariety.GeneralHit:
            list.Add(_GetEffectView(SkillEffectViewType.GeneralHit));
            break;

        case SkillVariety.IceExplosion:
            list.Add(_GetEffectView(SkillEffectViewType.IceExplosion));
            break;

        case SkillVariety.MagicAura:
            list.Add(_GetEffectView(SkillEffectViewType.MagicAura));
            break;

        default:
            list.Add(null);
            break;
        }
        return(list);
    }
Example #2
0
 public Skill(SkillRow skillRow)
 {
     EffectType      = skillRow.EffectType;
     Variety         = skillRow.Variety;
     ID              = skillRow.ID;
     Name            = skillRow.Name;
     MpCost          = skillRow.MpCost;
     Multiple        = skillRow.Multiple;
     IsConstant      = skillRow.IsConstant;
     EffectValue     = skillRow.EffectValue;
     IsRemote        = skillRow.IsRemote;
     EffectiveWay    = skillRow.EffectiveWay;
     EffectiveResult = skillRow.EffectiveResult;
     Duration        = skillRow.Duration;
     MoveSpeed       = skillRow.MoveSpeed;
     Desc            = _GetDescription();
     if (!string.IsNullOrEmpty(skillRow.ImageKey))
     {
         ImageKey = IMAGE_PATH_PREFIX + skillRow.ImageKey;
     }
 }