WeatherTableEntry ​
Inherits: Resource
One line of a weather table: a weather (or a clear sky) with how likely it is and how long it lasts when it is picked. See docs: World > Weather tables.
Properties ​
int | weather_config_id | 0 |
float | weight | 1.0 |
float | min_minutes | 5.0 |
float | max_minutes | 15.0 |
Methods ​
WeatherConfig | get_weather() |
float | roll_seconds( rng: RandomNumberGenerator ) |
String | describe() |
PackedStringArray | validate() |
Property descriptions ​
int weather_config_id = 0 ​
The weather of this line: the id of a Weather config of the project (World Configs > Weather). 0 = a clear sky
float weight = 1.0 ​
How likely the line is compared with the others of the table (a line of 3 comes up three times as often as a line of 1; 0 = never)
float min_minutes = 5.0 ​
The shortest time it lasts when it is picked, in minutes of play
float max_minutes = 15.0 ​
The longest time it lasts when it is picked, in minutes of play
Method descriptions ​
WeatherConfig get_weather() ​
The weather of this line (null = a clear sky, or a weather that is gone)
float roll_seconds( rng: RandomNumberGenerator ) ​
How long this line lasts when it is picked now, in seconds of play
String describe() ​
One line that says what the entry is (the title of its container in the editor)
PackedStringArray validate() ​
The warnings of this line