@adatechnology/game-floorplan 0.2.2 → 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 +6 -0
- package/dist/index.d.ts +655 -201
- package/dist/index.global.js +366 -207
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +272 -205
- package/dist/index.js.map +1 -1
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -105,6 +105,12 @@ pnpm --filter @adatechnology/game-floorplan viewer:build # writes packages/gam
|
|
|
105
105
|
|
|
106
106
|
See [MIGRATION.md](MIGRATION.md) for the old-to-new name tables.
|
|
107
107
|
|
|
108
|
+
## By instance
|
|
109
|
+
|
|
110
|
+
`createFloorplan({ packs, patch, remove })` makes an engine of its own; nothing is shared with the global `engine`, which stays as a deprecated delegate of `defaultFloorplan()`.
|
|
111
|
+
`packs` is a list of content packs, applied in order: each is a function `(engine) => void` or an object with `register(engine)` (for example `(target) => register(target, { region: 'br' })` of `game-floorplan-residential`).
|
|
112
|
+
`patch` merges fields by id (items by `type`, templates by `id`) and `remove` lists ids to take out; an id that does not exist is ignored and warned about once in development.
|
|
113
|
+
|
|
108
114
|
## Português
|
|
109
115
|
|
|
110
116
|
Gerador procedural de plantas de casas e lotes, com semente: casca da casa, lote, slots de móveis, preenchimento por semente, paleta de cores harmônica, estados da casa (plugins) e zoneamento urbano.
|