Module content.gui.menu.new_game_react_util🔗
global record NewGameReactUtil
makeDefaultBaseModParams: function(): {string : Index} makeDefaultConfigDictForClimate: function(string): {{string, string}} gatherMapConfig: function({{string, string}}): MapConfig autoActivateConfigDictMods: function({string}, {{string, string}}): {string}prepareState: function({{string, string}}, {NewGameReactUtil.Generator}, integer, boolean): StatesBundle searchBuildAndAddScriptParamComp: function({NewGameReactUtil.SettingsEntry}, ReactStateT<{string : {string : integer}}>, string, boolean, {string}, {string}): TreeNodeId addNamesSettingsEntry: function({NewGameReactUtil.SettingsEntry}, ReactStateT<{{string, string}}>) addStartYearSettingsEntry: function({NewGameReactUtil.SettingsEntry}, ReactStateT<GameMap>, ReactStateT<NewGameReactUtil.NewGameState>) addTutorialSettingsEntry: function({NewGameReactUtil.SettingsEntry}, ReactStateT<{string : {string : integer}}>, {string}) addSeedSettingsEntry: function({NewGameReactUtil.SettingsEntry}, ReactStateT<GameMap>, ReactStateT<NewGameReactUtil.NewGameState>) addMapSizeSettingsEntry: function({NewGameReactUtil.SettingsEntry}, ReactStateT<{string : {string : integer}}>, {string}) addMapFormatSettingsEntry: function({NewGameReactUtil.SettingsEntry}, ReactStateT<{string : {string : integer}}>, {string}) addInitialWeatherSettingsEntry: function({NewGameReactUtil.SettingsEntry}, ReactStateT<{string : {string : integer}}>, {string}) addInitialTimeOfDaySettingsEntry: function({NewGameReactUtil.SettingsEntry}, ReactStateT<{string : {string : integer}}>, {string}) addGeneratorSettingsEntry: function({NewGameReactUtil.SettingsEntry}, {NewGameReactUtil.Generator}, ReactStateT<GameMap>, ReactStateT<NewGameReactUtil.NewGameState>) addTerrainParameterSettingsEntry: function({NewGameReactUtil.SettingsEntry}, ReactStateT<GameMap>, ReactStateT<NewGameReactUtil.NewGameState>, ReactStateT<{string : integer}>) getYearValues: function(): {integer} getYearScriptParam: function(): ScriptParam getInitialTimeOfDayValues: function(): {integer} getInitialCloudCoverageValues: function(): {number} calculateSeedString: function(integer): string getFilterTags: function(): {string} getPlatformFilterTags: function(): {string} findConfigDictIndex: function<K, V>({{K, V}}, K): integer endrecord StatesBundle
mapParamsState: NewGameReactUtil.NewGameState mapGenParamsState: {string : integer} activeModsState: {string} activeModsParamsState: {string : {string : integer}} end
Category: globals🔗
NewGameReactUtil🔗
global record NewGameReactUtil
makeDefaultBaseModParams: function(): {string : Index} makeDefaultConfigDictForClimate: function(string): {{string, string}} gatherMapConfig: function({{string, string}}): MapConfig autoActivateConfigDictMods: function({string}, {{string, string}}): {string}prepareState: function({{string, string}}, {NewGameReactUtil.Generator}, integer, boolean): StatesBundle searchBuildAndAddScriptParamComp: function({NewGameReactUtil.SettingsEntry}, ReactStateT<{string : {string : integer}}>, string, boolean, {string}, {string}): TreeNodeId addNamesSettingsEntry: function({NewGameReactUtil.SettingsEntry}, ReactStateT<{{string, string}}>) addStartYearSettingsEntry: function({NewGameReactUtil.SettingsEntry}, ReactStateT<GameMap>, ReactStateT<NewGameReactUtil.NewGameState>) addTutorialSettingsEntry: function({NewGameReactUtil.SettingsEntry}, ReactStateT<{string : {string : integer}}>, {string}) addSeedSettingsEntry: function({NewGameReactUtil.SettingsEntry}, ReactStateT<GameMap>, ReactStateT<NewGameReactUtil.NewGameState>) addMapSizeSettingsEntry: function({NewGameReactUtil.SettingsEntry}, ReactStateT<{string : {string : integer}}>, {string}) addMapFormatSettingsEntry: function({NewGameReactUtil.SettingsEntry}, ReactStateT<{string : {string : integer}}>, {string}) addInitialWeatherSettingsEntry: function({NewGameReactUtil.SettingsEntry}, ReactStateT<{string : {string : integer}}>, {string}) addInitialTimeOfDaySettingsEntry: function({NewGameReactUtil.SettingsEntry}, ReactStateT<{string : {string : integer}}>, {string}) addGeneratorSettingsEntry: function({NewGameReactUtil.SettingsEntry}, {NewGameReactUtil.Generator}, ReactStateT<GameMap>, ReactStateT<NewGameReactUtil.NewGameState>) addTerrainParameterSettingsEntry: function({NewGameReactUtil.SettingsEntry}, ReactStateT<GameMap>, ReactStateT<NewGameReactUtil.NewGameState>, ReactStateT<{string : integer}>) getYearValues: function(): {integer} getYearScriptParam: function(): ScriptParam getInitialTimeOfDayValues: function(): {integer} getInitialCloudCoverageValues: function(): {number} calculateSeedString: function(integer): string getFilterTags: function(): {string} getPlatformFilterTags: function(): {string} findConfigDictIndex: function<K, V>({{K, V}}, K): integer endrecord StatesBundle
mapParamsState: NewGameReactUtil.NewGameState mapGenParamsState: {string : integer} activeModsState: {string} activeModsParamsState: {string : {string : integer}} end
NewGameReactUtil.makeDefaultBaseModParams🔗
function NewGameReactUtil.makeDefaultBaseModParams(): {string : Index}Returns
{string : Index}
NewGameReactUtil.makeDefaultConfigDictForClimate🔗
function NewGameReactUtil.makeDefaultConfigDictForClimate(string): {{string, string}}Parameters
string
{{string, string}}
NewGameReactUtil.Generator🔗
NewGameReactUtil.Generator.name🔗
NewGameReactUtil.Generator.name: string
NewGameReactUtil.Generator.order🔗
NewGameReactUtil.Generator.order: integer
NewGameReactUtil.MapConfig🔗
NewGameReactUtil.MapConfig.possibleGenerators🔗
NewGameReactUtil.MapConfig.possibleGenerators: {Generator}
NewGameReactUtil.MapConfig.climateDesc🔗
NewGameReactUtil.MapConfig.climateDesc: ClimateDesc
NewGameReactUtil.gatherMapConfig🔗
function NewGameReactUtil.gatherMapConfig({{string, string}}): MapConfigParameters
{{string, string}}
MapConfig
NewGameReactUtil.autoActivateConfigDictMods🔗
function NewGameReactUtil.autoActivateConfigDictMods({string}, {{string, string}}): {string}Parameters
{string}{{string, string}}
{string}
NewGameReactUtil.StatesBundle🔗
record NewGameReactUtil.StatesBundle
mapParamsState: NewGameReactUtil.NewGameState mapGenParamsState: {string : integer} activeModsState: {string} activeModsParamsState: {string : {string : integer}} end
NewGameReactUtil.StatesBundle.mapParamsState🔗
NewGameReactUtil.StatesBundle.mapParamsState: NewGameReactUtil.NewGameState
NewGameReactUtil.StatesBundle.mapGenParamsState🔗
NewGameReactUtil.StatesBundle.mapGenParamsState: {string : integer}
NewGameReactUtil.StatesBundle.activeModsState🔗
NewGameReactUtil.StatesBundle.activeModsState: {string}
NewGameReactUtil.StatesBundle.activeModsParamsState🔗
NewGameReactUtil.StatesBundle.activeModsParamsState: {string : {string : integer}}
NewGameReactUtil.prepareState🔗
function NewGameReactUtil.prepareState({{string, string}}, {NewGameReactUtil.Generator}, integer, boolean): StatesBundleParameters
{{string, string}}{NewGameReactUtil.Generator}integerboolean
StatesBundle
NewGameReactUtil.NewGameState🔗
record NewGameReactUtil.NewGameState
startYearIndex: integer terrainGenerator: string seed: string end
NewGameReactUtil.NewGameState.startYearIndex🔗
NewGameReactUtil.NewGameState.startYearIndex: integer
NewGameReactUtil.NewGameState.terrainGenerator🔗
NewGameReactUtil.NewGameState.terrainGenerator: string
NewGameReactUtil.NewGameState.seed🔗
NewGameReactUtil.NewGameState.seed: string
NewGameReactUtil.SettingsEntry🔗
record NewGameReactUtil.SettingsEntry
title: string description: string hintIdKey: string element: TreeNodeId end
NewGameReactUtil.SettingsEntry.title🔗
NewGameReactUtil.SettingsEntry.title: string
NewGameReactUtil.SettingsEntry.description🔗
NewGameReactUtil.SettingsEntry.description: string
NewGameReactUtil.SettingsEntry.hintIdKey🔗
NewGameReactUtil.SettingsEntry.hintIdKey: string
NewGameReactUtil.SettingsEntry.element🔗
NewGameReactUtil.SettingsEntry.element: TreeNodeId
NewGameReactUtil.searchBuildAndAddScriptParamComp🔗
function NewGameReactUtil.searchBuildAndAddScriptParamComp({NewGameReactUtil.SettingsEntry}, ReactStateT<{string : {string : integer}}>, string, boolean, {string}, {string}): TreeNodeIdParameters
{NewGameReactUtil.SettingsEntry}ReactStateT<{string : {string : integer}}>stringboolean{string}{string}
TreeNodeId
NewGameReactUtil.addNamesSettingsEntry🔗
function NewGameReactUtil.addNamesSettingsEntry({NewGameReactUtil.SettingsEntry}, ReactStateT<{{string, string}}>)Parameters
{NewGameReactUtil.SettingsEntry}ReactStateT<{{string, string}}>
NewGameReactUtil.addStartYearSettingsEntry🔗
function NewGameReactUtil.addStartYearSettingsEntry({NewGameReactUtil.SettingsEntry}, ReactStateT<GameMap>, ReactStateT<NewGameReactUtil.NewGameState>)Parameters
{NewGameReactUtil.SettingsEntry}ReactStateT<GameMap>ReactStateT<NewGameReactUtil.NewGameState>
NewGameReactUtil.addTutorialSettingsEntry🔗
function NewGameReactUtil.addTutorialSettingsEntry({NewGameReactUtil.SettingsEntry}, ReactStateT<{string : {string : integer}}>, {string})Parameters
{NewGameReactUtil.SettingsEntry}ReactStateT<{string : {string : integer}}>{string}
NewGameReactUtil.addSeedSettingsEntry🔗
function NewGameReactUtil.addSeedSettingsEntry({NewGameReactUtil.SettingsEntry}, ReactStateT<GameMap>, ReactStateT<NewGameReactUtil.NewGameState>)Parameters
{NewGameReactUtil.SettingsEntry}ReactStateT<GameMap>ReactStateT<NewGameReactUtil.NewGameState>
NewGameReactUtil.addMapSizeSettingsEntry🔗
function NewGameReactUtil.addMapSizeSettingsEntry({NewGameReactUtil.SettingsEntry}, ReactStateT<{string : {string : integer}}>, {string})Parameters
{NewGameReactUtil.SettingsEntry}ReactStateT<{string : {string : integer}}>{string}
NewGameReactUtil.addMapFormatSettingsEntry🔗
function NewGameReactUtil.addMapFormatSettingsEntry({NewGameReactUtil.SettingsEntry}, ReactStateT<{string : {string : integer}}>, {string})Parameters
{NewGameReactUtil.SettingsEntry}ReactStateT<{string : {string : integer}}>{string}
NewGameReactUtil.addInitialWeatherSettingsEntry🔗
function NewGameReactUtil.addInitialWeatherSettingsEntry({NewGameReactUtil.SettingsEntry}, ReactStateT<{string : {string : integer}}>, {string})Parameters
{NewGameReactUtil.SettingsEntry}ReactStateT<{string : {string : integer}}>{string}
NewGameReactUtil.addInitialTimeOfDaySettingsEntry🔗
function NewGameReactUtil.addInitialTimeOfDaySettingsEntry({NewGameReactUtil.SettingsEntry}, ReactStateT<{string : {string : integer}}>, {string})Parameters
{NewGameReactUtil.SettingsEntry}ReactStateT<{string : {string : integer}}>{string}
NewGameReactUtil.addGeneratorSettingsEntry🔗
function NewGameReactUtil.addGeneratorSettingsEntry({NewGameReactUtil.SettingsEntry}, {NewGameReactUtil.Generator}, ReactStateT<GameMap>, ReactStateT<NewGameReactUtil.NewGameState>)Parameters
{NewGameReactUtil.SettingsEntry}{NewGameReactUtil.Generator}ReactStateT<GameMap>ReactStateT<NewGameReactUtil.NewGameState>
NewGameReactUtil.addTerrainParameterSettingsEntry🔗
function NewGameReactUtil.addTerrainParameterSettingsEntry({NewGameReactUtil.SettingsEntry}, ReactStateT<GameMap>, ReactStateT<NewGameReactUtil.NewGameState>, ReactStateT<{string : integer}>)Parameters
{NewGameReactUtil.SettingsEntry}ReactStateT<GameMap>ReactStateT<NewGameReactUtil.NewGameState>ReactStateT<{string : integer}>
NewGameReactUtil.getYearValues🔗
function NewGameReactUtil.getYearValues(): {integer}Returns
{integer}
NewGameReactUtil.getYearScriptParam🔗
function NewGameReactUtil.getYearScriptParam(): ScriptParamReturns
ScriptParam
NewGameReactUtil.getInitialTimeOfDayValues🔗
function NewGameReactUtil.getInitialTimeOfDayValues(): {integer}Returns
{integer}
NewGameReactUtil.getInitialCloudCoverageValues🔗
function NewGameReactUtil.getInitialCloudCoverageValues(): {number}Returns
{number}
NewGameReactUtil.calculateSeedString🔗
function NewGameReactUtil.calculateSeedString(integer): stringParameters
integer
string
NewGameReactUtil.getFilterTags🔗
function NewGameReactUtil.getFilterTags(): {string}Returns
{string}
NewGameReactUtil.getPlatformFilterTags🔗
function NewGameReactUtil.getPlatformFilterTags(): {string}Returns
{string}
NewGameReactUtil.findConfigDictIndex🔗
function NewGameReactUtil.findConfigDictIndex<K, V>({{K, V}}, K): integer
Type Parameters
KV
{{K, V}}K
integer