Esempio n. 1
0
        private void Seed()
        {
            new World() { HeroId = 1, Name = "Davi", UserId = 1 }.Save();
            new World() { HeroId = 2, Name = "Golias", UserId = 2 }.Save();

            God zeus = new God("Zeus",         050, 050, 500, 200, 020, 1, 30); zeus.Save();
            God afrodite = new God("Afrodite",     010, 010, 400, 170, 030, 2, 30); afrodite.Save();

            new God("Odin",         200, 030, 100, 040, 300, 3, 30).Save();
            new God("Valquíria",    100, 100, 100, 100, 100, 4, 40).Save();
            new God("Marte",        090, 150, 200, 030, 200, 5, 30).Save();

            new Unit("Batedor",     05, 05, 05, 20, 04, 1).Save();
            new Unit("Cavaleiro",   01, 01, 40, 17, 04, 2).Save();
            new Unit("Mago",        20, 03, 10, 04, 30, 3).Save();
            new Unit("Infantaria",  10, 10, 10, 10, 10, 4).Save();
            new Unit("Bárbaro",     09, 15, 20, 03, 20, 5).Save();

            new Hero("Asturian", zeus).Save();
            new Hero("Peixes", afrodite).Save();
        }