@adatechnology/game-interactables 0.2.27 → 0.3.1
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -176,7 +176,7 @@ messages above. Content packs add their keys through `options.strings`; unknown
|
|
|
176
176
|
|
|
177
177
|
Specs carry tags for the shared destruction SDK, `@adatechnology/game-destruction`; this package does not depend on it and only stores plain ids.
|
|
178
178
|
|
|
179
|
-
- `PartSpec.destruction`: `{ material, joint?, piece?, explodes?, contains? }`. `material` is an SDK material id (`steel`, `mdf`, `glass`...), `joint` an SDK joint kind (`screw`, `bolt`, `nail`, `weld`, `glue`, `hinge`, `clip`, `tie`, `mortar`, `fused`, `stem`), `piece` what the part is (`door`, `drawer`, `lid`...). `explodes` and `contains` have the same shape as in the SDK's `PartSpec`.
|
|
179
|
+
- `PartSpec.destruction`: `{ material, joint?, piece?, explodes?, contains? }`. `material` is an SDK material id (`steel`, `mdf`, `glass`...), `joint` an SDK joint kind (`screw`, `bolt`, `nail`, `weld`, `glue`, `hinge`, `slide`, `clip`, `tie`, `mortar`, `fused`, `stem`), `piece` what the part is (`door`, `drawer`, `lid`...). `explodes` and `contains` have the same shape as in the SDK's `PartSpec`.
|
|
180
180
|
- `ObjectSpec.destruction`: the same tags for the static body (everything that is not a movable part).
|
|
181
181
|
|
|
182
182
|
The host builds SDK parts from the tags and routes hits, fire and blasts to the SDK. `DamageSpec` and `world.damage` are deprecated: they keep working, but get no new features.
|
package/dist/index.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ interface PartSpec {
|
|
|
81
81
|
destruction?: PartDestruction;
|
|
82
82
|
}
|
|
83
83
|
/** Joint kinds of the destruction SDK (`JointKind`). */
|
|
84
|
-
type DestructionJoint = 'screw' | 'bolt' | 'nail' | 'weld' | 'glue' | 'hinge' | 'clip' | 'tie' | 'mortar' | 'fused' | 'stem';
|
|
84
|
+
type DestructionJoint = 'screw' | 'bolt' | 'nail' | 'weld' | 'glue' | 'hinge' | 'slide' | 'clip' | 'tie' | 'mortar' | 'fused' | 'stem';
|
|
85
85
|
/** What a part is made of and how it is attached. Field names and shapes mirror the SDK's `PartSpec`. */
|
|
86
86
|
interface PartDestruction {
|
|
87
87
|
/** SDK material id (`steel`, `wood_soft`, `mdf`, `glass`, `ceramic`, `plastic`, `fabric`...). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adatechnology/game-interactables",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Renderer-agnostic runtime for interactive world objects: movable parts, containers with pickable items, power grid, fuel, logical plumbing, seats, soft volumes, effects, mirrors and damage.",
|
|
6
6
|
"keywords": [
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dist"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@adatechnology/game-contracts": "^0.
|
|
42
|
+
"@adatechnology/game-contracts": "^0.37.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/node": "^22.10.7",
|