public void Add(AbilityPrioInfo ability) { this.abilities.Add(this.priotizedAbilityFactory(ability, this.abilities.Count + 1)); }
public PriotizedAbility(RequirementFactory requirementFactory, AbilityPrioInfo info, int priority) { this.info = info; this.priority = priority; this.requirements = info.Requirements.Select(requirementFactory.Create).ToArray(); }