@adatechnology/game-interactables 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -191,6 +191,23 @@ the hand holds goes in when the access is open and it fits the inside, `fitsInVo
191
191
  and `relieve` (a basin soiled, washed by the flush whose fixture `cleans` it). `state()` says what to draw (screens on and their channel, bowl levels, soil,
192
192
  fires); `createControlsView` of game-interactables-three draws it.
193
193
 
194
+ ### A basin with a trap (a toilet: `BasinSpec.drain`, `createBasinDrain`)
195
+
196
+ A basin with a `drain` runs as a real siphon toilet. The still water stands at the `weir`; the flush pours the cistern in over `FLUSH_POUR_SECONDS`, the level
197
+ rises over the weir and `prime` metres over it the siphon primes and pulls the bowl down, swirling, until air breaks it below the weir; the refill tube brings it
198
+ back while the cistern fills again over `refill` seconds (a flush before that gives only what it has). What is in the bowl rides the water: round with it by
199
+ the litres moved (`BasinDrainState.turned`), down to the trap by the litres the siphon pulls. A thing whose second size is wider than `trap` lodges there; more
200
+ soft waste than one flush `carries` packs there. Either clogs it (`clog`, `cause`), and the next flush rises over the rim: the host spills what goes over it
201
+ (`ItemControlsHost.spill`, sewage when the bowl is dirty). The world keeps each drain (`World.drain`), so `serialize` and `load` keep the water, the clog and what is in the trap. The `plunge` use (an item in the hand that works as `tool`, by its catalogue `tools` handed on in `ControlledHand.tools`, never by its id) breaks a packed clog in a few strokes and pulls a
202
+ lodged thing back up into the bowl. `relieve` on such a basin depends on the body (`ItemControlsHost.body`): a man pees standing at `stand` with the lid
203
+ (`cover`) and the seat ring (`ring`) raised, a woman pees and anyone poos seated on `seat`; what the body leaves lands in the water as it ends. Each answers what
204
+ the body does (`ItemControlResult.body`). The object runs the body's time itself (`createUseBody`): it asks the host's body whether it can take the pose
205
+ (`ControlledBody.blocked`) before it offers the use, takes it (`begin`), tells it the time each step (`step`) and lets it go (`end`), also when the object leaves
206
+ the world; relieving oneself needs free hands, by the rule the sinks ask (`handsAreFree`: `ItemControlsHost.handsFree`, else an empty hand). The times of the drain run here too: what goes over the rim is gathered a quarter-second before the host spills it,
207
+ and what the trap swallows goes down over half a second (`swallow` with its progress, at 1 out of the world). The host only shows: the bowl's litres
208
+ (`setBasin`), the loose things in the bowl (`looseInside`), the spill and the swallow. A host that lacks one of them, or lends no body, gets the uses refused with
209
+ the reason (`host_lacks`, `needs_body`), never answered as done. `state().drains` says the level, phase, swirl, clog and contents of each, `state().body` the pose running.
210
+
194
211
  ## Wires strung between two points (`solveSpan`)
195
212
 
196
213
  A wire with a `span` (`ObjectSpec.wires[].span`: the conductor's material and the section that carries the pull) is strung between two points: the drop of a
package/dist/index.d.ts CHANGED
@@ -1,6 +1,120 @@
1
- import { BodyGesture, CarryHands, Thumbnail, ItemControls, ItemControlsHost, ReachedItem } from '@adatechnology/game-contracts';
1
+ import { ItemTool, BodyGesture, CarryHands, Thumbnail, ControlBodyAction, ItemControlsHost, ItemControlResult, ItemControls, ReachedItem } from '@adatechnology/game-contracts';
2
2
  import { BodyId, SeamWorld, JointId, Vec3 as Vec3$1, Quat } from '@adatechnology/game-physics';
3
3
 
4
+ /**
5
+ * The water of a basin with a trap (`BasinSpec.drain`, a toilet's bowl and siphon), as a real one runs: the still water stands at the weir; a flush pours the
6
+ * cistern's water in from under the rim, the level rises over the weir and, `prime` metres over it, the siphon primes and pulls the bowl down, swirling, until air
7
+ * breaks it below the weir; the refill tube then brings the water back to the weir while the cistern fills. What lies in the bowl rides the siphon's swirl down to the
8
+ * trap: a thing whose second size is wider than the trap lodges there, more soft waste than one flush carries packs there; either clogs the trap, and the next flush
9
+ * rises over the rim instead of going down (the litres over it come out as `spilled`). A plunger's strokes break a packed clog and pull a lodged thing back up.
10
+ * Pure: no three.js, no clock of its own (the host's `dt`), deterministic.
11
+ */
12
+
13
+ type BasinContentKind = 'urine' | 'feces' | 'paper' | 'object';
14
+ /** Where a thing in the bowl is: `afloat` in the bowl, `going` down the swirl to the trap, `lodged` in the trap, `gone` through it. */
15
+ type BasinContentStage = 'afloat' | 'going' | 'lodged' | 'gone';
16
+ interface BasinContent {
17
+ readonly id: string;
18
+ readonly kind: BasinContentKind;
19
+ readonly kg: number;
20
+ /** Width, height and depth, metres. */
21
+ readonly size: readonly [number, number, number];
22
+ /** The world's id of a loose thing (an object dropped in the bowl). */
23
+ readonly objectId?: string;
24
+ readonly stage: BasinContentStage;
25
+ /** Around the bowl's axis, radians, and out from it (0 the axis to 1 the wall at the water's level). */
26
+ readonly angle: number;
27
+ readonly radius: number;
28
+ /** 0 at the water's surface to 1 at the trap. */
29
+ readonly depth: number;
30
+ }
31
+ type DrainPhase = 'still' | 'filling' | 'siphon' | 'refill';
32
+ type ClogCause = 'none' | 'object' | 'packed';
33
+ interface BasinDrainState {
34
+ readonly litres: number;
35
+ /** Metres of water over the basin's floor. */
36
+ readonly level: number;
37
+ readonly phase: DrainPhase;
38
+ /** How hard the water turns, 0 still to 1 the full siphon. */
39
+ readonly swirl: number;
40
+ /** Radians the water has turned in the bowl since it was made: the rim's jets and the siphon turn it by the litres they move. */
41
+ readonly turned: number;
42
+ /** 0 a clear trap to 1 shut. */
43
+ readonly clog: number;
44
+ readonly cause: ClogCause;
45
+ /** How full the cistern is, 0 to 1. */
46
+ readonly cistern: number;
47
+ readonly contents: readonly BasinContent[];
48
+ }
49
+ /** What one step did beyond the state: litres that went over the rim and the loose things that went down the trap. The drain reuses it: read it before the next step. */
50
+ interface BasinDrainStep {
51
+ readonly spilled: number;
52
+ readonly swallowed: readonly string[];
53
+ }
54
+ interface BasinContentInput {
55
+ readonly kind: BasinContentKind;
56
+ readonly kg: number;
57
+ readonly size: readonly [number, number, number];
58
+ readonly objectId?: string;
59
+ /** Litres of liquid it brings (urine). */
60
+ readonly litres?: number;
61
+ }
62
+ interface BasinDrain {
63
+ /** Pours `litres` of the cistern's water in over the next seconds (the flush); the cistern gives only what it has. Returns the litres poured. */
64
+ flush(litres: number): number;
65
+ /** Something lands in the bowl: urine adds its litres to the water, a solid floats in it until the siphon takes it. */
66
+ add(content: BasinContentInput): void;
67
+ /** One push and pull of a plunger: it needs the cup under water. Returns false when it found no water to work. */
68
+ plunge(): boolean;
69
+ update(dt: number): BasinDrainStep;
70
+ state(): BasinDrainState;
71
+ /** What a step reads of the state without building it: the litres, the level in metres, the clog and its cause. */
72
+ litres(): number;
73
+ level(): number;
74
+ clog(): number;
75
+ cause(): ClogCause;
76
+ /** Whether the water holds waste (urine, feces, paper), not only loose things: what goes over the rim is sewage. */
77
+ dirty(): boolean;
78
+ /** Everything the drain is now, as plain JSON (`WorldState`): the water, the cistern, the clog and what is in the bowl or stuck in the trap. */
79
+ save(): BasinDrainSave;
80
+ /** Puts the drain back where `save` found it. */
81
+ restore(saved: BasinDrainSave): void;
82
+ }
83
+ /** The water of a basin with a trap as a save keeps it (`BasinDrain.save`). */
84
+ interface BasinWater {
85
+ litres: number;
86
+ phase: DrainPhase;
87
+ swirl: number;
88
+ turned: number;
89
+ clog: number;
90
+ cause: ClogCause;
91
+ cistern: number;
92
+ /** Seconds the flush still pours, and its litres a second. */
93
+ pouring: number;
94
+ pourRate: number;
95
+ /** Kg of soft waste the siphon of this flush has carried through. */
96
+ carried: number;
97
+ }
98
+ /** A thing in the bowl as a save keeps it: what the state shows plus where it came in and how far down the siphon has taken it. */
99
+ type BasinContentSave = BasinContent & {
100
+ /** Where it was round the axis when it came, and out from it. */
101
+ readonly start: number;
102
+ readonly startRadius: number;
103
+ /** 0 at the surface to 1 at the trap: the share of `TRAP_LITRES` the siphon has pulled since it took the thing. */
104
+ readonly travel: number;
105
+ };
106
+ interface BasinDrainSave {
107
+ readonly water: Readonly<BasinWater>;
108
+ /** How many things have come into the bowl: the next one's id and place. */
109
+ readonly serial: number;
110
+ readonly contents: readonly BasinContentSave[];
111
+ }
112
+ /** Seconds a flush pours its water in. */
113
+ declare const FLUSH_POUR_SECONDS = 3;
114
+ /** Over this the trap counts as clogged. */
115
+ declare const CLOGGED = 0.5;
116
+ declare function createBasinDrain(basin: BasinSpec, drain: DrainSpec): BasinDrain;
117
+
4
118
  /** A movable part (door, drawer, lid) moved by a physics engine instead of by `t` stepping at `Motion.speed`. */
5
119
  interface PartDriver {
6
120
  /** Starts going to `target` (t, 0..1) at the part's speed, from wherever the part is (the world calls it when the target changed). */
@@ -382,6 +496,27 @@ interface BasinSpec {
382
496
  shape?: 'box' | 'round';
383
497
  /** What a body leaves in it (a toilet's): the `relieve` uses soil it, the flush that `cleans` it washes it. */
384
498
  soils?: boolean;
499
+ /** The trap under it (a toilet's siphon): its water stands at the weir, a flush primes the siphon that pulls it and what lies in it down, and what does not pass clogs it. */
500
+ drain?: DrainSpec;
501
+ }
502
+ /**
503
+ * A basin's trap (`BasinSpec.drain`), as a real toilet's: the still water stands at the top of its weir; water over the weir runs down it, and once it rises
504
+ * `prime` metres over it the siphon primes and pulls the bowl down until air breaks it. What lies in the bowl goes with the siphon's water: a thing whose second
505
+ * size is wider than the trap lodges in it, and more soft waste than one flush carries packs in it. Either clogs it, and water then rises instead of going.
506
+ */
507
+ interface DrainSpec {
508
+ /** Metres over the basin's floor (`from[1]`) where the still water stands: the top of the weir. */
509
+ weir: number;
510
+ /** Diameter of the trap's narrowest passage, metres (about 0.05 in a Brazilian toilet). */
511
+ trap: number;
512
+ /** Kg of soft waste (feces, paper) one flush carries through the trap; more at once packs in it. */
513
+ carries: number;
514
+ /** Litres a second the primed siphon pulls through a clear trap. */
515
+ siphon: number;
516
+ /** Metres over the weir the water must rise to prime the siphon. */
517
+ prime: number;
518
+ /** Seconds the cistern takes to fill again after a flush; a flush before that gives only the water it has. */
519
+ refill: number;
385
520
  }
386
521
  /** A bowl of food or water (a dog's), filled from the hand. Object-local: the middle of its floor, the inside radius and depth. */
387
522
  interface BowlSpec {
@@ -404,6 +539,7 @@ interface BowlSpec {
404
539
  * - `empty`: everything in the container goes out (a bin taken to the street).
405
540
  * - `fill`: the bowl is filled from the hand (food it accepts, or water poured).
406
541
  * - `relieve`: a body leaves `kind` in the basin (a toilet), which a flush washes away.
542
+ * - `plunge`: the plunger in the hand (`tool`, what the hand's item works as: `ControlledHand.tools`) works the basin's clogged trap from `stand` for `seconds`.
407
543
  */
408
544
  type UseSpec = {
409
545
  id: string;
@@ -433,6 +569,24 @@ type UseSpec = {
433
569
  basin: string;
434
570
  kind: 'urine' | 'feces';
435
571
  label: string;
572
+ /** Seconds the body takes. Default 8. */
573
+ seconds?: number;
574
+ /** The lid part, raised for any use. */
575
+ cover?: string;
576
+ /** The seat ring part, raised to pee standing and lowered to sit. */
577
+ ring?: string;
578
+ /** The seat (`SeatSpec.id`) a seated use sits on. */
579
+ seat?: string;
580
+ /** Object-local point under the feet of a body peeing standing. */
581
+ stand?: Vec3;
582
+ } | {
583
+ id: string;
584
+ do: 'plunge';
585
+ basin: string;
586
+ label: string;
587
+ tool: ItemTool;
588
+ seconds: number;
589
+ stand: Vec3;
436
590
  } | WashUseSpec | DrinkUseSpec;
437
591
  /**
438
592
  * What a use needs at hand (`WashUseSpec.needs`, `DrinkUseSpec.needs`): each entry is one thing it needs, a catalogue id or a list of ids any of which does (`['cup',
@@ -473,23 +627,33 @@ interface WashUseSpec {
473
627
  readonly scrubSeconds?: number;
474
628
  }
475
629
  /**
476
- * Drinking from a fixture (`do: 'drink'`): the hand takes the vessel it needs (a cup in the hand or within reach), holds it under the fixture while it runs until it is
477
- * nearly full (`fillClip`), the fixture is closed, the vessel is drunk from (`clip`) and put back where it was.
630
+ * Drinking at a fixture (`do: 'drink'`), one of two ways:
631
+ * - `from: 'vessel'`: with the vessel the player holds (whatever the host says holds liquid, `ItemControlsHost.vesselAt`; one on the counter is taken first, as anything
632
+ * is): the fixture is opened, the vessel held under it fills nearly full (`fillClip`), the fixture is closed and the vessel is drunk from (`clip`).
633
+ * - `from: 'hands'`: with both hands free: the fixture is opened, the body bends over it and drinks the water caught in its cupped hands (`clip`), the rest running off
634
+ * through the fingers, and the fixture is closed.
478
635
  */
479
636
  interface DrinkUseSpec {
480
637
  readonly id: string;
481
638
  readonly do: 'drink';
639
+ readonly from: 'vessel' | 'hands';
482
640
  readonly fixture: string;
483
- readonly needs: readonly UseNeed[];
484
641
  readonly clip: string;
485
642
  readonly label: string;
486
- /** The hand use while it fills. Default `fill_cup`. */
643
+ /** The hand use while the vessel fills. Default `fill_cup`. */
487
644
  readonly fillClip?: string;
488
645
  /** Default true. */
489
646
  readonly opensFixture?: boolean;
490
- /** Litres drunk at most (what is left stays in the vessel). Default `DRINK_LITRES`. */
647
+ /** Litres drunk at most (what is left stays in the vessel). Default `DRINK_LITRES`, or `DRINK_HANDS_LITRES` from the hands. */
491
648
  readonly litres?: number;
492
649
  }
650
+ /**
651
+ * A body relieving itself in a toilet's basin (`UseSpec` `relieve`). A man pees standing at `stand` facing the bowl, with the lid (`cover`) and the seat ring
652
+ * (`ring`) raised; a woman pees, and anyone poos, sitting on `seat` with the lid up and the ring down. What it leaves lands in the basin as the body ends.
653
+ */
654
+ type RelieveUseSpec = Extract<UseSpec, {
655
+ do: 'relieve';
656
+ }>;
493
657
  interface MirrorSpec {
494
658
  id: string;
495
659
  center: Vec3;
@@ -968,7 +1132,9 @@ interface World {
968
1132
  /** Localized text. */
969
1133
  t(key: string, vars?: Record<string, string | number>): string;
970
1134
  setLocale(locale: string): void;
971
- /** Plain JSON state (parts, contents, power, fuel, water, seats) for saves and LAN sync. */
1135
+ /** The water of a basin with a trap (`BasinSpec.drain`, a toilet's bowl) of an object: the world keeps it, so a save keeps the clog and what is in the bowl. */
1136
+ drain(objectId: string, basin: string): BasinDrain | undefined;
1137
+ /** Plain JSON state (parts, contents, power, fuel, water, seats, the basins' drains) for saves and LAN sync. */
972
1138
  serialize(): WorldState;
973
1139
  load(state: WorldState): void;
974
1140
  }
@@ -992,6 +1158,7 @@ interface WorldState {
992
1158
  tanks: Record<string, number>;
993
1159
  fixtures: Record<string, boolean>;
994
1160
  hp: Record<string, number>;
1161
+ drains?: Record<string, BasinDrainSave>;
995
1162
  }>;
996
1163
  grid: boolean;
997
1164
  /** The main breaker (`World.power.main`); absent in a state saved before it existed, read as on. */
@@ -1226,6 +1393,65 @@ declare function endsMember(member: CastBox, end: CastBox): boolean;
1226
1393
  /** Whether `other` is cast with the stretch `member`: a collar round it, or a foot or a cap on its end. */
1227
1394
  declare function castWithMember(member: CastBox, other: CastBox): boolean;
1228
1395
 
1396
+ /**
1397
+ * What the body does while an object's use runs (`ControlBodyAction`, CLAUDE.md §18), timed here so every host runs it the same: the body lent by the host
1398
+ * (`ItemControlsHost.body`) is asked whether it can take the pose before the use is offered, takes it when the use runs, is told the time once a step, and is let go
1399
+ * when the seconds are over or the object leaves the world. A host without a body refuses the use; it never answers it as done.
1400
+ */
1401
+
1402
+ /** The pose running now, as the object's state shows it. */
1403
+ interface UseBodyPose {
1404
+ readonly pose: ControlBodyAction['pose'];
1405
+ readonly time: number;
1406
+ readonly progress: number;
1407
+ }
1408
+ interface UseBody {
1409
+ /** Why the host's body cannot take `action` now (a reason key of the strings: `needs_body`, `body_no_seat`...), or null when it can. */
1410
+ blocked(action: ControlBodyAction, host: ItemControlsHost): string | null;
1411
+ /** The body takes `action`; false when it could not (nothing else of the use should happen then). */
1412
+ begin(action: ControlBodyAction, host: ItemControlsHost): boolean;
1413
+ update(dt: number): void;
1414
+ /** Lets the body go at once (the object left the world). */
1415
+ end(): void;
1416
+ readonly pose: UseBodyPose | null;
1417
+ }
1418
+ declare function createUseBody(): UseBody;
1419
+
1420
+ type PlungeUseSpec = Extract<UseSpec, {
1421
+ do: 'plunge';
1422
+ }>;
1423
+ type Soil = 'clean' | 'urine' | 'feces';
1424
+ interface DrainUses {
1425
+ /** Whether the basin has a trap these uses run. */
1426
+ has(basin: string): boolean;
1427
+ /** The first of what these uses need of the host that it lacks (`setBasin`, `spill`, `looseInside`, `swallow`), or null when it has them all. */
1428
+ hostBlocked(host: ItemControlsHost): string | null;
1429
+ /** What the body does to relieve itself (standing by its sex, or seated); null when the host lends no body. */
1430
+ relieveBody(use: RelieveUseSpec, host: ItemControlsHost): ControlBodyAction | null;
1431
+ /** The use runs, the body already in its pose: the lid and the ring set, and what the body leaves on its way to the water. */
1432
+ relieve(use: RelieveUseSpec, host: ItemControlsHost, body: ControlBodyAction): ItemControlResult;
1433
+ /** Why the plunger cannot be worked now, or null when it can. */
1434
+ plungeBlocked(use: PlungeUseSpec, host: ItemControlsHost): string | null;
1435
+ plungeBody(use: PlungeUseSpec): ControlBodyAction;
1436
+ plunge(use: PlungeUseSpec, body: ControlBodyAction): ItemControlResult;
1437
+ /** A fixture ran (a flush): its basin takes the cistern's water. False when no trap of these uses takes it. */
1438
+ flushed(fixture: string, host: ItemControlsHost | null): boolean;
1439
+ update(dt: number, host: ItemControlsHost | null): void;
1440
+ /** The object leaves the world: what was going down the trap is gone at once. */
1441
+ dispose(host: ItemControlsHost | null): void;
1442
+ /** What the body left in the basin and is still in the water. */
1443
+ soil(basin: string): Soil;
1444
+ state(): Readonly<Record<string, BasinDrainState>>;
1445
+ }
1446
+ interface DrainUsesOptions {
1447
+ readonly spec: ObjectSpec;
1448
+ /** The world that keeps the basins' water (`World.drain`), so a save keeps it, and the object's id there. */
1449
+ readonly world: World;
1450
+ readonly objectId: string;
1451
+ readonly t: (key: string, vars?: Record<string, string | number>) => string;
1452
+ }
1453
+ declare function createDrainUses(options: DrainUsesOptions): DrainUses;
1454
+
1229
1455
  /**
1230
1456
  * What an object does with the player's hand or on its own time (`ObjectSpec.uses`), for `createObjectControls`: a device's program that runs for its seconds, what
1231
1457
  * the hand holds put inside when it fits, a container emptied, a bowl filled from the hand, a basin soiled and washed by its flush. The rules are the data's: the
@@ -1237,12 +1463,13 @@ declare function castWithMember(member: CastBox, other: CastBox): boolean;
1237
1463
  * the same point the world puts the device's own interaction at. Read from the spec, never from the id an interaction happens to get.
1238
1464
  */
1239
1465
  declare function devicePointOf(spec: ObjectSpec, device: string): Vec3 | undefined;
1240
- /** What a basin holds, worst last: a flush washes it back to clean. */
1241
- type Soil = 'clean' | 'urine' | 'feces';
1466
+
1242
1467
  interface UsesState {
1243
1468
  /** kg of food or litres of water in each bowl. */
1244
1469
  readonly bowls: Readonly<Record<string, number>>;
1245
1470
  readonly soil: Readonly<Record<string, Soil>>;
1471
+ /** The water of each basin with a trap (a toilet's bowl): its level, swirl, clog and what is in it. */
1472
+ readonly drains: Readonly<Record<string, BasinDrainState>>;
1246
1473
  /** The program running, with its seconds left. */
1247
1474
  readonly program: {
1248
1475
  readonly use: string;
@@ -1251,6 +1478,8 @@ interface UsesState {
1251
1478
  } | null;
1252
1479
  /** The use at the water running now (`wash`, `drink`), by id. */
1253
1480
  readonly routine: string | null;
1481
+ /** What the body does for the use running now (seated on a toilet, working a plunger), with its time; null when nothing. */
1482
+ readonly body: UseBodyPose | null;
1254
1483
  }
1255
1484
 
1256
1485
  /**
@@ -1285,6 +1514,10 @@ interface ObjectControlsState extends UsesState {
1285
1514
  }
1286
1515
  interface ObjectControls extends ItemControls {
1287
1516
  state(): ObjectControlsState;
1517
+ /** What the object is now as plain JSON (its world's `serialize`: parts, devices, water, a toilet's drain), for a save. */
1518
+ serialize(): WorldState;
1519
+ /** Puts the object back where `serialize` found it. */
1520
+ load(state: WorldState): void;
1288
1521
  }
1289
1522
  declare function createObjectControls(options: ObjectControlsOptions): ObjectControls;
1290
1523
 
@@ -1306,6 +1539,10 @@ declare const DRINK_LITRES = 0.25;
1306
1539
  declare const FILL_SHARE = 0.85;
1307
1540
  /** Litres a mouth drinks per second. */
1308
1541
  declare const DRINK_LPS = 0.06;
1542
+ /** Litres drunk from cupped hands under a tap: three or four handfuls of some 30 ml. */
1543
+ declare const DRINK_HANDS_LITRES = 0.12;
1544
+ /** Litres a mouth takes from cupped hands per second: a handful a second, slower than from a glass. */
1545
+ declare const DRINK_HANDS_LPS = 0.03;
1309
1546
  /** Seconds the hand takes to reach the tap's lever, and to put a thing down. */
1310
1547
  declare const REACH_SECONDS = 0.6;
1311
1548
  /** Seconds the water may take to start running after the lever opens (the fixture flows from the next step) before the tap counts as dry. */
@@ -1353,10 +1590,10 @@ declare function createSinkRoutines(options: SinkUsesOptions): SinkRoutines;
1353
1590
  /**
1354
1591
  * What the player's body does for each interaction and use of an object (CLAUDE.md §18: every action has a body animation): the gesture the host plays with the free hand
1355
1592
  * (`ItemControl.gesture`, `createGestureTimeline` of game-player) before the object reacts. Null: the host plays the action with a body move of its own (a leaf opened by
1356
- * the door code, a seat sat on, an item taken by the take sequence) or the use plays a hand use clip of its own (washing, drinking, relieving oneself).
1593
+ * the door code, a seat sat on, an item taken by the take sequence) or the use plays a hand use clip or a body pose of its own (washing, drinking, relieving oneself, working a plunger).
1357
1594
  */
1358
1595
 
1359
1596
  declare const GESTURE_OF_ACTION: Readonly<Record<Action['do'], BodyGesture | null>>;
1360
1597
  declare const GESTURE_OF_USE: Readonly<Record<UseSpec['do'], BodyGesture | null>>;
1361
1598
 
1362
- export { type Action, type ActiveEmitter, type BasinSpec, type BowlSpec, type BurnerSpec, COLLAR_REACH, CONTROLLED_OBJECT, type CastBox, type Chain, type ChainSpec, type ColliderOptions, type ColliderSpec, type ContainerSpec, DRINK_LITRES, DRINK_LPS, DRY_SECONDS, type DamageKind, type DamageSpec, type DestructionDelegate, type DestructionJoint, type DeviceKind, type DeviceSpec, type DrinkUseSpec, END_GAP, type EmitterBowl, type EmitterKind, type EmitterSpec, type EnginePartDriver, type EnginePartOptions, type EnginePartPhysics, FILL_SHARE, FLOW_DEFAULTS, FLUSH_RUN_SECONDS, type FixtureEmitters, type FixtureKind, type FixtureSpec, type FuelSourceSpec, GESTURE_OF_ACTION, GESTURE_OF_USE, type HangTailParams, type Interactable, type InteractablesLocale, type InteractionSpec, type ItemCatalog, type ItemDef, type ItemStack, type LootEntry, type LootTable, type LootTables, type MirrorSpec, type Motion, type MotionKind, type ObjectControls, type ObjectControlsOptions, type ObjectControlsState, type ObjectSpec, type PartDestruction, type PartDriver, type PartPhysics, type PartSpec, type Pose, REACH_SECONDS, type Rect, type RoutineEnd, type RunningEmitter, type SeatPose, type SeatResult, type SeatSpec, type SinkRoutine, type SinkRoutines, type SinkUseSpec, type SinkUsesOptions, type SinkVerdict, type SlotSpec, type SocketSpec, type SoftDriver, type SoftSpec, type Soil, type SolveSpanParams, type Span, type SpanMaterial, type SpanShape, type Strings, type SwitchSpec, type TankSpec, type TargetOptions, type Transform, type UseNeed, type UseSpec, type UsesState, type Vec3, WASH_SCRUB_SECONDS, type WashDishesSpec, type WashUseSpec, type WireRun, type WireRunsParams, type World, type WorldCollider, type WorldEvent, type WorldObject, type WorldOptions, type WorldState, alignY, buildChain, castWithMember, chainPoints, createEnginePartPhysics, createFixtureEmitters, createObjectControls, createSinkRoutines, createWorld, devicePointOf, dirtyDishes, disposeChain, endsMember, findNeeds, fitsInVolume, fitsSize, fitsSlot, fixtureFlowLps, format, generateLoot, hangTail, hashString, localToWorld, locales, mergeColliders, pickLocale, polylineLength, poseOf, resolveStrings, rng, rotY, rotateAxis, sinkVerdict, solveSpan, spanStrength, wireRuns, worldToLocal, wrapsMember };
1599
+ export { type Action, type ActiveEmitter, type BasinContent, type BasinContentInput, type BasinContentKind, type BasinContentSave, type BasinContentStage, type BasinDrain, type BasinDrainSave, type BasinDrainState, type BasinDrainStep, type BasinSpec, type BasinWater, type BowlSpec, type BurnerSpec, CLOGGED, COLLAR_REACH, CONTROLLED_OBJECT, type CastBox, type Chain, type ChainSpec, type ClogCause, type ColliderOptions, type ColliderSpec, type ContainerSpec, DRINK_HANDS_LITRES, DRINK_HANDS_LPS, DRINK_LITRES, DRINK_LPS, DRY_SECONDS, type DamageKind, type DamageSpec, type DestructionDelegate, type DestructionJoint, type DeviceKind, type DeviceSpec, type DrainPhase, type DrainSpec, type DrainUses, type DrainUsesOptions, type DrinkUseSpec, END_GAP, type EmitterBowl, type EmitterKind, type EmitterSpec, type EnginePartDriver, type EnginePartOptions, type EnginePartPhysics, FILL_SHARE, FLOW_DEFAULTS, FLUSH_POUR_SECONDS, FLUSH_RUN_SECONDS, type FixtureEmitters, type FixtureKind, type FixtureSpec, type FuelSourceSpec, GESTURE_OF_ACTION, GESTURE_OF_USE, type HangTailParams, type Interactable, type InteractablesLocale, type InteractionSpec, type ItemCatalog, type ItemDef, type ItemStack, type LootEntry, type LootTable, type LootTables, type MirrorSpec, type Motion, type MotionKind, type ObjectControls, type ObjectControlsOptions, type ObjectControlsState, type ObjectSpec, type PartDestruction, type PartDriver, type PartPhysics, type PartSpec, type PlungeUseSpec, type Pose, REACH_SECONDS, type Rect, type RelieveUseSpec, type RoutineEnd, type RunningEmitter, type SeatPose, type SeatResult, type SeatSpec, type SinkRoutine, type SinkRoutines, type SinkUseSpec, type SinkUsesOptions, type SinkVerdict, type SlotSpec, type SocketSpec, type SoftDriver, type SoftSpec, type Soil, type SolveSpanParams, type Span, type SpanMaterial, type SpanShape, type Strings, type SwitchSpec, type TankSpec, type TargetOptions, type Transform, type UseBody, type UseBodyPose, type UseNeed, type UseSpec, type UsesState, type Vec3, WASH_SCRUB_SECONDS, type WashDishesSpec, type WashUseSpec, type WireRun, type WireRunsParams, type World, type WorldCollider, type WorldEvent, type WorldObject, type WorldOptions, type WorldState, alignY, buildChain, castWithMember, chainPoints, createBasinDrain, createDrainUses, createEnginePartPhysics, createFixtureEmitters, createObjectControls, createSinkRoutines, createUseBody, createWorld, devicePointOf, dirtyDishes, disposeChain, endsMember, findNeeds, fitsInVolume, fitsSize, fitsSlot, fixtureFlowLps, format, generateLoot, hangTail, hashString, localToWorld, locales, mergeColliders, pickLocale, polylineLength, poseOf, resolveStrings, rng, rotY, rotateAxis, sinkVerdict, solveSpan, spanStrength, wireRuns, worldToLocal, wrapsMember };