INNER CODE UNIT · Kotlin

initialize

yairm210/Unciv · core/src/com/unciv/UncivGame.kt:147

    private fun initialize() {
        ImageGetter.resetAtlases()
        ImageGetter.reloadImages()  // This needs to come after the settings, since we may have default visual mods


        Concurrency.run("LoadJSON") {
            RulesetCache.loadRulesets()
            Concurrency.parallelize(listOf(
                { translations.tryReadTranslationForCurrentLanguage() },
                { translations.loadPercentageCompleteOfLanguages() },
                { TileSetCache.loadTileSetConfigs() },
                { SkinCache.loadSkinConfigs() }
            ))


            val vanillaRuleset = RulesetCache.getVanillaRuleset()

            if (settings.multiplayer.getUserId().isEmpty()) { // assign permanent user id

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…