Exemple #1
0
        private void GetKeysFromGameConfig(SortedDictionary <string, LocalizationRecord> storage)
        {
            ConfigsLoader.LoadForEditorToolsIfNeeded();
            var config = GameConfig.Instance;
            Action <string, string> action = (key, value) => AddToStorage(storage, key, value,
                                                                          "From confluence or google tables, modify Ru there", Source.Config, PairStatus.New, "GameConfig");

            GameConfigBuilder.FillConfigWithLocalization(config, ConfigsLoader.GetConfigsSourcePath(ConfigsSourcePathType.Dev), action);
            // Hack since max edited all text in crowdin
            GameConfigBuilder.FillHackedTutorLevelLocalizations(config, ConfigsLoader.GetConfigsSourcePath(ConfigsSourcePathType.Dev),
                                                                (key, value) =>
            {
                AddToStorage(storage, key, value, "Modifiable from crowdin", Source.Code, PairStatus.New,
                             "GameConfig");
            });
        }