@adatechnology/game-urban-three 0.3.4 → 0.3.6

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.
@@ -163,7 +163,7 @@ var GameUrbanThree = (() => {
163
163
  }
164
164
  var EFFECT_STEP_SECONDS = 1 / 50;
165
165
 
166
- // ../game-shapes/dist/chunk-M5N2SHNL.js
166
+ // ../game-shapes/dist/chunk-FZQTELDQ.js
167
167
  function canonicalJson(value) {
168
168
  if (value === null) return "null";
169
169
  if (typeof value === "number") return Object.is(value, -0) ? "-0" : Number.isFinite(value) ? String(value) : JSON.stringify(String(value));
@@ -1039,17 +1039,19 @@ var GameUrbanThree = (() => {
1039
1039
  if (p.prevZ) p.prevZ.nextZ = p.nextZ;
1040
1040
  if (p.nextZ) p.nextZ.prevZ = p.prevZ;
1041
1041
  }
1042
- function Node(i, x, y) {
1043
- this.i = i;
1044
- this.x = x;
1045
- this.y = y;
1046
- this.prev = null;
1047
- this.next = null;
1048
- this.z = 0;
1049
- this.prevZ = null;
1050
- this.nextZ = null;
1051
- this.steiner = false;
1052
- }
1042
+ var Node = class {
1043
+ constructor(i, x, y) {
1044
+ this.i = i;
1045
+ this.x = x;
1046
+ this.y = y;
1047
+ this.prev = null;
1048
+ this.next = null;
1049
+ this.z = 0;
1050
+ this.prevZ = null;
1051
+ this.nextZ = null;
1052
+ this.steiner = false;
1053
+ }
1054
+ };
1053
1055
  function signedArea(data, start, end, dim) {
1054
1056
  let sum2 = 0;
1055
1057
  for (let i = start, j = end - dim; i < end; i += dim) {
@@ -20851,8 +20853,10 @@ gl_Position = projectionMatrix * mvPosition;
20851
20853
  c.cylinder(0.36, 0.38, 0.1, plate, -1.3, 3.13, 0);
20852
20854
  c.cylinder(0.3, 0.3, 0.05, MT.steel, -1.3, 3.2, 0);
20853
20855
  c.roundBox(0.2, 0.08, 1.3, 0.03, MT.trim, bx0 - 0.25, 3.13, 0);
20854
- [-0.45, 0, 0.45].forEach(function(z) {
20855
- c.roundBox(0.14, 0.08, 0.3, 0.03, MT.amber, bx0 - 0.25, 3.2, z);
20856
+ [-0.45, 0, 0.45].forEach(function(z, i) {
20857
+ const lamp = c.roundBox(0.14, 0.08, 0.3, 0.03, MT.amber, bx0 - 0.25, 3.2, z);
20858
+ lamp.userData.lamp = "beacon";
20859
+ lamp.userData.beaconSide = i % 2;
20856
20860
  });
20857
20861
  c.rod(new V3(-2.5, 3.08, 0.6), new V3(-2.5, 3.6, 0.6), 8e-3, MT.trim);
20858
20862
  c.rod(new V3(-2.8, 3.08, -0.6), new V3(-2.8, 3.4, -0.6), 0.01, MT.trim);
@@ -27894,6 +27898,10 @@ gl_Position = projectionMatrix * mvPosition;
27894
27898
  }
27895
27899
  }
27896
27900
  });
27901
+ beacon[1].userData.lamp = "beacon";
27902
+ beacon[1].userData.beaconSide = 0;
27903
+ beacon[2].userData.lamp = "beacon";
27904
+ beacon[2].userData.beaconSide = 1;
27897
27905
  c2.meta.top = top + 0.15;
27898
27906
  c2.meta.roof.y = Math.max(c2.meta.roof.y, top + 0.15);
27899
27907
  const fx2 = I.fxB + 0.12, push = [];
@@ -29196,7 +29204,9 @@ gl_Position = projectionMatrix * mvPosition;
29196
29204
  c.roundBox(0.5, 0.018, 6e-3, 2e-3, c.paint("#f2c21a"), -0.7, 0.825, z);
29197
29205
  c.text("PRF", 0.2, 0.08, -0.7, 0.73, z + s * 2e-3, f, { fg: "#1f3f8f", size: 0.85 });
29198
29206
  c.text(trl("texts.federal_highway_police"), 0.3, 0.035, 0.24, 1, s * 0.3, f, { fg: "#f4f2ea", w: 1024, h: 120, size: 0.8 });
29199
- c.roundBox(0.05, 0.05, 0.04, 0.012, s > 0 ? MT.blue : MT.tail, 0.62, 0.95, s * 0.3, { def: true });
29207
+ const flasher = c.roundBox(0.05, 0.05, 0.04, 0.012, s > 0 ? MT.blue : MT.tail, 0.62, 0.95, s * 0.3, { def: true });
29208
+ flasher.userData.lamp = "beacon";
29209
+ flasher.userData.beaconSide = s > 0 ? 1 : 0;
29200
29210
  });
29201
29211
  c.cylinder(0.04, 0.045, 0.06, MT.trim, 0.66, 0.66, 0.36, "x");
29202
29212
  }
@@ -35727,18 +35737,19 @@ gl_Position = projectionMatrix * mvPosition;
35727
35737
  c2.roundBox(0.03, 0.12, 1.9, 0.01, rd, m.rear - 8e-3, 1.1, 0);
35728
35738
  const beaconBar = [c2.roundBox(0.3, 0.08, 1.5, 0.03, MT.trim, 0.6, m.top + 0.04, 0)];
35729
35739
  [-0.5, -0.17, 0.17, 0.5].forEach(function(z, i) {
35730
- beaconBar.push(
35731
- c2.roundBox(
35732
- 0.24,
35733
- 0.1,
35734
- 0.3,
35735
- 0.04,
35736
- i % 2 ? MT.tail : CM("#f2f2f2", { emissive: new THREE.Color("#ffffff"), emissiveIntensity: 0.6 }),
35737
- 0.6,
35738
- m.top + 0.13,
35739
- z
35740
- )
35740
+ const lamp = c2.roundBox(
35741
+ 0.24,
35742
+ 0.1,
35743
+ 0.3,
35744
+ 0.04,
35745
+ i % 2 ? MT.tail : CM("#f2f2f2", { emissive: new THREE.Color("#ffffff"), emissiveIntensity: 0.6 }),
35746
+ 0.6,
35747
+ m.top + 0.13,
35748
+ z
35741
35749
  );
35750
+ lamp.userData.lamp = "beacon";
35751
+ lamp.userData.beaconSide = z < 0 ? 0 : 1;
35752
+ beaconBar.push(lamp);
35742
35753
  });
35743
35754
  beaconBar.push(
35744
35755
  c2.roundBox(