summaryrefslogtreecommitdiff
path: root/types.d.ts
diff options
context:
space:
mode:
authorFrans Bongers <fransbongers@franss-mbp.home>2025-02-16 19:51:08 +0100
committerFrans Bongers <fransbongers@franss-mbp.home>2025-02-16 19:53:04 +0100
commitdbd1660fc0f297d2b7b571af6038e53d6596161c (patch)
tree9966947e32fadfd457d6c227159b7ba3165a263b /types.d.ts
parente798a3c84d9c50e6723ab0fd7f22a9328a81199e (diff)
downloadland-and-freedom-dbd1660fc0f297d2b7b571af6038e53d6596161c.tar.gz
initial multiactive updates
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
}