public void SpellRepositoryInitilization(Unit player, SpellRepos repos) { foreach (Spell item in repos.Spells) { player.Spells.Spells.Add(item); } }
public string SpellReposInfo(SpellRepos repos, Unit caster) { var sb = new StringBuilder(); int counter = 1; foreach (var item in repos.Spells) { sb.AppendLine($"Spell name: [{counter}]{item.Name}, Mana Requirment: {item.ManaRequirment}/{caster.CurrentMana}"); counter++; } return(sb.ToString()); }