Exemplo n.º 1
0
        static void Main(string[] args)
        {
            // classes
            var classOptions = Classes.ClassOptions();
            var firstClass   = classOptions.First();
            var myClass      = Classes.GetClass(firstClass);
            // races
            var raceOptions = Races.RaceOptions();
            var firstRace   = raceOptions.First();
            var myRace      = Races.GetRace(firstRace);
            // monsters
            var monsterOptions = Monsters.MonsterOptions();
            var types          = Monsters.Types;
            var sizes          = Monsters.Sizes;
            var search         = new Monsters.Search(size: sizes[0]);
            var result         = Monsters.MonsterOptions(search);

            search = new Monsters.Search(type: types[0]);
            result = Monsters.MonsterOptions(search);
            search = new Monsters.Search(type: types[5], size: sizes[2]);
            result = Monsters.MonsterOptions(search);
            // spells
            var search2 = new Spells.Search(level: 0);

            result  = Spells.SpellOptions(search2);
            search2 = new Spells.Search(level: 1);
            result  = Spells.SpellOptions(search2);
            search2 = new Spells.Search(level: 2);
            result  = Spells.SpellOptions(search2);
            search2 = new Spells.Search(level: 1, school: "Necromancy");
            result  = Spells.SpellOptions(search2);
            search2 = new Spells.Search(level: 0, @class: "Druid");
            result  = Spells.SpellOptions(search2);
            search2 = new Spells.Search(level: 3, @class: "Wizard", school: "Evocation");
            result  = Spells.SpellOptions(search2);
        }