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.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”TurnOrder<T>
T
index?
Section titled “index?”number = order.seats.length
Returns
Section titled “Returns”void