@armoury/fivem-roleplay-gamemode-common 1.0.52 → 1.0.54
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.
|
@@ -1,2 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Stash = void 0;
|
|
4
|
+
var Stash = /** @class */ (function () {
|
|
5
|
+
function Stash() {
|
|
6
|
+
}
|
|
7
|
+
Stash.toStub = function (stash) {
|
|
8
|
+
return {
|
|
9
|
+
id: stash.id,
|
|
10
|
+
maxSlots: stash.maxSlots,
|
|
11
|
+
maxWeight: stash.maxWeight,
|
|
12
|
+
type: stash.type,
|
|
13
|
+
slots: stash.slots,
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
return Stash;
|
|
17
|
+
}());
|
|
18
|
+
exports.Stash = Stash;
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
var Stash = /** @class */ (function () {
|
|
2
|
+
function Stash() {
|
|
3
|
+
}
|
|
4
|
+
Stash.toStub = function (stash) {
|
|
5
|
+
return {
|
|
6
|
+
id: stash.id,
|
|
7
|
+
maxSlots: stash.maxSlots,
|
|
8
|
+
maxWeight: stash.maxWeight,
|
|
9
|
+
type: stash.type,
|
|
10
|
+
slots: stash.slots,
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
return Stash;
|
|
14
|
+
}());
|
|
15
|
+
export { Stash };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Stub } from '@armoury/fivem-framework-common';
|
|
1
2
|
export interface Stash {
|
|
2
3
|
readonly id: number;
|
|
3
4
|
readonly owningPersistableId: number | null;
|
|
@@ -6,6 +7,9 @@ export interface Stash {
|
|
|
6
7
|
readonly type: string;
|
|
7
8
|
slots: Array<StashSlot | null>;
|
|
8
9
|
}
|
|
10
|
+
export declare class Stash {
|
|
11
|
+
static toStub(stash: Stash): Stub<Stash>;
|
|
12
|
+
}
|
|
9
13
|
export interface StashSlot {
|
|
10
14
|
itemIdentifier: string;
|
|
11
15
|
amount: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { House, HouseMetadata } from './models/house/house';
|
|
2
|
+
import type { Stash, StashSlot } from './models/stash/stash';
|
|
2
3
|
declare module '@armoury/fivem-framework-common' {
|
|
3
4
|
interface StubFieldRegistry {
|
|
4
5
|
House: {
|
|
@@ -10,6 +11,16 @@ declare module '@armoury/fivem-framework-common' {
|
|
|
10
11
|
metadata?: HouseMetadata;
|
|
11
12
|
};
|
|
12
13
|
};
|
|
14
|
+
Stash: {
|
|
15
|
+
model: Stash;
|
|
16
|
+
fields: {
|
|
17
|
+
id: number;
|
|
18
|
+
maxSlots: number;
|
|
19
|
+
maxWeight: number;
|
|
20
|
+
type: string;
|
|
21
|
+
slots: Array<StashSlot | null>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
13
24
|
}
|
|
14
25
|
}
|
|
15
26
|
export type { Stub } from '@armoury/fivem-framework-common';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@armoury/fivem-roleplay-gamemode-common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.54",
|
|
4
4
|
"description": "Shared APIs for the Armoury FiveM roleplay gamemode",
|
|
5
5
|
"main": "dist/cjs/shared/index.js",
|
|
6
6
|
"module": "dist/esm/shared/index.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"files": ["dist"],
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@armoury/fivem-framework-common": "
|
|
17
|
+
"@armoury/fivem-framework-common": "1.0.54"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "npm run build:cjs && npm run build:esm && npm run build:types",
|