예제 #1
0
 public void AddSkillEffect(SkillEffectData skillEffectData)
 {
     if (!listSkillEffect.ContainsKey(skillEffectData.id))
     {
         listSkillEffect.Add(skillEffectData.id, skillEffectData);
         IOMethods.Instance.WriteData <SkillEffectData>(path, listSkillEffect);
     }
 }
예제 #2
0
        public SkillEffectData Clone()
        {
            SkillEffectData data = new SkillEffectData();

            data.id                 = id;
            data.typeAction         = typeAction;
            data.typeEffect         = typeEffect;
            data.levelSkillEffect   = levelSkillEffect;
            data.valueIncreasePerLv = valueIncreasePerLv;
            data.effectValue        = effectValue;
            data.timeExist          = timeExist;
            data.ratioSuccess       = ratioSuccess;
            data.timeDistance       = timeDistance;
            data.ratioOutbreak      = ratioOutbreak;
            return(data);
        }
예제 #3
0
        public void CreateNewSkillEffect(ESkillEffect typeAction, ETypeEffect typeEffect, int levelSkillEffect, float valueIncreasePerLv, float effectValue, float timeExist, float ratioSuccess, float timeDistance, float ratioOutbreak)
        {
            SkillEffectData newskilleffect = new SkillEffectData(typeAction, typeEffect, levelSkillEffect, valueIncreasePerLv, effectValue, timeExist, ratioSuccess, timeDistance, ratioOutbreak);

            AddSkillEffect(newskilleffect);
        }
예제 #4
0
 public void PrintSkillEffect(SkillEffectData skillEffect)
 {
     Console.WriteLine(Ultils.FormatText(skillEffect.id.ToString(), 10) + Ultils.FormatText(skillEffect.typeAction.ToString(), 30) + Ultils.FormatText(skillEffect.typeEffect.ToString(), 30) + Ultils.FormatText(skillEffect.levelSkillEffect.ToString()) + Ultils.FormatText(skillEffect.effectValue.ToString()) + Ultils.FormatText(skillEffect.timeExist.ToString()) + Ultils.FormatText(skillEffect.ratioSuccess.ToString()) + Ultils.FormatText(skillEffect.timeDistance.ToString()) + Ultils.FormatText(skillEffect.ratioOutbreak.ToString()) + "\n");
 }