@nativewrappers/server 0.0.80 → 0.0.82

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.
Files changed (57) hide show
  1. package/Game.js +62 -0
  2. package/cfx/StateBagChangeHandler.js +0 -0
  3. package/cfx/index.d.ts +1 -1
  4. package/cfx/index.js +4 -0
  5. package/common/Command.js +111 -0
  6. package/common/Convar.js +58 -0
  7. package/common/GlobalData.js +16 -0
  8. package/common/Kvp.js +137 -0
  9. package/common/Resource.js +54 -0
  10. package/common/decors/Events.js +170 -0
  11. package/common/net/NetworkedMap.js +225 -0
  12. package/common/types.js +0 -0
  13. package/common/utils/ClassTypes.js +15 -0
  14. package/common/utils/Color.js +33 -0
  15. package/common/utils/Delay.d.ts +1 -0
  16. package/common/utils/Delay.js +6 -0
  17. package/common/utils/Maths.js +18 -0
  18. package/common/utils/Point.d.ts +9 -0
  19. package/common/utils/Point.js +36 -0
  20. package/common/utils/PointF.d.ts +1 -1
  21. package/common/utils/PointF.js +18 -0
  22. package/common/utils/Quaternion.d.ts +1 -1
  23. package/common/utils/Quaternion.js +33 -0
  24. package/common/utils/Vector.js +589 -0
  25. package/common/utils/cleanPlayerName.js +17 -0
  26. package/common/utils/enumValues.js +20 -0
  27. package/common/utils/getStringFromUInt8Array.js +6 -0
  28. package/common/utils/getUInt32FromUint8Array.js +6 -0
  29. package/entities/BaseEntity.d.ts +2 -3
  30. package/entities/BaseEntity.js +141 -0
  31. package/entities/Entity.js +20 -0
  32. package/entities/Ped.d.ts +1 -1
  33. package/entities/Ped.js +85 -0
  34. package/entities/Player.d.ts +1 -1
  35. package/entities/Player.js +143 -0
  36. package/entities/Prop.d.ts +1 -1
  37. package/entities/Prop.js +38 -0
  38. package/entities/Vehicle.d.ts +2 -2
  39. package/entities/Vehicle.js +181 -0
  40. package/enum/OrphanMode.js +9 -0
  41. package/enum/PopulationType.js +17 -0
  42. package/enum/VehicleLockStatus.js +13 -0
  43. package/enum/VehicleType.js +14 -0
  44. package/enum/eEntityType.js +9 -0
  45. package/index.js +36 -2125
  46. package/package.json +2 -2
  47. package/type/Anticheat.js +0 -0
  48. package/type/Hash.js +0 -0
  49. package/common/index.d.ts +0 -8
  50. package/common/utils/Vector2.d.ts +0 -1
  51. package/common/utils/Vector3.d.ts +0 -1
  52. package/common/utils/Vector4.d.ts +0 -1
  53. package/common/utils/index.d.ts +0 -12
  54. package/entities/index.d.ts +0 -5
  55. package/enum/index.d.ts +0 -5
  56. package/index.d.ts +0 -7
  57. package/utils/index.d.ts +0 -1
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "license": "MIT",
10
10
  "type": "module",
11
- "version": "0.0.80",
11
+ "version": "0.0.82",
12
12
  "repository": {
13
13
  "type": "git",
14
14
  "url": "https://github.com/nativewrappers/nativewrappers.git"
@@ -29,6 +29,6 @@
29
29
  "./**/*.d.ts"
30
30
  ],
31
31
  "exports": {
32
- ".": "./index.js"
32
+ "./*": "./*"
33
33
  }
34
34
  }
File without changes
package/type/Hash.js ADDED
File without changes
package/common/index.d.ts DELETED
@@ -1,8 +0,0 @@
1
- export * from "./utils";
2
- export * from "./net/NetworkedMap";
3
- export * from "./decors/Events";
4
- export * from "./Convar";
5
- export * from "./Command";
6
- export * from "./Kvp";
7
- export * from "./Resource";
8
- export * from "./utils/index";
@@ -1 +0,0 @@
1
- export { Vector2 } from "./Vector";
@@ -1 +0,0 @@
1
- export { Vector3 } from "./Vector";
@@ -1 +0,0 @@
1
- export { Vector4 } from "./Vector";
@@ -1,12 +0,0 @@
1
- export * from "./Vector2";
2
- export * from "./Vector3";
3
- export * from "./Vector4";
4
- export * from "./PointF";
5
- export * from "./Maths";
6
- export * from "./Quaternion";
7
- export * from "./Color";
8
- export { cleanPlayerName } from "./cleanPlayerName";
9
- export declare const Delay: (milliseconds: number) => Promise<void>;
10
- export { enumValues } from "./enumValues";
11
- export { getStringFromUInt8Array } from "./getStringFromUInt8Array";
12
- export { getUInt32FromUint8Array } from "./getUInt32FromUint8Array";
@@ -1,5 +0,0 @@
1
- export { Entity } from "./Entity";
2
- export { Ped } from "./Ped";
3
- export { Player } from "./Player";
4
- export { Prop } from "./Prop";
5
- export { Vehicle } from "./Vehicle";
package/enum/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export { eEntityType } from "./eEntityType";
2
- export { PopulationType } from "./PopulationType";
3
- export { VehicleLockStatus } from "./VehicleLockStatus";
4
- export { VehicleType } from "./VehicleType";
5
- export { OrphanMode } from "./OrphanMode";
package/index.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export * from "./utils";
2
- export * from "./Game";
3
- export * from "./common/index";
4
- export * from "./enum/index";
5
- export * from "./utils/index";
6
- export * from "./entities/index";
7
- export * from "./cfx/index";
package/utils/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export { cleanPlayerName, Vector2, Vector3, Vector4, Maths, Quaternion, Color, Delay, enumValues, getStringFromUInt8Array, getUInt32FromUint8Array, } from "../common/utils/index";