Skip to content

addSeat

addSeat<T>(order, seat, index?): void

Defined in: src/modules/turn-based/turn-order.ts:92

Insert seat at index (default: last; clamped, fractions truncated). The active seat keeps the turn, and the counters are untouched. Adding to an empty order makes the new seat active.

T

TurnOrder<T>

T

number = order.seats.length

void