public Character(long id, string name, string characterClass, Health health, IEnumerable <Skill> skills, IEnumerable <StatusEffect> statusEffects, int ct = 0, CastingInfo casting = null) { ID = id; Name = name; CharacterClass = characterClass; Health = health; Skills = ImmutableArray.CreateRange(skills ?? Array.Empty <Skill> ()); StatusEffects = ImmutableArray.CreateRange(statusEffects ?? Array.Empty <StatusEffect> ()); CT = ct; Casting = casting; }
public Character WithCasting(CastingInfo casting) { return(new Character(ID, Name, CharacterClass, Health, Skills, StatusEffects, CT, casting)); }