Ejemplo n.º 1
0
        private void LoadFiles()
        {
            var rootPath = RootPathProvider.GetRootPathStatic();

            ReverseItemLookup.ReadStats(Path.Combine(rootPath, WebSettings.Settings.FileStringsEnglish));
            StringLookup.ReadStats(Path.Combine(rootPath, WebSettings.Settings.FileStringsEnglish));

            CabinStatsCollection.ReadStats <PartStatsCabin>(Path.Combine(rootPath, WebSettings.Settings.FileCarEditorCabinsLua));
            DecorumStatsCollection.ReadStats <PartStatsDecor>(Path.Combine(rootPath, WebSettings.Settings.FileCarEditorDecorumLua));
            WeaponStatsCollection.ReadStats <PartStatsWeapon>(Path.Combine(rootPath, WebSettings.Settings.FileCarEditorWeaponsExLua));
            MovementStatsCollection.ReadStats <PartStatsWheel>(Path.Combine(rootPath, WebSettings.Settings.FileCarEditorWheelsLua));
            CoreStatsCollection.ReadStats <PartStatsCore>(Path.Combine(rootPath, WebSettings.Settings.FileCarEditorCoreLua));
        }