public MagicData(string name, MagicType type, MagicCore[] cores, string desc, AttackType element, string se, string anime) { Debug.Assert(AttackTypes.Magic.Contains(element), "属性({0})は「火水風土光闇」の中から選んでください。"); Name = name; Type = type; Cores = cores; Description = desc; Element = element; SEFileName = se; AnimationFileName = anime; }
public MagicData Clone(int coreLevel) { var cores = new MagicCore[coreLevel]; for (int i = 0; i < coreLevel; i++) cores[i] = Cores[i]; return new MagicData(Name, Type, cores, Description, Element, SEFileName, AnimationFileName); }