@adatechnology/game-vfx 0.1.2 → 0.2.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
@@ -49,7 +49,7 @@ reports what is alive, what the last explosion made, the scale it was made at an
49
49
 
50
50
  ## Workshop recipes, sprites and event effects
51
51
 
52
- `vfx.play(id, point, { direction?, normal?, seed?, param? })` plays one of the **36 recipes of the Workshop of VFX** (blood by infection age, headshot,
52
+ `vfx.play(id, point, { direction?, normal?, seed?, param? })` plays one of the **39 recipes of the Workshop of VFX** (the 36 of the first pass and the weather ones: `rain_and_puddles` three intensities, `fog_and_ash`, `headlights_in_rain`; the rain lives in `workshop().rain`, a `RainField` that `game-weather-three` also drives) (blood by infection age, headshot,
53
53
  dismemberment, bloater cloud, scream, muzzle flashes by weapon, impact by material, glass, doors, collapses, fires, cars, the screen effects) into the
54
54
  Workshop pools (`vfx.workshop()`: additive and normal sprites, streaks, physics debris, decals, rings, flash and fire lights, screen state). The recipes
55
55
  are **data** (`WORKSHOP_EFFECTS`, `EffectDef`: a small language of expressions and steps) that a runner executes in the page's own order of random draws,
@@ -57,6 +57,13 @@ so the goldens (`tests/workshop-golden.test.ts`, 162 assertions over 54 runs) re
57
57
  index or id (`'fresh'`, `'ak'`, `'concrete'`); `anchor` and `heading` of the recipe place and turn it at `point` and `direction`; `seed` makes it
58
58
  repeatable on a LAN client. `patchEffects(base, changes)` tunes, adds or removes recipes like `patchExplosions` does.
59
59
 
60
+ The Workshop also keeps **solids**, not only sprites: the `mesh` step spawns a `MeshSpawn` (cone, open cone, sphere or icosahedron with its segments, additive or lit
61
+ material, a place and a turn inside a group, a scale ramp, growth, drag, gravity, spin and a fading opacity) into `workshop().meshes` (`MeshPool`), aged each frame in
62
+ the order of the gallery's `Particles`. `play` can also take the thing's whole turn (`orientation`, a unit quaternion, pitch and roll included, instead of the turn
63
+ about the vertical axis `direction` gives) and named numbers (`values`, read with `variable(name)`). `VIEWMODEL_EFFECTS` use all three: the first-person muzzle flash
64
+ (`viewmodel_muzzle_flash`: an open cone, four small cones and a core for 55 ms, a light that holds, six spheres of smoke), `weapon_smoke_puff`, `launcher_backblast` and
65
+ `flame_jet`, written in the weapon's own axes (x along the barrel) with the Arsenal gallery's numbers and the order it drew them in.
66
+
60
67
  `vfx.burst(kind, point, normal, count, speed?)` and `vfx.spawn(kind, point, velocity)` are the **sprite kinds** that destruction, fluids and weapons share
61
68
  (debris, sparks, ash, steam, drips, leaks...: `data/sprite-kinds.json`, `patchSpriteKinds`), with `onLand(owner, ...)` to hear where a drop touched the ground.
62
69
 
package/dist/index.d.ts CHANGED
@@ -669,6 +669,52 @@ interface SpriteSpawn {
669
669
  readonly ds?: SpriteRange;
670
670
  readonly len?: number;
671
671
  }
672
+ /** The solids a mesh particle can be: a cone (closed or open at the base), a sphere, an icosahedron. */
673
+ type MeshShape = 'cone' | 'cone_open' | 'sphere' | 'icosahedron';
674
+ /**
675
+ * A particle that is a solid, not a sprite (the Arsenal gallery's flash is a cone, four small cones and a sphere, its smoke are spheres, its flames icosahedra).
676
+ * Metres and radians, three.js's axes and Euler order (XYZ). `p` is the point the group sits at, `at` the piece's place in the group, which grows with the
677
+ * group's scale; `rot` turns the piece in the group, `roll` turns the whole group about its own x axis, and the group itself is turned by the placement. A piece with
678
+ * neither `at` nor `roll` is free (smoke, a flame): its `rot` is in the world.
679
+ */
680
+ interface MeshSpawn {
681
+ readonly shape: MeshShape;
682
+ /** The radius: of a cone's base, a sphere, an icosahedron. */
683
+ readonly r: number;
684
+ /** A cone's height. */
685
+ readonly h?: number;
686
+ /** Radial segments of a cone, width segments of a sphere, detail of an icosahedron. */
687
+ readonly seg?: number;
688
+ /** Height segments of a cone (1) or a sphere. */
689
+ readonly seg2?: number;
690
+ readonly p: Vec3Tuple;
691
+ readonly at?: Vec3Tuple;
692
+ readonly rot?: Vec3Tuple;
693
+ readonly roll?: number;
694
+ /** Velocity in the recipe's space (turned with the placement) and in the world (as is); they add. */
695
+ readonly v?: Vec3Tuple;
696
+ readonly wv?: Vec3Tuple;
697
+ /** Radians per second about the piece's own x, y, z (added to `rot` every frame). */
698
+ readonly spin?: Vec3Tuple;
699
+ /** Seconds it lives. */
700
+ readonly life: number;
701
+ /** Subtracted from the vertical velocity each second (negative rises). */
702
+ readonly g?: number;
703
+ /** Fraction of the speed lost per second. */
704
+ readonly drag?: number;
705
+ /** Growth per second as a fraction of the size, applied every frame. */
706
+ readonly grow?: number;
707
+ /** `[from, rise]`: the scale is `from + min(1, age / life) * rise`, and the piece ends when the ramp does. */
708
+ readonly ramp?: readonly [number, number];
709
+ readonly c0: number;
710
+ /** Opacity: kept, or (with `fade`) the one it starts from on its way to nothing over its life. */
711
+ readonly a: number;
712
+ readonly fade?: boolean;
713
+ /** Added to what is behind it (a flash), not mixed with it. */
714
+ readonly add?: boolean;
715
+ /** Shaded by the scene's lights (smoke), not flat. */
716
+ readonly lit?: boolean;
717
+ }
672
718
  interface DebrisSpawn {
673
719
  readonly p: Vec3Tuple;
674
720
  readonly dir?: Vec3Tuple;
@@ -696,7 +742,7 @@ interface DecalOptions {
696
742
  readonly fluid?: 'blood' | 'oil' | 'fuel' | 'bile' | 'water';
697
743
  }
698
744
  type SpriteSystem = 'add' | 'normal' | 'streak';
699
- type TraceKind = 'add' | 'normal' | 'streak' | 'debris' | 'decal' | 'ring' | 'flash';
745
+ type TraceKind = 'add' | 'normal' | 'streak' | 'debris' | 'decal' | 'ring' | 'flash' | 'mesh';
700
746
  /** Hears each spawn in call order with the arguments the page's function got; the Workshop golden records the same calls. */
701
747
  type WorkshopTrace = (kind: TraceKind, args: readonly unknown[]) => void;
702
748
  interface WorkshopContext {
@@ -778,6 +824,101 @@ declare class DecalPool {
778
824
  update(dt: number): void;
779
825
  }
780
826
 
827
+ /** The most drops the field keeps (`RAINMAX`, W312). */
828
+ declare const RAIN_CAPACITY = 4000;
829
+ /** An ellipse of the ground a puddle covers: centre x, centre z and the two half-axes (W332 `PUD`). */
830
+ type Puddle = readonly [x: number, z: number, radiusX: number, radiusZ: number];
831
+ /** The Workshop's four puddles (W332): the rings of the rain show only in them. */
832
+ declare const WORKSHOP_PUDDLES: readonly Puddle[];
833
+ declare const inPuddle: (puddles: readonly Puddle[], x: number, z: number) => boolean;
834
+ /**
835
+ * The Workshop's rain (W313-331): up to 4000 streaks (two points each, in a Float32Array as the page keeps them) that fall in a box, slanted by the
836
+ * wind. A streak that reaches the ground may leave a splash (a sprite of the `normal` pool, and a ring where there is a puddle) when it is near the
837
+ * camera, and comes back at the top. It draws its random numbers in the page's order, so the weather and the Workshop see the same rain.
838
+ */
839
+ declare class RainField {
840
+ private readonly engine;
841
+ /** Two points per streak: x, y, z of the top and x, y, z of the bottom. */
842
+ readonly positions: Float32Array<ArrayBuffer>;
843
+ /** Streaks alive. */
844
+ count: number;
845
+ /** The slant (the wind along x in the Workshop's units). */
846
+ wind: number;
847
+ on: boolean;
848
+ /** Where the box is centred (the Workshop leaves it at the origin; a game follows the camera). */
849
+ centerX: number;
850
+ centerZ: number;
851
+ puddles: readonly Puddle[];
852
+ /** Replaces the puddle test (a game knows its own wet spots). */
853
+ puddleAt: ((x: number, z: number) => boolean) | undefined;
854
+ constructor(engine: WorkshopEngine);
855
+ /** `initRain` (W321): `count` streaks (thinned by the quality), each drawn at a random place in the box. */
856
+ init(count: number, wind: number): void;
857
+ /**
858
+ * What a game does with the field every frame: the box follows the camera (`centerX`, `centerZ`), the streaks thin or thicken to `count` (a new streak
859
+ * starts at a random place of the box, as `init` draws it) and the wind slants them. The golden never calls it.
860
+ */
861
+ drive(count: number, wind: number, centerX: number, centerZ: number): void;
862
+ /** `updateRain` (W322-329). `camera` is where the eye is; `splash` lets the drops that land leave a splash. */
863
+ update(dt: number, splash: boolean, camera: Vec3Tuple): void;
864
+ /** `rain.visible = false; RN.on = false` (W440): the field stops; the streaks stay where they were. */
865
+ clear(): void;
866
+ private set;
867
+ }
868
+
869
+ /** A unit quaternion `[x, y, z, w]`. */
870
+ type Quaternion = readonly [number, number, number, number];
871
+ /** One solid particle as the pool keeps it; a renderer draws it from these fields and never changes them. */
872
+ interface MeshParticle {
873
+ /** Grows by one for every particle ever spawned: a renderer knows a new one by it. */
874
+ readonly id: number;
875
+ readonly shape: MeshShape;
876
+ readonly radius: number;
877
+ readonly height: number;
878
+ readonly segments: number;
879
+ readonly segments2: number;
880
+ readonly color: number;
881
+ readonly additive: boolean;
882
+ readonly lit: boolean;
883
+ /** Where the group is, how it is turned (placement and roll), where the piece sits in it (before the scale) and how the piece is turned in it (Euler XYZ, changes with `spin`). */
884
+ x: number;
885
+ y: number;
886
+ z: number;
887
+ readonly frame: Quaternion;
888
+ readonly at: Vec3Tuple;
889
+ rx: number;
890
+ ry: number;
891
+ rz: number;
892
+ scale: number;
893
+ opacity: number;
894
+ age: number;
895
+ readonly life: number;
896
+ vx: number;
897
+ vy: number;
898
+ vz: number;
899
+ readonly spin: Vec3Tuple;
900
+ readonly gravity: number;
901
+ readonly drag: number;
902
+ readonly grow: number;
903
+ readonly ramp: readonly [number, number] | undefined;
904
+ readonly fade: boolean;
905
+ readonly startOpacity: number;
906
+ }
907
+ /**
908
+ * The solids of the Workshop's recipes: the gallery's `Particles` (thrown with a velocity and a spin, slowed, lifted by a negative gravity, grown and faded) without
909
+ * the floor, in order of birth. The oldest goes when the pool is full. Each frame does what the gallery's did, in its order: age, fade, gravity, drag, move, spin, grow.
910
+ */
911
+ declare class MeshPool {
912
+ readonly capacity: number;
913
+ readonly particles: MeshParticle[];
914
+ private serial;
915
+ constructor(capacity?: number);
916
+ get count(): number;
917
+ spawn(options: MeshSpawn, frame?: Quaternion): MeshParticle;
918
+ update(dt: number): void;
919
+ clear(): void;
920
+ }
921
+
781
922
  interface DecalFromSprite {
782
923
  (x: number, y: number, z: number, size: number, color: number, options: {
783
924
  readonly grow: number;
@@ -880,6 +1021,8 @@ interface FlashLight {
880
1021
  duration: number;
881
1022
  t: number;
882
1023
  intensity: number;
1024
+ /** Holds `peak` until `duration` is over. */
1025
+ steady: boolean;
883
1026
  }
884
1027
  interface FireLightSlot {
885
1028
  x: number;
@@ -895,7 +1038,7 @@ declare class FlashLightPool {
895
1038
  private next;
896
1039
  constructor(context: WorkshopContext);
897
1040
  get lit(): number;
898
- flash(point: Vec3Tuple, color: number, intensity: number, duration: number, distance?: number, force?: boolean | 'boom'): void;
1041
+ flash(point: Vec3Tuple, color: number, intensity: number, duration: number, distance?: number, force?: boolean | 'boom', steady?: boolean): void;
899
1042
  clear(): void;
900
1043
  update(dt: number): void;
901
1044
  }
@@ -923,12 +1066,14 @@ interface PostProcess {
923
1066
  }
924
1067
  /**
925
1068
  * Where an effect is put when it is played at a point instead of on the Workshop's set: what the recipe wrote at `anchor` lands at `origin`, turned
926
- * about the vertical axis by `yaw`. Positions are moved and turned, directions and velocities only turned.
1069
+ * about the vertical axis by `yaw`. Positions are moved and turned, directions and velocities only turned. With an `orientation` (a unit quaternion) the turn is
1070
+ * that one, pitch and roll included, and `yaw` is not used.
927
1071
  */
928
1072
  interface Placement {
929
1073
  readonly origin: Vec3Tuple;
930
1074
  readonly anchor: Vec3Tuple;
931
1075
  readonly yaw: number;
1076
+ readonly orientation?: Quaternion;
932
1077
  }
933
1078
  interface WorkshopOptions {
934
1079
  readonly random: RandomStream;
@@ -951,6 +1096,8 @@ declare class WorkshopEngine {
951
1096
  readonly decals: DecalPool;
952
1097
  readonly rings: WaveRingPool;
953
1098
  readonly lights: FlashLightPool;
1099
+ readonly rain: RainField;
1100
+ readonly meshes: MeshPool;
954
1101
  readonly screen: ScreenState;
955
1102
  readonly lens: LensBlob[];
956
1103
  post: PostProcess;
@@ -972,10 +1119,13 @@ declare class WorkshopEngine {
972
1119
  burst(system: SpriteSystem, count: number, options: SpriteSpawn): void;
973
1120
  /** `emit` (W343-345): `rate` per second, thinned by the quality, carried over between frames under `key`. `options` is read again for every particle. */
974
1121
  emit(key: string, system: SpriteSystem, rate: number, dt: number, options: () => SpriteSpawn): void;
1122
+ /** A solid particle (a cone, a sphere): the group sits at `p` turned by the placement, `v` is turned with it and `wv` is not. */
1123
+ mesh(recipe: MeshSpawn): MeshParticle;
975
1124
  debrisPiece(recipe: DebrisSpawn): void;
976
1125
  decal(recipe: readonly [number, number, number, number, number, DecalOptions?]): void;
977
1126
  ring(recipe: readonly [Vec3Tuple, number, number, number, number, Vec3Tuple?, number?]): void;
978
- flash(recipe: readonly [Vec3Tuple, number, number, number, number?, (boolean | 'boom')?]): void;
1127
+ /** `steady` (a seventh number): the light holds its intensity for its duration and goes out, where the Workshop's fades with the square of its age. */
1128
+ flash(recipe: readonly [Vec3Tuple, number, number, number, number?, (boolean | 'boom')?, boolean?]): void;
979
1129
  /** `fireLight` (W400): sways with the clock and flickers with one draw. */
980
1130
  fireLight(slot: 0 | 1, recipe: Vec3Tuple, intensity: number, time: number): void;
981
1131
  lensBlob(x: number, y: number, radius: number, color: string, alpha: number): void;
@@ -1016,6 +1166,9 @@ type EffectStep = {
1016
1166
  } | {
1017
1167
  readonly op: 'debris';
1018
1168
  readonly spawn: Computed;
1169
+ } | {
1170
+ readonly op: 'mesh';
1171
+ readonly spawn: Computed;
1019
1172
  } | {
1020
1173
  readonly op: 'decal' | 'ring' | 'flash' | 'lens';
1021
1174
  readonly args: readonly Computed[];
@@ -1138,6 +1291,8 @@ interface InstanceSetup {
1138
1291
  readonly direction?: Vec3Tuple;
1139
1292
  /** The surface it hit (`normal` in a recipe). */
1140
1293
  readonly normal?: Vec3Tuple;
1294
+ /** Named numbers the recipe reads with `variable(name)`; they are in place before its first step. */
1295
+ readonly values?: Readonly<Record<string, number>>;
1141
1296
  }
1142
1297
  /**
1143
1298
  * One run of one effect (W1259-1295): `begin` runs the recipe's `setup` and `timeline`, `step` runs the timers that came due (from the last added to the
@@ -1208,12 +1363,16 @@ interface Behavior {
1208
1363
  interface PlayOptions {
1209
1364
  /** Which way the effect points in the world (the muzzle's barrel, the spray of a jet). */
1210
1365
  readonly direction?: Vec3Tuple;
1366
+ /** Which way the thing it belongs to is turned, as a unit quaternion `[x, y, z, w]`: the effect is placed with this turn, pitch and roll included, in place of the turn about the vertical axis `direction` gives. */
1367
+ readonly orientation?: readonly [number, number, number, number];
1211
1368
  /** The surface it hit. */
1212
1369
  readonly normal?: Vec3Tuple;
1213
1370
  /** Repeats the same visual: a LAN client draws the same numbers from the same seed. */
1214
1371
  readonly seed?: number;
1215
1372
  /** The recipe's parameter (age, material, weapon...). */
1216
1373
  readonly param?: number | string;
1374
+ /** Named numbers the recipe reads with `variable(name)` (a size, a length of time): set before its `setup` runs, and again whenever its loop starts over. */
1375
+ readonly values?: Readonly<Record<string, number>>;
1217
1376
  /** Moves with a thing: the effect sits at its position plus the point it was played at. */
1218
1377
  readonly follow?: Follow;
1219
1378
  /** Stops after this many seconds (default: the recipe's loop). */
@@ -1489,6 +1648,9 @@ interface VfxWorld {
1489
1648
  setLayer(layer: VfxLayer, on: boolean): void;
1490
1649
  layer(layer: VfxLayer): boolean;
1491
1650
  setCamera(position: Vec3Like): void;
1651
+ /** The wind that carries the smoke and dust, in m/s (`VfxOptions.wind` is where it starts). The weather moves it. */
1652
+ setWind(wind: Vec3Like): void;
1653
+ wind(): Vec3Tuple;
1492
1654
  /** Forces the scale of every explosion from now on (`null`: back to the distance bands and the cap). */
1493
1655
  forceLod(scale: number | null): void;
1494
1656
  update(dt: number): void;
@@ -1523,7 +1685,7 @@ declare function patchExplosions(base: Readonly<Record<string, ExplosionDef>>, c
1523
1685
 
1524
1686
  /** Every effect of the Workshop by id. A game adds, changes or removes entries with `patchEffects`. */
1525
1687
  declare const WORKSHOP_EFFECTS: Readonly<Record<string, EffectDef>>;
1526
- /** The Workshop's recipes plus the one-shot effects the destruction events play (`event-effects.json`): what a world plays by default. */
1688
+ /** The Workshop's recipes plus the one-shot effects the destruction events play (`event-effects.json`) and the ones of the weapon in the player's hands: what a world plays by default. */
1527
1689
  declare const GAME_EFFECTS: Readonly<Record<string, EffectDef>>;
1528
1690
  /** A copy of the recipes with some changed (a partial replaces the fields it names), added or removed (`null`); a game tunes the Workshop's effects without touching the core. */
1529
1691
  declare function patchEffects(base: Readonly<Record<string, EffectDef>>, changes: Readonly<Record<string, Partial<EffectDef> | EffectDef | null>>): Record<string, EffectDef>;
@@ -1534,6 +1696,8 @@ declare function patchEffects(base: Readonly<Record<string, EffectDef>>, changes
1534
1696
  */
1535
1697
  declare const EVENT_EFFECTS: readonly EffectDef[];
1536
1698
 
1699
+ declare const VIEWMODEL_EFFECTS: readonly EffectDef[];
1700
+
1537
1701
  /** What a game event looks like to the map: the kind of event and the little that picks its effect. */
1538
1702
  interface GameEvent {
1539
1703
  /** `spall`, `stage`, `expose`, `collapse`, `explode`, `fracture`... (strings, so there is no compile dependency on the destruction package). */
@@ -1700,4 +1864,4 @@ declare const SMOKE_COLORS: {
1700
1864
  readonly gas: Rgb;
1701
1865
  };
1702
1866
 
1703
- export { AREA_CAP_GAME, type AreaCap, type AreaCapTracker, type Behavior, type BehaviorHost, type BlastLight, type BloodMark, type Chunk, type CueRequest, type DebrisSpawn, type Decal, type DecalOptions, type DirtMark, EVENT_BUDGET, EVENT_EFFECTS, EVENT_EFFECTS_MAP, EXPLOSIONS, EXPLOSION_ALIASES, EffectCamera, type EffectDef, EffectInstance, type EffectPlayer, type EffectPlayerOptions, EffectRunner, type EffectRunnerOptions, type EffectStep, type EffectTexts, type EffectView, type ExplosionCall, type ExplosionDef, type ExplosionOptions, type Fire, type FireLight, type FireOptions, type FireSpec, type Follow, GAME_EFFECTS, type GameEvent, type Glow, type GroundField, type GroundFieldOptions, type InstanceDeps, type InstanceSetup, type KindPoolHost, LOD_GAME, LOD_LAB, type LandListener, type LensBlob, type LightGlow, type LightPool, type LodBands, type Mark, type MarkEvent, type MarkStore, type MushroomSpec, type MutableVec3, OrderedPool, PROFILES, type Placement, type PlayOptions, type PostProcess, type Puff, type RandomStream, type Rgb, type Ring, type RockMark, SMOKE_COLORS, SPRITE_KINDS, type Schedule, type ScorchMark, type ScreenState, type SheetLabels, type Shock, type Spark, type SpriteGround, type SpriteKind, type SpriteKindDef, SpriteKindPool, SpriteKindSystem, type SpriteKindSystemOptions, type SpriteSpawn, type SpriteSpawnOptions, type SpriteSystem, VFX_LAYERS, type Vec3Like, type Vec3Tuple, type VfxLayer, type VfxLocale, type VfxOptions, type VfxPoolsView, type VfxProfile, type VfxProfileName, type VfxSideRequest, type VfxStats, type VfxStrings, type VfxTrace, type VfxWorld, WORKSHOP_BEHAVIORS, WORKSHOP_EFFECTS, type WorkshopContext, WorkshopEngine, type WorkshopOptions, type WorkshopTrace, colorOfChunk, composeExplosion, createAreaCap, createEffectPlayer, createGroundField, createSchedule, createScreenState, createVfx, createWorkshopBehaviors, effectForEvent, estimateCost, hexToLinearRgb, hexToRgb, lcg, lehmer, locales, lodScale, patchEffects, patchExplosions, patchSpriteKinds, resolveStrings, streamFor, updateScreen, workshopGround };
1867
+ export { AREA_CAP_GAME, type AreaCap, type AreaCapTracker, type Behavior, type BehaviorHost, type BlastLight, type BloodMark, type Chunk, type CueRequest, type DebrisSpawn, type Decal, type DecalOptions, type DirtMark, EVENT_BUDGET, EVENT_EFFECTS, EVENT_EFFECTS_MAP, EXPLOSIONS, EXPLOSION_ALIASES, EffectCamera, type EffectDef, EffectInstance, type EffectPlayer, type EffectPlayerOptions, EffectRunner, type EffectRunnerOptions, type EffectStep, type EffectTexts, type EffectView, type ExplosionCall, type ExplosionDef, type ExplosionOptions, type Fire, type FireLight, type FireOptions, type FireSpec, type Follow, GAME_EFFECTS, type GameEvent, type Glow, type GroundField, type GroundFieldOptions, type InstanceDeps, type InstanceSetup, type KindPoolHost, LOD_GAME, LOD_LAB, type LandListener, type LensBlob, type LightGlow, type LightPool, type LodBands, type Mark, type MarkEvent, type MarkStore, type MeshParticle, MeshPool, type MeshShape, type MeshSpawn, type MushroomSpec, type MutableVec3, OrderedPool, PROFILES, type Placement, type PlayOptions, type PostProcess, type Puddle, type Puff, type Quaternion, RAIN_CAPACITY, RainField, type RandomStream, type Rgb, type Ring, type RockMark, SMOKE_COLORS, SPRITE_KINDS, type Schedule, type ScorchMark, type ScreenState, type SheetLabels, type Shock, type Spark, type SpriteGround, type SpriteKind, type SpriteKindDef, SpriteKindPool, SpriteKindSystem, type SpriteKindSystemOptions, type SpriteSpawn, type SpriteSpawnOptions, type SpriteSystem, VFX_LAYERS, VIEWMODEL_EFFECTS, type Vec3Like, type Vec3Tuple, type VfxLayer, type VfxLocale, type VfxOptions, type VfxPoolsView, type VfxProfile, type VfxProfileName, type VfxSideRequest, type VfxStats, type VfxStrings, type VfxTrace, type VfxWorld, WORKSHOP_BEHAVIORS, WORKSHOP_EFFECTS, WORKSHOP_PUDDLES, type WorkshopContext, WorkshopEngine, type WorkshopOptions, type WorkshopTrace, colorOfChunk, composeExplosion, createAreaCap, createEffectPlayer, createGroundField, createSchedule, createScreenState, createVfx, createWorkshopBehaviors, effectForEvent, estimateCost, hexToLinearRgb, hexToRgb, inPuddle, lcg, lehmer, locales, lodScale, patchEffects, patchExplosions, patchSpriteKinds, resolveStrings, streamFor, updateScreen, workshopGround };