@adatechnology/game-vegetation-three 0.2.8 → 0.3.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/chunk-4RHCXAUC.js +1226 -0
- package/dist/chunk-4RHCXAUC.js.map +1 -0
- package/dist/index.d.ts +5 -237
- package/dist/index.global.js +59 -10
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +20 -1204
- package/dist/index.js.map +1 -1
- package/dist/testing.d.ts +237 -0
- package/dist/testing.js +41 -0
- package/dist/testing.js.map +1 -0
- package/package.json +10 -6
package/dist/index.global.js
CHANGED
|
@@ -41,7 +41,7 @@ var GameVegetationThree = (() => {
|
|
|
41
41
|
scatterLot: () => scatterLot
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
// ../game-shapes/dist/chunk-
|
|
44
|
+
// ../game-shapes/dist/chunk-IFXQIDSA.js
|
|
45
45
|
function canonicalJson(value) {
|
|
46
46
|
if (value === null) return "null";
|
|
47
47
|
if (typeof value === "number") return Object.is(value, -0) ? "-0" : Number.isFinite(value) ? String(value) : JSON.stringify(String(value));
|
|
@@ -1429,6 +1429,64 @@ var GameVegetationThree = (() => {
|
|
|
1429
1429
|
custom: { fields: { generator: str, params: () => null }, required: ["generator"] }
|
|
1430
1430
|
};
|
|
1431
1431
|
|
|
1432
|
+
// ../game-contracts/dist/index.js
|
|
1433
|
+
var DEFAULT_COST_ALLOCATION_BYTES = 1024 * 1024;
|
|
1434
|
+
var DEFERRED_QUEUE_ID = {
|
|
1435
|
+
DESTRUCTION_EVENTS: "destruction.events",
|
|
1436
|
+
BREACH_PAINT: "floorplan.breach-paint",
|
|
1437
|
+
AUDIO_VOICES: "audio.voices",
|
|
1438
|
+
VEHICLE_CREASE: "vehicles.crease"
|
|
1439
|
+
};
|
|
1440
|
+
var DEFERRED_PRIORITY = {
|
|
1441
|
+
[DEFERRED_QUEUE_ID.DESTRUCTION_EVENTS]: { priority: 300, phase: "present" },
|
|
1442
|
+
[DEFERRED_QUEUE_ID.BREACH_PAINT]: { priority: 250, phase: "present" },
|
|
1443
|
+
[DEFERRED_QUEUE_ID.AUDIO_VOICES]: { priority: 200, phase: "idle", reserveMs: 1 },
|
|
1444
|
+
[DEFERRED_QUEUE_ID.VEHICLE_CREASE]: { priority: 100, phase: "idle" }
|
|
1445
|
+
};
|
|
1446
|
+
var KIT_ORIGIN_KEY = "kitOrigin";
|
|
1447
|
+
function markKitOrigin(object2, origin) {
|
|
1448
|
+
const node = object2;
|
|
1449
|
+
node.userData = node.userData ?? {};
|
|
1450
|
+
node.userData[KIT_ORIGIN_KEY] = { ...origin };
|
|
1451
|
+
return object2;
|
|
1452
|
+
}
|
|
1453
|
+
var SURFACE_IDS = ["concrete", "asphalt", "wood", "tile", "dirt", "grass", "gravel", "sand", "metal", "water", "glass", "carpet"];
|
|
1454
|
+
var GAIT_IDS = ["walk", "run"];
|
|
1455
|
+
var LANDING_IDS = ["light", "heavy"];
|
|
1456
|
+
var BODY_SOUND_IDS = [
|
|
1457
|
+
"jump",
|
|
1458
|
+
"cloth_rustle",
|
|
1459
|
+
"body_fall",
|
|
1460
|
+
"fall_damage",
|
|
1461
|
+
"player_hurt",
|
|
1462
|
+
"player_breath_run",
|
|
1463
|
+
"player_death",
|
|
1464
|
+
"bite",
|
|
1465
|
+
"grab",
|
|
1466
|
+
"punch_swing",
|
|
1467
|
+
"punch_hit_body",
|
|
1468
|
+
"punch_hit_face",
|
|
1469
|
+
"punch_hit_object",
|
|
1470
|
+
"kick_swing",
|
|
1471
|
+
"kick_hit",
|
|
1472
|
+
"kick_hit_object",
|
|
1473
|
+
"shove_two_hands",
|
|
1474
|
+
"knife_swing",
|
|
1475
|
+
"knife_stab",
|
|
1476
|
+
"knife_slash",
|
|
1477
|
+
"knife_hit_object",
|
|
1478
|
+
"blunt_swing",
|
|
1479
|
+
"blunt_hit",
|
|
1480
|
+
"blunt_hit_object",
|
|
1481
|
+
"axe_swing",
|
|
1482
|
+
"axe_chop",
|
|
1483
|
+
"axe_hit_object"
|
|
1484
|
+
];
|
|
1485
|
+
var footstepSoundId = (surface, gait) => `footstep_${surface}_${gait}`;
|
|
1486
|
+
var FOOTSTEP_SOUND_IDS = SURFACE_IDS.flatMap((surface) => GAIT_IDS.map((gait) => footstepSoundId(surface, gait)));
|
|
1487
|
+
var LAND_SOUND_IDS = SURFACE_IDS.flatMap((surface) => LANDING_IDS.map((landing) => `land_${surface}_${landing}`));
|
|
1488
|
+
var BODY_FOLEY_IDS = [...FOOTSTEP_SOUND_IDS, ...LAND_SOUND_IDS, ...BODY_SOUND_IDS];
|
|
1489
|
+
|
|
1432
1490
|
// ../game-shapes-three/dist/index.js
|
|
1433
1491
|
var UV_BEFORE_NORMAL = /* @__PURE__ */ new Set(["LatheGeometry", "ExtrudeGeometry"]);
|
|
1434
1492
|
var INDEX_FIRST = /* @__PURE__ */ new Set(["BoxGeometry", "CylinderGeometry", "ConeGeometry", "SphereGeometry", "PlaneGeometry", "CircleGeometry", "RingGeometry", "LatheGeometry", "TorusGeometry"]);
|
|
@@ -9681,15 +9739,6 @@ gl_Position = projectionMatrix * mvPosition;
|
|
|
9681
9739
|
};
|
|
9682
9740
|
}
|
|
9683
9741
|
|
|
9684
|
-
// ../game-contracts/dist/index.js
|
|
9685
|
-
var KIT_ORIGIN_KEY = "kitOrigin";
|
|
9686
|
-
function markKitOrigin(object2, origin) {
|
|
9687
|
-
const node = object2;
|
|
9688
|
-
node.userData = node.userData ?? {};
|
|
9689
|
-
node.userData[KIT_ORIGIN_KEY] = { ...origin };
|
|
9690
|
-
return object2;
|
|
9691
|
-
}
|
|
9692
|
-
|
|
9693
9742
|
// src/test-area/plants.ts
|
|
9694
9743
|
var PLANT_SEED = 3;
|
|
9695
9744
|
var PLANT_DEFS = [
|