TeleportRequest

data class TeleportRequest(val requesterId: UUID, val requesterName: String, val targetId: UUID, val requesterLocation: Location, val cost: ULong, val createdAt: Instant = Instant.now())

プレイヤー間テレポートリクエストのモデル。 メモリ内で管理され、タイムアウト後は自動的に削除されます。

Constructors

Link copied to clipboard
constructor(requesterId: UUID, requesterName: String, targetId: UUID, requesterLocation: Location, cost: ULong, createdAt: Instant = Instant.now())

Properties

Link copied to clipboard
val cost: ULong
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val requesterLocation: Location
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun isExpired(timeoutSeconds: Long = 60): Boolean

リクエストが期限切れかどうかを判定します。

Link copied to clipboard
fun remainingSeconds(timeoutSeconds: Long = 60): Long

リクエストの残り有効時間(秒)を取得します。