WeatherConfig

@Serializable
data class WeatherConfig(val weight: Map<WeatherType, Int> = mapOf( WeatherType.SUNNY to 4, WeatherType.CLOUDY to 1, WeatherType.RAINY to 2, WeatherType.THUNDERSTORM to 1, ), val offset: Int = 0, val interval: Int = 8, val maxInclination: Int = 30)

天候変化の設定を保持するデータクラス

Constructors

Link copied to clipboard
constructor(weight: Map<WeatherType, Int> = mapOf( WeatherType.SUNNY to 4, WeatherType.CLOUDY to 1, WeatherType.RAINY to 2, WeatherType.THUNDERSTORM to 1, ), offset: Int = 0, interval: Int = 8, maxInclination: Int = 30)

Properties

Link copied to clipboard
val interval: Int = 8

天気の更新間隔(時間)

Link copied to clipboard

天気の変化の最大傾斜(度)

Link copied to clipboard
val offset: Int = 0

天気の更新タイミングのオフセット(時間)

Link copied to clipboard

各天候タイプの出現確率の重み付け