summaryrefslogtreecommitdiff
path: root/types.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'types.d.ts')
-rw-r--r--types.d.ts6
1 files changed, 3 insertions, 3 deletions
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 = 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
}