Beispiel #1
0
 public void SpellRepositoryInitilization(Unit player, SpellRepos repos)
 {
     foreach (Spell item in repos.Spells)
     {
         player.Spells.Spells.Add(item);
     }
 }
Beispiel #2
0
        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());
        }