@adatechnology/game-contracts 0.18.0 → 0.19.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 +4 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -675,7 +675,9 @@ type DestructionEvent = (EventBase & {
675
675
  point: Vec3;
676
676
  direction: Vec3;
677
677
  energy: number;
678
- }) | (EventBase & {
678
+ })
679
+ /** Bits thrown off a part; `material` is what they are made of when it is not the part's own (the plaster coat over a brick wall). */
680
+ | (EventBase & {
679
681
  type: 'debris';
680
682
  part: string;
681
683
  kind: DebrisKind;
@@ -683,6 +685,7 @@ type DestructionEvent = (EventBase & {
683
685
  normal: Vec3;
684
686
  count: number;
685
687
  speed: number;
688
+ material?: MaterialId;
686
689
  }) | (EventBase & {
687
690
  type: 'fracture';
688
691
  part: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adatechnology/game-contracts",
3
- "version": "0.18.0",
3
+ "version": "0.19.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": [