@nativewrappers/common 0.0.45 → 0.0.47

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.
@@ -168,6 +168,9 @@ export class NetworkedMap extends Map {
168
168
  }
169
169
  [Symbol.dispose]() {
170
170
  removeEventListener("playerDropped", this.onPlayerDropped);
171
+ this.#subscribers.clear();
172
+ this.#changeListeners.clear();
173
+ this.#queuedChanges = [];
171
174
  GlobalData.NetworkedTicks.filter((v) => v !== this);
172
175
  }
173
176
  /**
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "Remco Troost <d0p3t>",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
- "version": "0.0.45",
7
+ "version": "0.0.47",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/nativewrappers/fivem.git"
package/utils/Vector.d.ts CHANGED
@@ -330,6 +330,19 @@ export declare class Vector3 extends Vector implements Vec3 {
330
330
  type: ClassTypes;
331
331
  z: number;
332
332
  static readonly Zero: Vector3;
333
+ static readonly UnitX: Vector3;
334
+ static readonly UnitY: Vector3;
335
+ static readonly UnitZ: Vector3;
336
+ static readonly One: Vector3;
337
+ static readonly Up: Vector3;
338
+ static readonly Down: Vector3;
339
+ static readonly Left: Vector3;
340
+ static readonly Right: Vector3;
341
+ static readonly ForwardRH: Vector3;
342
+ static readonly ForwardLH: Vector3;
343
+ static readonly BackwardRH: Vector3;
344
+ static readonly BackwardLH: Vector3;
345
+ static readonly Backward: Vector3;
333
346
  /**
334
347
  * Constructs a new 3D vector.
335
348
  * @param x The x-component of the vector.
package/utils/Vector.js CHANGED
@@ -475,6 +475,19 @@ export class Vector3 extends Vector {
475
475
  type = ClassTypes.Vector3;
476
476
  z;
477
477
  static Zero = new Vector3(0, 0, 0);
478
+ static UnitX = new Vector3(1.0, 0.0, 0.0);
479
+ static UnitY = new Vector3(0.0, 1.0, 0.0);
480
+ static UnitZ = new Vector3(0.0, 0.0, 1.0);
481
+ static One = new Vector3(1.0, 1.0, 1.0);
482
+ static Up = new Vector3(0.0, 0.0, 1.0);
483
+ static Down = new Vector3(0.0, 0.0, -1.0);
484
+ static Left = new Vector3(-1.0, 0.0, 0.0);
485
+ static Right = new Vector3(1.0, 0.0, 0.0);
486
+ static ForwardRH = new Vector3(0.0, 1.0, 0.0);
487
+ static ForwardLH = new Vector3(0.0, -1.0, 0.0);
488
+ static BackwardRH = new Vector3(0.0, -1.0, 0.0);
489
+ static BackwardLH = new Vector3(0.0, 1.0, 0.0);
490
+ static Backward = Vector3.BackwardRH;
478
491
  /**
479
492
  * Constructs a new 3D vector.
480
493
  * @param x The x-component of the vector.