@armoury/fivem-roleplay-gamemode-common 1.0.46 → 1.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.
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
exports.House = void 0;
|
|
4
15
|
var House = /** @class */ (function () {
|
|
@@ -15,14 +26,8 @@ var House = /** @class */ (function () {
|
|
|
15
26
|
this.sellingPrice = sellingPrice;
|
|
16
27
|
this.rentPrice = rentPrice;
|
|
17
28
|
this.requiredLevel = requiredLevel;
|
|
18
|
-
this.metadata = metadata
|
|
19
|
-
|
|
20
|
-
isOwned: owner != null,
|
|
21
|
-
tenants: 0, // TODO: Implement this
|
|
22
|
-
maxTenants: 10, // TODO: Implement this
|
|
23
|
-
acceptsTenants: true, // TODO: Implement this
|
|
24
|
-
address: address,
|
|
25
|
-
};
|
|
29
|
+
this.metadata = __assign(__assign({}, (metadata !== null && metadata !== void 0 ? metadata : {})), { isOwned: owner != null, tenants: 0, maxTenants: 10, acceptsTenants: true, // TODO: Implement this
|
|
30
|
+
address: address });
|
|
26
31
|
}
|
|
27
32
|
House.toStub = function (house) {
|
|
28
33
|
return {
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
var House = /** @class */ (function () {
|
|
2
13
|
function House(id, owner, entrance, exit, originalValue, address, sellingPrice, rentPrice, requiredLevel, metadata) {
|
|
3
14
|
if (sellingPrice === void 0) { sellingPrice = 0; }
|
|
@@ -12,14 +23,8 @@ var House = /** @class */ (function () {
|
|
|
12
23
|
this.sellingPrice = sellingPrice;
|
|
13
24
|
this.rentPrice = rentPrice;
|
|
14
25
|
this.requiredLevel = requiredLevel;
|
|
15
|
-
this.metadata = metadata
|
|
16
|
-
|
|
17
|
-
isOwned: owner != null,
|
|
18
|
-
tenants: 0, // TODO: Implement this
|
|
19
|
-
maxTenants: 10, // TODO: Implement this
|
|
20
|
-
acceptsTenants: true, // TODO: Implement this
|
|
21
|
-
address: address,
|
|
22
|
-
};
|
|
26
|
+
this.metadata = __assign(__assign({}, (metadata !== null && metadata !== void 0 ? metadata : {})), { isOwned: owner != null, tenants: 0, maxTenants: 10, acceptsTenants: true, // TODO: Implement this
|
|
27
|
+
address: address });
|
|
23
28
|
}
|
|
24
29
|
House.toStub = function (house) {
|
|
25
30
|
return {
|
|
@@ -8,7 +8,7 @@ export interface House {
|
|
|
8
8
|
readonly sellingPrice: number;
|
|
9
9
|
readonly rentPrice: number;
|
|
10
10
|
readonly requiredLevel: number;
|
|
11
|
-
|
|
11
|
+
metadata?: HouseMetadata;
|
|
12
12
|
}
|
|
13
13
|
export declare class House {
|
|
14
14
|
readonly id: number;
|
|
@@ -20,7 +20,7 @@ export declare class House {
|
|
|
20
20
|
readonly sellingPrice: number;
|
|
21
21
|
readonly rentPrice: number;
|
|
22
22
|
readonly requiredLevel: number;
|
|
23
|
-
|
|
23
|
+
metadata?: HouseMetadata;
|
|
24
24
|
constructor(id: number, owner: number | null, entrance: Position, exit: Position, originalValue: number, address: string, sellingPrice?: number, rentPrice?: number, requiredLevel?: number, metadata?: HouseMetadata);
|
|
25
25
|
static toStub(house: House): Stub<House>;
|
|
26
26
|
}
|
package/package.json
CHANGED