Ejemplo n.º 1
0
        public static void AddTestData()
        {
            DatabaseManager.Connect();
            DatabaseManager.CheckTable("Weapons");
            DatabaseManager.CheckTable("Armors");
            DatabaseManager.CheckTable("Consumables");

            DatabaseManager.AddWeapon(new Weapon("TestWeapon01", 10, 11, 12));
            DatabaseManager.AddWeapon(new Weapon("TestWeapon02", 13, 14, 15));
            DatabaseManager.AddWeapon(new Weapon("TestWeapon03", 16, 17, 18));

            DatabaseManager.AddArmor(new Armor("TestArmor01", 19, 20));
            DatabaseManager.AddArmor(new Armor("TestArmor02", 21, 22));
            DatabaseManager.AddArmor(new Armor("TestArmor03", 23, 24));

            DatabaseManager.AddConsumable(new Consumable("TestConsumable01"));
            DatabaseManager.AddConsumable(new Consumable("TestConsumable02"));
            DatabaseManager.AddConsumable(new Consumable("TestConsumable03"));
            DatabaseManager.Disconnect();
        }