@nativewrappers/redm 0.0.92 → 0.0.94
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/Ammo.d.ts +79 -0
- package/Ammo.js +237 -0
- package/BufferedClass.d.ts +6 -0
- package/BufferedClass.js +29 -0
- package/Model.d.ts +2 -0
- package/Model.js +18 -4
- package/Weapons.d.ts +147 -0
- package/Weapons.js +443 -0
- package/common/Command.d.ts +3 -3
- package/common/Command.js +12 -9
- package/entities/HorsePeltEntries.d.ts +15 -0
- package/entities/HorsePeltEntries.js +57 -0
- package/entities/Ped.d.ts +18 -0
- package/entities/Ped.js +44 -1
- package/entities/Player.d.ts +2 -0
- package/entities/Player.js +3 -0
- package/index.d.ts +9 -0
- package/index.js +9 -0
- package/inventory/Inventory.d.ts +21 -0
- package/inventory/Inventory.js +70 -0
- package/inventory/InventoryGUID.d.ts +17 -0
- package/inventory/InventoryGUID.js +53 -0
- package/inventory/InventoryTypes.d.ts +37 -0
- package/inventory/InventoryTypes.js +47 -0
- package/models/AmmoModel.d.ts +3 -0
- package/models/AmmoModel.js +11 -0
- package/models/WeaponModel.d.ts +3 -0
- package/models/WeaponModel.js +11 -0
- package/package.json +1 -1
package/entities/Ped.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
3
|
import { Tasks } from "../Task";
|
|
4
|
+
import { ItemAddReason } from "../inventory/InventoryTypes";
|
|
4
5
|
import { _N } from "../utils/Native";
|
|
5
6
|
import { Attributes } from "../Attribute";
|
|
6
7
|
import { BaseEntity } from "./BaseEntity";
|
|
@@ -41,6 +42,20 @@ class Ped extends BaseEntity {
|
|
|
41
42
|
constructor(handle) {
|
|
42
43
|
super(handle);
|
|
43
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* @returns the current horse or vehicle the ped is on, or null if they're not on either
|
|
47
|
+
*/
|
|
48
|
+
get MountedEntity() {
|
|
49
|
+
const veh = this.CurrentVehicle;
|
|
50
|
+
if (veh !== null) {
|
|
51
|
+
return veh;
|
|
52
|
+
}
|
|
53
|
+
const horse = this.Mount;
|
|
54
|
+
if (horse !== null) {
|
|
55
|
+
return horse;
|
|
56
|
+
}
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
44
59
|
/**
|
|
45
60
|
* Blocks scenarios inbetween the specified vectors
|
|
46
61
|
* @todo Move to Game
|
|
@@ -133,10 +148,16 @@ class Ped extends BaseEntity {
|
|
|
133
148
|
/**
|
|
134
149
|
* @returns the last mount that this ped was on, or null if it doesn't exist
|
|
135
150
|
*/
|
|
136
|
-
get
|
|
151
|
+
get LastMount() {
|
|
137
152
|
const pedId = _N("0x4C8B59171957BCF7", this.handle, Citizen.resultAsInteger());
|
|
138
153
|
return Ped.fromHandle(pedId);
|
|
139
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* @returns the the current mount that the ped is on, or null if there isn't one
|
|
157
|
+
*/
|
|
158
|
+
get Mount() {
|
|
159
|
+
return Ped.fromHandle(GetMount(this.handle));
|
|
160
|
+
}
|
|
140
161
|
/**
|
|
141
162
|
* returns the horse that this ped is leading
|
|
142
163
|
*/
|
|
@@ -390,6 +411,28 @@ class Ped extends BaseEntity {
|
|
|
390
411
|
resetStamina() {
|
|
391
412
|
_N("0x36513AFFC703C60D", this.handle);
|
|
392
413
|
}
|
|
414
|
+
setOwnsAnimal(ped, p2 = 0) {
|
|
415
|
+
_N("0x931B241409216C1F", this.handle, ped.Handle, p2);
|
|
416
|
+
}
|
|
417
|
+
// WEAPON NAMESPACE
|
|
418
|
+
addAmmo(weapon, amount, addReason = ItemAddReason.Default) {
|
|
419
|
+
Citizen.invokeNative("0xB190BCA3F4042F95", this.handle, weapon.Hash, amount, addReason);
|
|
420
|
+
}
|
|
421
|
+
clearLastDamage() {
|
|
422
|
+
Citizen.invokeNative("0x087D8F4BC65F68E4", this.handle);
|
|
423
|
+
}
|
|
424
|
+
disableAmmoType(ammo) {
|
|
425
|
+
Citizen.invokeNative("0xAA5A52204E077883", this.handle, ammo.Hash);
|
|
426
|
+
}
|
|
427
|
+
disableAmmoForWeapon(weapon, ammo) {
|
|
428
|
+
Citizen.invokeNative("0xF0D728EEA3C99775", this.handle, weapon.Hash, ammo.Hash);
|
|
429
|
+
}
|
|
430
|
+
get HasPistol() {
|
|
431
|
+
return Citizen.invokeNative("0xBFCA7AFABF9D7967", this.handle);
|
|
432
|
+
}
|
|
433
|
+
get HasRepeater() {
|
|
434
|
+
return Citizen.invokeNative("0x495A04CAEC263AF8", this.handle);
|
|
435
|
+
}
|
|
393
436
|
}
|
|
394
437
|
export {
|
|
395
438
|
Ped
|
package/entities/Player.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Ped } from "./Ped";
|
|
1
2
|
export declare class Player {
|
|
2
3
|
private handle;
|
|
3
4
|
static fromPedHandle(handle: number): Player;
|
|
@@ -18,4 +19,5 @@ export declare class Player {
|
|
|
18
19
|
addStaminaUpgrade(amount: number): void;
|
|
19
20
|
addHealthUpgrade(amount: number): void;
|
|
20
21
|
addDeadeyeUpgrade(amount: number): void;
|
|
22
|
+
setOwnsMount(mount: Ped): void;
|
|
21
23
|
}
|
package/entities/Player.js
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export * from "./Ammo";
|
|
1
2
|
export * from "./Attribute";
|
|
3
|
+
export * from "./BufferedClass";
|
|
2
4
|
export * from "./Controls";
|
|
3
5
|
export * from "./Game";
|
|
4
6
|
export * from "./GameConstants";
|
|
@@ -8,6 +10,7 @@ export * from "./RawKeymaps";
|
|
|
8
10
|
export * from "./RelationshipGroup";
|
|
9
11
|
export * from "./Task";
|
|
10
12
|
export * from "./Volume";
|
|
13
|
+
export * from "./Weapons";
|
|
11
14
|
export * from "./world/createDraftVehicle";
|
|
12
15
|
export * from "./world/createPed";
|
|
13
16
|
export * from "./world/createProp";
|
|
@@ -15,6 +18,11 @@ export * from "./world/createVehicle";
|
|
|
15
18
|
export * from "./utils/Animations";
|
|
16
19
|
export * from "./utils/Native";
|
|
17
20
|
export * from "./types/Throwable";
|
|
21
|
+
export * from "./models/AmmoModel";
|
|
22
|
+
export * from "./models/WeaponModel";
|
|
23
|
+
export * from "./inventory/Inventory";
|
|
24
|
+
export * from "./inventory/InventoryGUID";
|
|
25
|
+
export * from "./inventory/InventoryTypes";
|
|
18
26
|
export * from "./interfaces/Dimensions";
|
|
19
27
|
export * from "./enums/AnimationFlags";
|
|
20
28
|
export * from "./enums/Attributes";
|
|
@@ -29,6 +37,7 @@ export * from "./enums/Relationship";
|
|
|
29
37
|
export * from "./enums/VehicleSeat";
|
|
30
38
|
export * from "./entities/BaseEntity";
|
|
31
39
|
export * from "./entities/Entity";
|
|
40
|
+
export * from "./entities/HorsePeltEntries";
|
|
32
41
|
export * from "./entities/Ped";
|
|
33
42
|
export * from "./entities/Pickup";
|
|
34
43
|
export * from "./entities/Player";
|
package/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export * from "./Ammo";
|
|
1
2
|
export * from "./Attribute";
|
|
3
|
+
export * from "./BufferedClass";
|
|
2
4
|
export * from "./Controls";
|
|
3
5
|
export * from "./Game";
|
|
4
6
|
export * from "./GameConstants";
|
|
@@ -8,6 +10,7 @@ export * from "./RawKeymaps";
|
|
|
8
10
|
export * from "./RelationshipGroup";
|
|
9
11
|
export * from "./Task";
|
|
10
12
|
export * from "./Volume";
|
|
13
|
+
export * from "./Weapons";
|
|
11
14
|
export * from "./world/createDraftVehicle";
|
|
12
15
|
export * from "./world/createPed";
|
|
13
16
|
export * from "./world/createProp";
|
|
@@ -15,6 +18,11 @@ export * from "./world/createVehicle";
|
|
|
15
18
|
export * from "./utils/Animations";
|
|
16
19
|
export * from "./utils/Native";
|
|
17
20
|
export * from "./types/Throwable";
|
|
21
|
+
export * from "./models/AmmoModel";
|
|
22
|
+
export * from "./models/WeaponModel";
|
|
23
|
+
export * from "./inventory/Inventory";
|
|
24
|
+
export * from "./inventory/InventoryGUID";
|
|
25
|
+
export * from "./inventory/InventoryTypes";
|
|
18
26
|
export * from "./interfaces/Dimensions";
|
|
19
27
|
export * from "./enums/AnimationFlags";
|
|
20
28
|
export * from "./enums/Attributes";
|
|
@@ -29,6 +37,7 @@ export * from "./enums/Relationship";
|
|
|
29
37
|
export * from "./enums/VehicleSeat";
|
|
30
38
|
export * from "./entities/BaseEntity";
|
|
31
39
|
export * from "./entities/Entity";
|
|
40
|
+
export * from "./entities/HorsePeltEntries";
|
|
32
41
|
export * from "./entities/Ped";
|
|
33
42
|
export * from "./entities/Pickup";
|
|
34
43
|
export * from "./entities/Player";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Model } from "../Model";
|
|
2
|
+
import { RDRInventoryGUID } from "./InventoryGUID";
|
|
3
|
+
import { InventoryIndex, ItemAddReason } from "./InventoryTypes";
|
|
4
|
+
declare enum FailReason {
|
|
5
|
+
Success = 0,
|
|
6
|
+
ItemWasntValid = 1,
|
|
7
|
+
NoCharacterGuid = 2,
|
|
8
|
+
NoWardrobeGuid = 3,
|
|
9
|
+
ItemDidntExist = 4,
|
|
10
|
+
FailedToEquip = 5
|
|
11
|
+
}
|
|
12
|
+
export declare const CHARACTER_HASH: number;
|
|
13
|
+
export declare const WARDROBE_HASH: number;
|
|
14
|
+
export declare const PLAYER_INVENTORY_ID = InventoryIndex.SinglePlayer;
|
|
15
|
+
export declare class RDRInventory {
|
|
16
|
+
GetGuidFromItemId(inventoryId: InventoryIndex, itemData: RDRInventoryGUID | null, category: number, slotId: number): RDRInventoryGUID | null;
|
|
17
|
+
AddItem(inventoryId: InventoryIndex, itemHash: number, amount: number, slotHash: number, inventoryGuid: RDRInventoryGUID, addReason?: ItemAddReason): RDRInventoryGUID | null;
|
|
18
|
+
EquipItemWithGUID(inventoryId: InventoryIndex, itemGUID: RDRInventoryGUID, equipped?: boolean): boolean;
|
|
19
|
+
AddItemToPlayer(itemName: Model, amount: number, slotHash: number): (boolean | FailReason)[];
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import { RDRInventoryGUID } from "./InventoryGUID";
|
|
4
|
+
import { InventoryIndex, ItemAddReason } from "./InventoryTypes";
|
|
5
|
+
const CHARACTER_HASH = GetHashKey("CHARACTER");
|
|
6
|
+
const WARDROBE_HASH = GetHashKey("WARDROBE");
|
|
7
|
+
const PLAYER_INVENTORY_ID = InventoryIndex.SinglePlayer;
|
|
8
|
+
class RDRInventory {
|
|
9
|
+
static {
|
|
10
|
+
__name(this, "RDRInventory");
|
|
11
|
+
}
|
|
12
|
+
GetGuidFromItemId(inventoryId, itemData, category, slotId) {
|
|
13
|
+
const outInventoryGuid = new RDRInventoryGUID();
|
|
14
|
+
const success = Citizen.invokeNative(
|
|
15
|
+
"0x886DFD3E185C8A89",
|
|
16
|
+
inventoryId,
|
|
17
|
+
itemData?.buffer ?? 0,
|
|
18
|
+
category,
|
|
19
|
+
slotId,
|
|
20
|
+
outInventoryGuid.buffer
|
|
21
|
+
);
|
|
22
|
+
return success ? outInventoryGuid : null;
|
|
23
|
+
}
|
|
24
|
+
AddItem(inventoryId, itemHash, amount, slotHash, inventoryGuid, addReason = ItemAddReason.Default) {
|
|
25
|
+
const itemData = new RDRInventoryGUID();
|
|
26
|
+
const wasAdded = Citizen.invokeNative(
|
|
27
|
+
"0xCB5D11F9508A928D",
|
|
28
|
+
inventoryId,
|
|
29
|
+
itemData.buffer,
|
|
30
|
+
inventoryGuid.buffer,
|
|
31
|
+
itemHash,
|
|
32
|
+
slotHash,
|
|
33
|
+
amount,
|
|
34
|
+
addReason
|
|
35
|
+
);
|
|
36
|
+
return wasAdded ? itemData : null;
|
|
37
|
+
}
|
|
38
|
+
EquipItemWithGUID(inventoryId, itemGUID, equipped = true) {
|
|
39
|
+
return Citizen.invokeNative("0x734311E2852760D0", inventoryId, itemGUID, equipped);
|
|
40
|
+
}
|
|
41
|
+
AddItemToPlayer(itemName, amount, slotHash) {
|
|
42
|
+
const isValid = Citizen.invokeNative("0x6D5D51B188333FD1", itemName.Hash, 0);
|
|
43
|
+
if (!isValid) {
|
|
44
|
+
return [false, 1 /* ItemWasntValid */];
|
|
45
|
+
}
|
|
46
|
+
const characterGuid = this.GetGuidFromItemId(PLAYER_INVENTORY_ID, null, CHARACTER_HASH, 2703302912);
|
|
47
|
+
if (!characterGuid) {
|
|
48
|
+
return [false, 2 /* NoCharacterGuid */];
|
|
49
|
+
}
|
|
50
|
+
const wardrobeGuid = this.GetGuidFromItemId(PLAYER_INVENTORY_ID, characterGuid, WARDROBE_HASH, 1034665895);
|
|
51
|
+
if (!wardrobeGuid) {
|
|
52
|
+
return [false, 3 /* NoWardrobeGuid */];
|
|
53
|
+
}
|
|
54
|
+
const itemGuid = this.AddItem(PLAYER_INVENTORY_ID, itemName.Hash, amount, slotHash, wardrobeGuid);
|
|
55
|
+
if (!itemGuid) {
|
|
56
|
+
return [false, 4 /* ItemDidntExist */];
|
|
57
|
+
}
|
|
58
|
+
const equipped = this.EquipItemWithGUID(PLAYER_INVENTORY_ID, itemGuid, true);
|
|
59
|
+
if (!equipped) {
|
|
60
|
+
return [false, 5 /* FailedToEquip */];
|
|
61
|
+
}
|
|
62
|
+
return [true, 0 /* Success */];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
CHARACTER_HASH,
|
|
67
|
+
PLAYER_INVENTORY_ID,
|
|
68
|
+
RDRInventory,
|
|
69
|
+
WARDROBE_HASH
|
|
70
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BufferedClass } from "../BufferedClass";
|
|
2
|
+
export declare class RDRInventoryGUID extends BufferedClass {
|
|
3
|
+
constructor();
|
|
4
|
+
get Unk1(): number;
|
|
5
|
+
get Unk2(): number;
|
|
6
|
+
get ItemCategory(): number;
|
|
7
|
+
get Unk3(): number;
|
|
8
|
+
get ItemHash(): number;
|
|
9
|
+
get Unk4(): number;
|
|
10
|
+
get Unk5(): number;
|
|
11
|
+
get Unk6(): number;
|
|
12
|
+
get Unk7(): number;
|
|
13
|
+
get Unk8(): number;
|
|
14
|
+
get CatalogueType(): number;
|
|
15
|
+
get Quantity(): number;
|
|
16
|
+
get Unk9(): number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import { BufferedClass } from "../BufferedClass";
|
|
4
|
+
class RDRInventoryGUID extends BufferedClass {
|
|
5
|
+
static {
|
|
6
|
+
__name(this, "RDRInventoryGUID");
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
super(104);
|
|
10
|
+
}
|
|
11
|
+
get Unk1() {
|
|
12
|
+
return this.view.getUint32(8 * 0 /* Unk1 */);
|
|
13
|
+
}
|
|
14
|
+
get Unk2() {
|
|
15
|
+
return this.view.getUint32(8 * 1 /* Unk2 */);
|
|
16
|
+
}
|
|
17
|
+
get ItemCategory() {
|
|
18
|
+
return this.view.getUint32(8 * 2 /* InventoryCategory */);
|
|
19
|
+
}
|
|
20
|
+
get Unk3() {
|
|
21
|
+
return this.view.getUint32(8 * 3 /* Unk3 */);
|
|
22
|
+
}
|
|
23
|
+
get ItemHash() {
|
|
24
|
+
return this.view.getUint32(8 * 4 /* ItemHash */);
|
|
25
|
+
}
|
|
26
|
+
get Unk4() {
|
|
27
|
+
return this.view.getUint32(8 * 5 /* Unk4 */);
|
|
28
|
+
}
|
|
29
|
+
get Unk5() {
|
|
30
|
+
return this.view.getUint32(8 * 6 /* Unk5 */);
|
|
31
|
+
}
|
|
32
|
+
get Unk6() {
|
|
33
|
+
return this.view.getUint32(8 * 7 /* Unk6 */);
|
|
34
|
+
}
|
|
35
|
+
get Unk7() {
|
|
36
|
+
return this.view.getUint32(8 * 8 /* Unk7 */);
|
|
37
|
+
}
|
|
38
|
+
get Unk8() {
|
|
39
|
+
return this.view.getUint32(8 * 9 /* Unk8 */);
|
|
40
|
+
}
|
|
41
|
+
get CatalogueType() {
|
|
42
|
+
return this.view.getUint32(8 * 10 /* CatalogueType */);
|
|
43
|
+
}
|
|
44
|
+
get Quantity() {
|
|
45
|
+
return this.view.getUint32(8 * 11 /* Quantity */);
|
|
46
|
+
}
|
|
47
|
+
get Unk9() {
|
|
48
|
+
return this.view.getUint32(8 * 12 /* Unk9 */);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
RDRInventoryGUID
|
|
53
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare enum InventoryIndex {
|
|
2
|
+
Invalid = 0,
|
|
3
|
+
SinglePlayer = 1,
|
|
4
|
+
MultiPlayer = 2,
|
|
5
|
+
MultiplayerMission = 3,
|
|
6
|
+
SecondScreen = 4,
|
|
7
|
+
SinglePlayerBackup = 5,
|
|
8
|
+
SinglePlayerSnapshot = 6,
|
|
9
|
+
UNK_0xDE2AE452 = 7,
|
|
10
|
+
UNK_0x399D9B3A = 8,
|
|
11
|
+
UNK_0x4BD43FA7 = 9,
|
|
12
|
+
UNK_0x9529D251 = 10,
|
|
13
|
+
UNK_0xA75776AC = 11
|
|
14
|
+
}
|
|
15
|
+
export declare enum InventoryItemSlots {
|
|
16
|
+
}
|
|
17
|
+
export declare enum InventoryCategory {
|
|
18
|
+
}
|
|
19
|
+
export declare enum ItemAddReason {
|
|
20
|
+
Default = 752097756,
|
|
21
|
+
Incentive = -1965281643,
|
|
22
|
+
Syncing = -1924444172,
|
|
23
|
+
Awards = -1216041698,
|
|
24
|
+
Notification = -983395630,
|
|
25
|
+
Loadout = -902540058,
|
|
26
|
+
Looted = -897553835,
|
|
27
|
+
UseFailed = -746211728,
|
|
28
|
+
GetInventory = -669481339,
|
|
29
|
+
CreateCharacter = -490406031,
|
|
30
|
+
MpMission = -334626412,
|
|
31
|
+
Pickup = 444010018,
|
|
32
|
+
SetAmount = 1157919518,
|
|
33
|
+
Purchased = 1248274121,
|
|
34
|
+
LoadSaveGame = 1445013766,
|
|
35
|
+
Debug = 1543882317,
|
|
36
|
+
Melee = 2073812199
|
|
37
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var InventoryIndex = /* @__PURE__ */ ((InventoryIndex2) => {
|
|
2
|
+
InventoryIndex2[InventoryIndex2["Invalid"] = 0] = "Invalid";
|
|
3
|
+
InventoryIndex2[InventoryIndex2["SinglePlayer"] = 1] = "SinglePlayer";
|
|
4
|
+
InventoryIndex2[InventoryIndex2["MultiPlayer"] = 2] = "MultiPlayer";
|
|
5
|
+
InventoryIndex2[InventoryIndex2["MultiplayerMission"] = 3] = "MultiplayerMission";
|
|
6
|
+
InventoryIndex2[InventoryIndex2["SecondScreen"] = 4] = "SecondScreen";
|
|
7
|
+
InventoryIndex2[InventoryIndex2["SinglePlayerBackup"] = 5] = "SinglePlayerBackup";
|
|
8
|
+
InventoryIndex2[InventoryIndex2["SinglePlayerSnapshot"] = 6] = "SinglePlayerSnapshot";
|
|
9
|
+
InventoryIndex2[InventoryIndex2["UNK_0xDE2AE452"] = 7] = "UNK_0xDE2AE452";
|
|
10
|
+
InventoryIndex2[InventoryIndex2["UNK_0x399D9B3A"] = 8] = "UNK_0x399D9B3A";
|
|
11
|
+
InventoryIndex2[InventoryIndex2["UNK_0x4BD43FA7"] = 9] = "UNK_0x4BD43FA7";
|
|
12
|
+
InventoryIndex2[InventoryIndex2["UNK_0x9529D251"] = 10] = "UNK_0x9529D251";
|
|
13
|
+
InventoryIndex2[InventoryIndex2["UNK_0xA75776AC"] = 11] = "UNK_0xA75776AC";
|
|
14
|
+
return InventoryIndex2;
|
|
15
|
+
})(InventoryIndex || {});
|
|
16
|
+
var InventoryItemSlots = /* @__PURE__ */ ((InventoryItemSlots2) => {
|
|
17
|
+
return InventoryItemSlots2;
|
|
18
|
+
})(InventoryItemSlots || {});
|
|
19
|
+
var InventoryCategory = /* @__PURE__ */ ((InventoryCategory2) => {
|
|
20
|
+
return InventoryCategory2;
|
|
21
|
+
})(InventoryCategory || {});
|
|
22
|
+
var ItemAddReason = /* @__PURE__ */ ((ItemAddReason2) => {
|
|
23
|
+
ItemAddReason2[ItemAddReason2["Default"] = 752097756] = "Default";
|
|
24
|
+
ItemAddReason2[ItemAddReason2["Incentive"] = -1965281643] = "Incentive";
|
|
25
|
+
ItemAddReason2[ItemAddReason2["Syncing"] = -1924444172] = "Syncing";
|
|
26
|
+
ItemAddReason2[ItemAddReason2["Awards"] = -1216041698] = "Awards";
|
|
27
|
+
ItemAddReason2[ItemAddReason2["Notification"] = -983395630] = "Notification";
|
|
28
|
+
ItemAddReason2[ItemAddReason2["Loadout"] = -902540058] = "Loadout";
|
|
29
|
+
ItemAddReason2[ItemAddReason2["Looted"] = -897553835] = "Looted";
|
|
30
|
+
ItemAddReason2[ItemAddReason2["UseFailed"] = -746211728] = "UseFailed";
|
|
31
|
+
ItemAddReason2[ItemAddReason2["GetInventory"] = -669481339] = "GetInventory";
|
|
32
|
+
ItemAddReason2[ItemAddReason2["CreateCharacter"] = -490406031] = "CreateCharacter";
|
|
33
|
+
ItemAddReason2[ItemAddReason2["MpMission"] = -334626412] = "MpMission";
|
|
34
|
+
ItemAddReason2[ItemAddReason2["Pickup"] = 444010018] = "Pickup";
|
|
35
|
+
ItemAddReason2[ItemAddReason2["SetAmount"] = 1157919518] = "SetAmount";
|
|
36
|
+
ItemAddReason2[ItemAddReason2["Purchased"] = 1248274121] = "Purchased";
|
|
37
|
+
ItemAddReason2[ItemAddReason2["LoadSaveGame"] = 1445013766] = "LoadSaveGame";
|
|
38
|
+
ItemAddReason2[ItemAddReason2["Debug"] = 1543882317] = "Debug";
|
|
39
|
+
ItemAddReason2[ItemAddReason2["Melee"] = 2073812199] = "Melee";
|
|
40
|
+
return ItemAddReason2;
|
|
41
|
+
})(ItemAddReason || {});
|
|
42
|
+
export {
|
|
43
|
+
InventoryCategory,
|
|
44
|
+
InventoryIndex,
|
|
45
|
+
InventoryItemSlots,
|
|
46
|
+
ItemAddReason
|
|
47
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import { Model } from "../Model";
|
|
4
|
+
class AmmoModel extends Model {
|
|
5
|
+
static {
|
|
6
|
+
__name(this, "AmmoModel");
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
AmmoModel
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import { Model } from "../Model";
|
|
4
|
+
class WeaponModel extends Model {
|
|
5
|
+
static {
|
|
6
|
+
__name(this, "WeaponModel");
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
WeaponModel
|
|
11
|
+
};
|