RuneCore
Toggle table of contents
0.1.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
RuneCore
RuneCore
/
org.lyralis.runeCore.domain.teleport
/
TeleportRequest
Teleport
Request
data
class
TeleportRequest
(
val
requesterId
:
UUID
,
val
requesterName
:
String
,
val
targetId
:
UUID
,
val
requesterLocation
:
Location
,
val
cost
:
ULong
,
val
createdAt
:
Instant
=
Instant.now()
)
プレイヤー間テレポートリクエストのモデル。 メモリ内で管理され、タイムアウト後は自動的に削除されます。
Members
Constructors
Teleport
Request
Link copied to clipboard
constructor
(
requesterId
:
UUID
,
requesterName
:
String
,
targetId
:
UUID
,
requesterLocation
:
Location
,
cost
:
ULong
,
createdAt
:
Instant
=
Instant.now()
)
Properties
cost
Link copied to clipboard
val
cost
:
ULong
created
At
Link copied to clipboard
val
createdAt
:
Instant
requester
Id
Link copied to clipboard
val
requesterId
:
UUID
requester
Location
Link copied to clipboard
val
requesterLocation
:
Location
requester
Name
Link copied to clipboard
val
requesterName
:
String
target
Id
Link copied to clipboard
val
targetId
:
UUID
Functions
is
Expired
Link copied to clipboard
fun
isExpired
(
timeoutSeconds
:
Long
=
60
)
:
Boolean
リクエストが期限切れかどうかを判定します。
remaining
Seconds
Link copied to clipboard
fun
remainingSeconds
(
timeoutSeconds
:
Long
=
60
)
:
Long
リクエストの残り有効時間(秒)を取得します。