OpenTTD Source 20241224-master-gee860a5c8e
GameCreationSettings Struct Reference

Settings related to the creation of games. More...

#include <settings_type.h>

Data Fields

uint32_t generation_seed
 noise seed for world generation
 
TimerGameCalendar::Year starting_year
 starting date
 
TimerGameCalendar::Year ending_year
 scoring end date
 
uint8_t map_x
 X size of map.
 
uint8_t map_y
 Y size of map.
 
uint8_t land_generator
 the landscape generator
 
uint8_t oil_refinery_limit
 distance oil refineries allowed from map edge
 
uint8_t snow_line_height
 the configured snow line height (deduced from "snow_coverage")
 
uint8_t snow_coverage
 the amount of snow coverage on the map
 
uint8_t desert_coverage
 the amount of desert coverage on the map
 
uint8_t heightmap_height
 highest mountain for heightmap (towards what it scales)
 
uint8_t tgen_smoothness
 how rough is the terrain from 0-3
 
uint8_t tree_placer
 the tree placer algorithm
 
uint8_t heightmap_rotation
 rotation director for the heightmap
 
uint8_t se_flat_world_height
 land height a flat world gets in SE
 
uint8_t town_name
 the town name generator used for town names
 
uint8_t landscape
 the landscape we're currently in
 
uint8_t water_borders
 bitset of the borders that are water
 
uint16_t custom_town_number
 manually entered number of towns
 
uint16_t custom_industry_number
 manually entered number of industries
 
uint8_t variety
 variety level applied to TGP
 
uint8_t custom_terrain_type
 manually entered height for TGP to aim for
 
uint8_t custom_sea_level
 manually entered percentage of water in the map
 
uint8_t min_river_length
 the minimum river length
 
uint8_t river_route_random
 the amount of randomicity for the route finding
 
uint8_t amount_of_rivers
 the amount of rivers
 

Detailed Description

Settings related to the creation of games.

Definition at line 351 of file settings_type.h.

Field Documentation

◆ amount_of_rivers

uint8_t GameCreationSettings::amount_of_rivers

◆ custom_industry_number

uint16_t GameCreationSettings::custom_industry_number

◆ custom_sea_level

uint8_t GameCreationSettings::custom_sea_level

◆ custom_terrain_type

uint8_t GameCreationSettings::custom_terrain_type

◆ custom_town_number

uint16_t GameCreationSettings::custom_town_number

◆ desert_coverage

uint8_t GameCreationSettings::desert_coverage

◆ ending_year

TimerGameCalendar::Year GameCreationSettings::ending_year

scoring end date

Definition at line 354 of file settings_type.h.

Referenced by AfterLoadGame().

◆ generation_seed

◆ heightmap_height

uint8_t GameCreationSettings::heightmap_height

◆ heightmap_rotation

uint8_t GameCreationSettings::heightmap_rotation

◆ land_generator

◆ landscape

uint8_t GameCreationSettings::landscape

◆ map_x

◆ map_y

◆ min_river_length

uint8_t GameCreationSettings::min_river_length

the minimum river length

Definition at line 375 of file settings_type.h.

Referenced by CreateRivers().

◆ oil_refinery_limit

uint8_t GameCreationSettings::oil_refinery_limit

distance oil refineries allowed from map edge

Definition at line 358 of file settings_type.h.

Referenced by CheckNewIndustry_OilRefinery(), and CheckNewIndustry_OilRig().

◆ river_route_random

uint8_t GameCreationSettings::river_route_random

the amount of randomicity for the route finding

Definition at line 376 of file settings_type.h.

◆ se_flat_world_height

uint8_t GameCreationSettings::se_flat_world_height

◆ snow_coverage

uint8_t GameCreationSettings::snow_coverage

◆ snow_line_height

uint8_t GameCreationSettings::snow_line_height

the configured snow line height (deduced from "snow_coverage")

Definition at line 359 of file settings_type.h.

Referenced by _GenerateWorld(), AfterLoadGame(), CalculateSnowLine(), GetSnowLine(), HighestSnowLine(), and LowestSnowLine().

◆ starting_year

◆ tgen_smoothness

uint8_t GameCreationSettings::tgen_smoothness

◆ town_name

uint8_t GameCreationSettings::town_name

◆ tree_placer

uint8_t GameCreationSettings::tree_placer

the tree placer algorithm

Definition at line 364 of file settings_type.h.

Referenced by GenerateTrees(), and PlaceTreesRandomly().

◆ variety

uint8_t GameCreationSettings::variety

◆ water_borders

uint8_t GameCreationSettings::water_borders

The documentation for this struct was generated from the following file: