From dbd1660fc0f297d2b7b571af6038e53d6596161c Mon Sep 17 00:00:00 2001 From: Frans Bongers Date: Sun, 16 Feb 2025 19:51:08 +0100 Subject: initial multiactive updates --- types.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'types.d.ts') diff --git a/types.d.ts b/types.d.ts index b4ef5f0..6d0a31a 100644 --- a/types.d.ts +++ b/types.d.ts @@ -20,7 +20,7 @@ export interface Game { // TODO: why is this needed? [index: number]: any; // RTT - active: Player | 'None' | null; + active: Player | Player[] | 'None' | null; log: string[]; seed: number; state: string | null; @@ -78,7 +78,7 @@ export interface Game { export interface View { engine: Game['engine']; log: number | string[]; - active?: string | null; + active: string | string[] | null; prompt: string | null; state: Game['state']; actions?: any; @@ -131,7 +131,7 @@ export interface SeqNode { export interface LeafNode { t: 'l'; s: string; // State - p: FactionId | 'None'; // Player + p: FactionId | 'None' | 'all' | FactionId[]; // Player a?: T; // args r?: 0 | 1; // 1 if resolved } -- cgit v1.2.3