@adatechnology/game-floorplan-three 0.1.1 → 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/MIGRATION.md +1 -1
- package/README.md +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.global.js +1366 -27
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +14 -13
- package/dist/index.js.map +1 -1
- package/package.json +10 -6
package/MIGRATION.md
CHANGED
|
@@ -114,5 +114,5 @@ All the texts the house shows are in `locales` (`en`, `pt-BR`): `prompt.*` (E: a
|
|
|
114
114
|
|
|
115
115
|
## What is not here
|
|
116
116
|
|
|
117
|
-
- `AdaptadorInterativos` (plan to objects of the interactables kit)
|
|
117
|
+
- `AdaptadorInterativos` (plan to objects of the interactables kit) lives in `@adatechnology/game-floorplan-interactables` (spec 001, question 5) and is the default of the `interactives` option; a game can still inject its own with `interactives.adapter`.
|
|
118
118
|
- The globals of the page (`Moveis3DSDK`, `FrotaLeve`, `Reflector`...) are options now.
|
package/README.md
CHANGED
|
@@ -81,7 +81,7 @@ navigator.blocked(x, z, floor) // 1 blocked, 0 free, -1 use the ground grid
|
|
|
81
81
|
| `fleet` | cars (`game-vehicles-fleet`) |
|
|
82
82
|
| `reflector` | `THREE.Reflector` for the mirrors |
|
|
83
83
|
| `props` | `game-props3d` (default: the package's dependency) |
|
|
84
|
-
| `interactives` | `{ GameInteractables, GameInteractablesHousehold, GameInteractablesThree, adapter }`: the interactable kit in place of the static furniture. The adapter (plan to kit objects) is game
|
|
84
|
+
| `interactives` | `{ GameInteractables, GameInteractablesHousehold, GameInteractablesThree, adapter?, adapterOptions? }`: the interactable kit in place of the static furniture. The adapter (plan to kit objects) is `@adatechnology/game-floorplan-interactables` by default; `adapter` injects a game's own (an object with `plan`/`add`/`createWorld`/`blockedOf`, or a factory with `create()`), `adapterOptions` goes to `create()` (registries, `seedKey`, texts). |
|
|
85
85
|
| `vegetation` | `{ GameVegetation: { ...core, ...three }, GameVegetationSpecies }` |
|
|
86
86
|
| `textures`, `atlas`, `materials` | the app's replacements |
|
|
87
87
|
| `seedKey` | maps an id of the plan to the key its seeded draws use (to reproduce a scene drawn with other ids) |
|
package/dist/index.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ interface HouseRendererOptions {
|
|
|
50
50
|
destruction?: any;
|
|
51
51
|
/** `createDestructionRenderer(THREE, { scene, world })` of `@adatechnology/game-destruction-three`: draws fracture, collapse, fragments, spalls and the rebar cage on the house's meshes. */
|
|
52
52
|
destructionRenderer?: any;
|
|
53
|
-
/** The interactables kit, injected: `{ GameInteractables, GameInteractablesHousehold, GameInteractablesThree, adapter, locale, region, items, effects, camera, onEvent, onSeat }`. */
|
|
53
|
+
/** The interactables kit, injected: `{ GameInteractables, GameInteractablesHousehold, GameInteractablesThree, adapter (optional), adapterOptions, locale, region, items, effects, camera, onEvent, onSeat }`. */
|
|
54
54
|
interactives?: any;
|
|
55
55
|
/** The vegetation packages, injected: `{ GameVegetation, GameVegetationSpecies }`. */
|
|
56
56
|
vegetation?: any;
|