엔진: 화면에 보낼 마감(publicDeadline)을 방 안 시간 초과와 분리 (아발론 제외 부분)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -86,6 +86,12 @@ export interface GameDefinition<S, A, V, O> {
|
||||
* pulls forward to the end of the grace period). Real-time games use it to keep a minimum pace.
|
||||
*/
|
||||
timeoutNotBefore?(state: S): number | null;
|
||||
/**
|
||||
* Deadline shown to clients (`state.deadline`), given the room's effective one (the phase clock, pulled forward to
|
||||
* the end of the grace period of an away timed player). Default: the effective one. Games where *who* is timed is a
|
||||
* secret (아발론's assassin) hide that pull-forward; the room still times out on the effective deadline.
|
||||
*/
|
||||
publicDeadline?(state: S, effective: number | null): number | null;
|
||||
/** Grace period (ms) for disconnected timed players in this state, overriding the room's `graceSec`; null = room default. */
|
||||
disconnectGraceMs?(state: S): number | null;
|
||||
onTimeout(state: S, player: PlayerId): A;
|
||||
|
||||
Reference in New Issue
Block a user