@adatechnology/game-test-room 0.13.0 → 0.14.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/dist/index.d.ts +7 -0
- package/dist/index.global.js +10 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -9,6 +9,9 @@ import { createGroundField, createVfx } from "@adatechnology/game-vfx";
|
|
|
9
9
|
import { createGroundPatch, createVfxRenderer } from "@adatechnology/game-vfx-three";
|
|
10
10
|
import { checkAnimation, checkBench, checkDestructible, checkSpec, createEnvironmentBus, shotExtras, useToHit } from "@adatechnology/game-contracts";
|
|
11
11
|
|
|
12
|
+
// src/arena.ts
|
|
13
|
+
import { markKitOrigin } from "@adatechnology/game-contracts";
|
|
14
|
+
|
|
12
15
|
// src/items.ts
|
|
13
16
|
var box = (id, material, size, position, extra = {}) => ({ id, material, shape: { kind: "box", size }, position, ...extra });
|
|
14
17
|
var joint = (a, b, kind, extra = {}) => ({ a, b, kind, ...extra });
|
|
@@ -110,7 +113,7 @@ function resolveScenery(scenery) {
|
|
|
110
113
|
return [...merged.entries()].map(([id, o]) => ({ id, spec: o.spec, position: o.position, rotationY: o.rotationY ?? 0, colors: o.colors, build: o.build, label: o.label, top: o.top, spout: o.spout }));
|
|
111
114
|
}
|
|
112
115
|
function createArena(THREE, size, scene, scenery, tapOption) {
|
|
113
|
-
const group = new THREE.Group();
|
|
116
|
+
const group = markKitOrigin(new THREE.Group(), { owner: "game-test-room", kind: "room" });
|
|
114
117
|
group.name = "test-room-arena";
|
|
115
118
|
scene.background = new THREE.Color(10466504);
|
|
116
119
|
group.add(new THREE.HemisphereLight(13624319, 7037527, 0.75));
|
|
@@ -5749,6 +5752,7 @@ function createTestRoom(options) {
|
|
|
5749
5752
|
},
|
|
5750
5753
|
equip,
|
|
5751
5754
|
openArea,
|
|
5755
|
+
modules: () => [...modules.values()].map((m) => ({ id: m.id, name: m.name, group: m.group, hasArea: typeof m.area === "function" })),
|
|
5752
5756
|
openAreaAsync: (area) => loading.busy(t("loading.open_area", { area: areaLabel(area) }), () => openArea(area)),
|
|
5753
5757
|
loading,
|
|
5754
5758
|
busy: (label, work, busyOptions) => loading.busy(label, work, busyOptions),
|