Beispiel #1
0
        public Loader()
        {
            Contract.Requires(DBC.DBCPath != null);

            DBC.Vehicle            = DBCReader.ReadDBC <VehicleEntry>(DBC.VehicleStrings);
            DBC.VehicleSeat        = DBCReader.ReadDBC <VehicleSeatEntry>(null);
            DBC.VehicleUIIndicator = DBCReader.ReadDBC <VehicleUIIndicatorEntry>(null);
            DBC.VehicleUIIndSeat   = DBCReader.ReadDBC <VehicleUIIndSeatEntry>(null);

            SQL.CreatureTemplate = SQLReader.LoadCreatureTemplates();
            SQL.SpellClick       = SQLReader.LoadSpellClick();
            SQL.Accessories      = SQLReader.LoadVehicleAccessories();
        }
Beispiel #2
0
        public void LoadVehicleAccessoriesTest()
        {
            var actual = SQLReader.LoadVehicleAccessories();

            List <VehicleTemplateAccessory> accessories;

            if (actual.TryGetValue(36678, out accessories))
            {
                foreach (var accessory in accessories)
                {
                    switch (accessory.AccessoryEntry)
                    {
                    case 38309:
                        Assert.AreEqual(0u, accessory.SeatId);
                        break;

                    case 38308:
                        Assert.AreEqual(1u, accessory.SeatId);
                        break;
                    }
                }
            }
        }