Example #1
0
        private void ScanCars()
        {
            _mods = new List <IMod>();

            // rFactor stores data in GDB files.
            // All relevant path data is in stored in AIW files.
            List <MAS2File> vehicles = rFactor2.Garage.Files.SearchFiles("*.rfm");
            int             count    = 0;

            foreach (MAS2File mod in vehicles)
            {
                if (!mod.Master.File.Contains("allcarstracks")) // Do not parse all cars/tracks
                {
                    rFactor2Mod rf2mod = new rFactor2Mod(mod);
                    _mods.Add(rf2mod);
                    count++;
                }
            }

            Debug.WriteLine(count + " mod(s) found");
        }
Example #2
0
        private void ScanCars()
        {
            _mods = new List<IMod>();

            // rFactor stores data in GDB files.
            // All relevant path data is in stored in AIW files.
            List<MAS2File> vehicles = rFactor2.Garage.Files.SearchFiles("*.rfm");
            int count = 0;
            foreach (MAS2File mod in vehicles)
            {
                if(!mod.Master.File.Contains("allcarstracks")) // Do not parse all cars/tracks
                {
                    rFactor2Mod rf2mod = new rFactor2Mod(mod);
                    _mods.Add(rf2mod);
                    count++;
                }

            }

            Debug.WriteLine(count + " mod(s) found");
        }