@nativewrappers/redm 0.0.136 → 0.0.138
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/common/BaseScript.d.ts +2 -0
- package/common/BaseScript.js +10 -0
- package/common/Command.js +6 -4
- package/common/GlobalData.d.ts +10 -0
- package/common/GlobalData.js +18 -0
- package/common/collections/CircularBuffer.d.ts +18 -0
- package/common/collections/CircularBuffer.js +92 -0
- package/common/collections/Stack.d.ts +9 -0
- package/common/collections/Stack.js +0 -0
- package/common/decors/Events.js +12 -4
- package/common/decors/Exports.js +3 -1
- package/common/decors/Resources.d.ts +10 -2
- package/common/decors/Resources.js +35 -10
- package/common/decors/Ticks.js +11 -2
- package/common/net/NetworkedMap.d.ts +2 -2
- package/common/net/NetworkedMap.js +13 -1
- package/common-game/entities/CommonBaseEntityBone.d.ts +4 -4
- package/common-game/entities/CommonBaseEntityBone.js +11 -7
- package/common-game/entities/CommonBaseEntityBoneCollection.d.ts +1 -0
- package/common-game/entities/CommonEntityBone.d.ts +1 -1
- package/common-game/entities/CommonEntityBone.js +2 -2
- package/common-game/entities/CommonEntityBoneCollection.d.ts +3 -0
- package/common-game/entities/CommonEntityBoneCollection.js +6 -0
- package/common-game/entities/CommonPedBone.d.ts +1 -1
- package/common-game/entities/CommonPedBone.js +2 -2
- package/common-game/entities/CommonPedBoneCollection.d.ts +4 -1
- package/common-game/entities/CommonPedBoneCollection.js +8 -2
- package/entities/Ped.d.ts +3 -3
- package/entities/Ped.js +2 -1
- package/entities/bones/PedBoneCollection.d.ts +6 -0
- package/entities/bones/PedBoneCollection.js +15 -0
- package/enums/PedBones.d.ts +723 -0
- package/enums/PedBones.js +727 -0
- package/index.d.ts +6 -1
- package/index.js +6 -1
- package/package.json +1 -1
package/entities/Ped.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CommonPedBoneCollection } from "../common-game/entities/CommonPedBoneCollection";
|
|
2
1
|
import { ClassTypes } from "../common/utils/ClassTypes";
|
|
3
2
|
import type { Vector3 } from "../common/utils/Vector";
|
|
4
3
|
import { Tasks } from "../Task";
|
|
@@ -12,9 +11,10 @@ import type { VehicleSeat } from "../enums/VehicleSeat";
|
|
|
12
11
|
import { BaseEntity } from "./BaseEntity";
|
|
13
12
|
import { Player } from "./Player";
|
|
14
13
|
import { Vehicle } from "./Vehicle";
|
|
14
|
+
import { PedBoneCollection } from "./bones/PedBoneCollection";
|
|
15
15
|
export declare class Ped extends BaseEntity {
|
|
16
16
|
protected type: ClassTypes;
|
|
17
|
-
protected bones?:
|
|
17
|
+
protected bones?: PedBoneCollection | undefined;
|
|
18
18
|
private attributes;
|
|
19
19
|
private tasks;
|
|
20
20
|
/**
|
|
@@ -49,7 +49,7 @@ export declare class Ped extends BaseEntity {
|
|
|
49
49
|
*/
|
|
50
50
|
static removeScenarioBlock(scenarioId: number): void;
|
|
51
51
|
get Tasks(): Tasks;
|
|
52
|
-
get Bones():
|
|
52
|
+
get Bones(): PedBoneCollection;
|
|
53
53
|
/**
|
|
54
54
|
* While this increases the peds max health, if used on a player it wont increase the max core value on the hud
|
|
55
55
|
*/
|
package/entities/Ped.js
CHANGED
|
@@ -12,6 +12,7 @@ import { Attributes } from "../Attribute";
|
|
|
12
12
|
import { BaseEntity } from "./BaseEntity";
|
|
13
13
|
import { Player } from "./Player";
|
|
14
14
|
import { Vehicle } from "./Vehicle";
|
|
15
|
+
import { PedBoneCollection } from "./bones/PedBoneCollection";
|
|
15
16
|
class Ped extends BaseEntity {
|
|
16
17
|
static {
|
|
17
18
|
__name(this, "Ped");
|
|
@@ -103,7 +104,7 @@ class Ped extends BaseEntity {
|
|
|
103
104
|
return this.tasks;
|
|
104
105
|
}
|
|
105
106
|
get Bones() {
|
|
106
|
-
this.bones = this.bones ?? new
|
|
107
|
+
this.bones = this.bones ?? new PedBoneCollection(this);
|
|
107
108
|
return this.bones;
|
|
108
109
|
}
|
|
109
110
|
/**
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CommonPedBone } from "../../common-game/entities/CommonPedBone";
|
|
2
|
+
import { CommonPedBoneCollection } from "../../common-game/entities/CommonPedBoneCollection";
|
|
3
|
+
import type { PedBone } from "../../enums/PedBones";
|
|
4
|
+
export declare class PedBoneCollection extends CommonPedBoneCollection {
|
|
5
|
+
getBoneFromId(boneId: PedBone): CommonPedBone;
|
|
6
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import { CommonPedBone } from "../../common-game/entities/CommonPedBone";
|
|
4
|
+
import { CommonPedBoneCollection } from "../../common-game/entities/CommonPedBoneCollection";
|
|
5
|
+
class PedBoneCollection extends CommonPedBoneCollection {
|
|
6
|
+
static {
|
|
7
|
+
__name(this, "PedBoneCollection");
|
|
8
|
+
}
|
|
9
|
+
getBoneFromId(boneId) {
|
|
10
|
+
return new CommonPedBone(this.owner, GetPedBoneIndex(this.owner.Handle, boneId));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
PedBoneCollection
|
|
15
|
+
};
|