@adatechnology/game-contracts 0.25.0 → 0.26.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +5 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1923,6 +1923,11 @@ interface AudioSink {
1923
1923
  setListener?(listener: AudioListener): void;
1924
1924
  /** Adds a sound bank to the host's engine. `bank` is the engine's own type, `unknown` here because the contracts do not know it. */
1925
1925
  register?(bank: unknown): void;
1926
+ /**
1927
+ * Fetches and decodes the recorded files of these sounds now, so their first play is the recording and not the synthesized fallback (a door
1928
+ * opened the moment the area loads). A host without recordings leaves it out; ids without files are ignored.
1929
+ */
1930
+ preload?(sounds: readonly string[]): void;
1926
1931
  }
1927
1932
 
1928
1933
  /** The weather, light and ground as the world is right now. Written by whoever drives the weather, read by whoever reacts to it. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adatechnology/game-contracts",
3
- "version": "0.25.0",
3
+ "version": "0.26.0",
4
4
  "license": "MIT",
5
5
  "description": "The contracts every game module depends on, and nothing else: destruction (parts, hits, events, DestructibleImpl), weapons (shots), fluids (containers, item uses), item animations and the TestableModule a module hands the test room. Types plus tiny checkers, no runtime dependencies.",
6
6
  "keywords": [