diff options
Diffstat (limited to 'types.d.ts')
-rw-r--r-- | types.d.ts | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 = any> { t: 'l'; s: string; // State - p: FactionId | 'None'; // Player + p: FactionId | 'None' | 'all' | FactionId[]; // Player a?: T; // args r?: 0 | 1; // 1 if resolved } |