Random

@Serializable
@SerialName(value = "random")
data class Random(val weights: Map<WeatherType, Int> = DEFAULT_WEIGHTS, val intervalHours: Int = 8, val offsetHours: Int = 0, val maxInclination: Int = 30, val seed: String = "pepper") : WeatherPolicy

内蔵カレンダー (決定的ノイズ) で天候を決定し、ワールドへ適用させる。

Constructors

Link copied to clipboard
constructor(weights: Map<WeatherType, Int> = DEFAULT_WEIGHTS, intervalHours: Int = 8, offsetHours: Int = 0, maxInclination: Int = 30, seed: String = "pepper")

Properties

Link copied to clipboard

天候が切り替わる間隔 (時間)

Link copied to clipboard

ノイズの最大傾斜 (1..100)。大きいほど天候が急に変わる

Link copied to clipboard

切り替えタイミングのずらし幅 (時間)。負の値も可

Link copied to clipboard

ノイズのハッシュに混ぜるシード文字列

Link copied to clipboard

天候ごとの重み。マップの順に累積して抽選する