@adatechnology/game-urban 0.3.3 → 0.3.4

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.
@@ -13634,8 +13634,10 @@ var GameUrban = (() => {
13634
13634
  c.cylinder(0.36, 0.38, 0.1, plate, -1.3, 3.13, 0);
13635
13635
  c.cylinder(0.3, 0.3, 0.05, MT.steel, -1.3, 3.2, 0);
13636
13636
  c.roundBox(0.2, 0.08, 1.3, 0.03, MT.trim, bx0 - 0.25, 3.13, 0);
13637
- [-0.45, 0, 0.45].forEach(function(z) {
13638
- c.roundBox(0.14, 0.08, 0.3, 0.03, MT.amber, bx0 - 0.25, 3.2, z);
13637
+ [-0.45, 0, 0.45].forEach(function(z, i) {
13638
+ const lamp = c.roundBox(0.14, 0.08, 0.3, 0.03, MT.amber, bx0 - 0.25, 3.2, z);
13639
+ lamp.userData.lamp = "beacon";
13640
+ lamp.userData.beaconSide = i % 2;
13639
13641
  });
13640
13642
  c.rod(new V3(-2.5, 3.08, 0.6), new V3(-2.5, 3.6, 0.6), 8e-3, MT.trim);
13641
13643
  c.rod(new V3(-2.8, 3.08, -0.6), new V3(-2.8, 3.4, -0.6), 0.01, MT.trim);
@@ -20677,6 +20679,10 @@ var GameUrban = (() => {
20677
20679
  }
20678
20680
  }
20679
20681
  });
20682
+ beacon[1].userData.lamp = "beacon";
20683
+ beacon[1].userData.beaconSide = 0;
20684
+ beacon[2].userData.lamp = "beacon";
20685
+ beacon[2].userData.beaconSide = 1;
20680
20686
  c2.meta.top = top + 0.15;
20681
20687
  c2.meta.roof.y = Math.max(c2.meta.roof.y, top + 0.15);
20682
20688
  const fx2 = I.fxB + 0.12, push = [];
@@ -21979,7 +21985,9 @@ var GameUrban = (() => {
21979
21985
  c.roundBox(0.5, 0.018, 6e-3, 2e-3, c.paint("#f2c21a"), -0.7, 0.825, z);
21980
21986
  c.text("PRF", 0.2, 0.08, -0.7, 0.73, z + s * 2e-3, f, { fg: "#1f3f8f", size: 0.85 });
21981
21987
  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 });
21982
- 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 });
21988
+ 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 });
21989
+ flasher.userData.lamp = "beacon";
21990
+ flasher.userData.beaconSide = s > 0 ? 1 : 0;
21983
21991
  });
21984
21992
  c.cylinder(0.04, 0.045, 0.06, MT.trim, 0.66, 0.66, 0.36, "x");
21985
21993
  }
@@ -28510,18 +28518,19 @@ var GameUrban = (() => {
28510
28518
  c2.roundBox(0.03, 0.12, 1.9, 0.01, rd, m.rear - 8e-3, 1.1, 0);
28511
28519
  const beaconBar = [c2.roundBox(0.3, 0.08, 1.5, 0.03, MT.trim, 0.6, m.top + 0.04, 0)];
28512
28520
  [-0.5, -0.17, 0.17, 0.5].forEach(function(z, i) {
28513
- beaconBar.push(
28514
- c2.roundBox(
28515
- 0.24,
28516
- 0.1,
28517
- 0.3,
28518
- 0.04,
28519
- i % 2 ? MT.tail : CM("#f2f2f2", { emissive: new THREE.Color("#ffffff"), emissiveIntensity: 0.6 }),
28520
- 0.6,
28521
- m.top + 0.13,
28522
- z
28523
- )
28521
+ const lamp = c2.roundBox(
28522
+ 0.24,
28523
+ 0.1,
28524
+ 0.3,
28525
+ 0.04,
28526
+ i % 2 ? MT.tail : CM("#f2f2f2", { emissive: new THREE.Color("#ffffff"), emissiveIntensity: 0.6 }),
28527
+ 0.6,
28528
+ m.top + 0.13,
28529
+ z
28524
28530
  );
28531
+ lamp.userData.lamp = "beacon";
28532
+ lamp.userData.beaconSide = z < 0 ? 0 : 1;
28533
+ beaconBar.push(lamp);
28525
28534
  });
28526
28535
  beaconBar.push(
28527
28536
  c2.roundBox(