TeleportCostCalculator

Constructors

Link copied to clipboard
constructor(config: TeleportCostConfig)

Functions

Link copied to clipboard
fun calculateCost(distance: Double, isDifferentWorld: Boolean): ULong

距離から料金を算出します(ワールド間移動かどうかは呼び出し元で判断)。

fun calculateCost(from: Location, to: Location): ULong

2地点間のテレポート料金を計算します。