public void AddSkillEffect(SkillEffectData skillEffectData) { if (!listSkillEffect.ContainsKey(skillEffectData.id)) { listSkillEffect.Add(skillEffectData.id, skillEffectData); IOMethods.Instance.WriteData <SkillEffectData>(path, listSkillEffect); } }
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); }
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); }
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"); }