@ludeo/cloud-common 1.1.44 → 1.1.46
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/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/v3/events/game-resource-status-changed.d.ts +16 -0
- package/dist/v3/events/game-resource-status-changed.js +59 -0
- package/dist/v3/events/game-resource-status-changed.js.map +1 -0
- package/dist/v3/events/index.d.ts +2 -2
- package/dist/v3/events/index.js +2 -2
- package/dist/v3/events/index.js.map +1 -1
- package/dist/v3/events/monitor-game-resource-task.d.ts +14 -0
- package/dist/v3/events/monitor-game-resource-task.js +48 -0
- package/dist/v3/events/monitor-game-resource-task.js.map +1 -0
- package/package.json +1 -1
- package/src/v3/events/{game-status-changed.ts → game-resource-status-changed.ts} +8 -7
- package/src/v3/events/index.ts +2 -2
- package/src/v3/events/{monitor-game-task.ts → monitor-game-resource-task.ts} +7 -7
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { CloudResourceContext } from "../contexts/cloud-resource-context";
|
|
3
|
+
import { AWSResourceProviderSettings, CloudResourceStatus } from "../types";
|
|
4
|
+
export declare class GameResourceStatusChangedEventPayload {
|
|
5
|
+
gameResourceId: string;
|
|
6
|
+
gamePoolId: string;
|
|
7
|
+
providerSettings: AWSResourceProviderSettings;
|
|
8
|
+
status: CloudResourceStatus;
|
|
9
|
+
error?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class GameResourceStatusChangedEvent extends LudeoEvent {
|
|
12
|
+
static readonly EVENT_NAME = "cloud-resource-monitor.game-resource-status-changed";
|
|
13
|
+
constructor(payload: GameResourceStatusChangedEventPayload, context: CloudResourceContext);
|
|
14
|
+
context: CloudResourceContext;
|
|
15
|
+
payload: GameResourceStatusChangedEventPayload;
|
|
16
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GameResourceStatusChangedEvent = exports.GameResourceStatusChangedEventPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
|
+
const cloud_resource_context_1 = require("../contexts/cloud-resource-context");
|
|
16
|
+
const types_1 = require("../types");
|
|
17
|
+
const validate_nested_type_decorator_1 = require("../../decorators/validate-nested-type.decorator");
|
|
18
|
+
class GameResourceStatusChangedEventPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.GameResourceStatusChangedEventPayload = GameResourceStatusChangedEventPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsUUID)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], GameResourceStatusChangedEventPayload.prototype, "gameResourceId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUUID)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], GameResourceStatusChangedEventPayload.prototype, "gamePoolId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
|
|
31
|
+
__metadata("design:type", types_1.AWSResourceProviderSettings)
|
|
32
|
+
], GameResourceStatusChangedEventPayload.prototype, "providerSettings", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], GameResourceStatusChangedEventPayload.prototype, "status", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], GameResourceStatusChangedEventPayload.prototype, "error", void 0);
|
|
42
|
+
class GameResourceStatusChangedEvent extends ludeo_event_1.LudeoEvent {
|
|
43
|
+
constructor(payload, context) {
|
|
44
|
+
super(GameResourceStatusChangedEvent.EVENT_NAME);
|
|
45
|
+
this.payload = payload;
|
|
46
|
+
this.context = context;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.GameResourceStatusChangedEvent = GameResourceStatusChangedEvent;
|
|
50
|
+
GameResourceStatusChangedEvent.EVENT_NAME = "cloud-resource-monitor.game-resource-status-changed";
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => cloud_resource_context_1.CloudResourceContext),
|
|
53
|
+
__metadata("design:type", cloud_resource_context_1.CloudResourceContext)
|
|
54
|
+
], GameResourceStatusChangedEvent.prototype, "context", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, validate_nested_type_decorator_1.ValidateNestedType)(() => GameResourceStatusChangedEventPayload),
|
|
57
|
+
__metadata("design:type", GameResourceStatusChangedEventPayload)
|
|
58
|
+
], GameResourceStatusChangedEvent.prototype, "payload", void 0);
|
|
59
|
+
//# sourceMappingURL=game-resource-status-changed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game-resource-status-changed.js","sourceRoot":"","sources":["../../../src/v3/events/game-resource-status-changed.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,yDAAqD;AACrD,+EAA0E;AAC1E,oCAA4E;AAC5E,oGAAqF;AAErF,MAAa,qCAAqC;CAgBjD;AAhBD,sFAgBC;AAdC;IADC,IAAA,wBAAM,GAAE;;6EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;yEACU;AAGnB;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;+EAAC;AAG9C;IADC,IAAA,0BAAQ,GAAE;;qEACiB;AAI5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEACI;AAGjB,MAAa,8BAA+B,SAAQ,wBAAU;IAI5D,YACE,OAA8C,EAC9C,OAA6B;QAE7B,KAAK,CAAC,8BAA8B,CAAC,UAAU,CAAC,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AAXH,wEAkBC;AAjBiB,yCAAU,GACxB,qDAAqD,CAAC;AAYxD;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;8BACtC,6CAAoB;+DAAC;AAG9B;IADC,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;8BACvD,qCAAqC;+DAAC"}
|
|
@@ -13,7 +13,7 @@ export * from "./game-resource-created-response";
|
|
|
13
13
|
export * from "./game-resource-creation-failed-response";
|
|
14
14
|
export * from "./game-resource-terminated-response";
|
|
15
15
|
export * from "./game-resource-termination-failed-response";
|
|
16
|
-
export * from "./game-status-changed";
|
|
16
|
+
export * from "./game-resource-status-changed";
|
|
17
17
|
export * from "./machine-allocated-response";
|
|
18
18
|
export * from "./machine-allocation-failed-response";
|
|
19
19
|
export * from "./machine-deallocated-response";
|
|
@@ -21,7 +21,7 @@ export * from "./machine-deallocation-failed-response";
|
|
|
21
21
|
export * from "./machine-pool-resizing-task";
|
|
22
22
|
export * from "./machine-resource-created-response";
|
|
23
23
|
export * from "./machine-resource-creation-failed-response";
|
|
24
|
-
export * from "./monitor-game-task";
|
|
24
|
+
export * from "./monitor-game-resource-task";
|
|
25
25
|
export * from "./set-pool.event";
|
|
26
26
|
export * from "./terminate-game-resource-request";
|
|
27
27
|
export * from "./terminate-games-request";
|
package/dist/v3/events/index.js
CHANGED
|
@@ -29,7 +29,7 @@ __exportStar(require("./game-resource-created-response"), exports);
|
|
|
29
29
|
__exportStar(require("./game-resource-creation-failed-response"), exports);
|
|
30
30
|
__exportStar(require("./game-resource-terminated-response"), exports);
|
|
31
31
|
__exportStar(require("./game-resource-termination-failed-response"), exports);
|
|
32
|
-
__exportStar(require("./game-status-changed"), exports);
|
|
32
|
+
__exportStar(require("./game-resource-status-changed"), exports);
|
|
33
33
|
__exportStar(require("./machine-allocated-response"), exports);
|
|
34
34
|
__exportStar(require("./machine-allocation-failed-response"), exports);
|
|
35
35
|
__exportStar(require("./machine-deallocated-response"), exports);
|
|
@@ -37,7 +37,7 @@ __exportStar(require("./machine-deallocation-failed-response"), exports);
|
|
|
37
37
|
__exportStar(require("./machine-pool-resizing-task"), exports);
|
|
38
38
|
__exportStar(require("./machine-resource-created-response"), exports);
|
|
39
39
|
__exportStar(require("./machine-resource-creation-failed-response"), exports);
|
|
40
|
-
__exportStar(require("./monitor-game-task"), exports);
|
|
40
|
+
__exportStar(require("./monitor-game-resource-task"), exports);
|
|
41
41
|
__exportStar(require("./set-pool.event"), exports);
|
|
42
42
|
__exportStar(require("./terminate-game-resource-request"), exports);
|
|
43
43
|
__exportStar(require("./terminate-games-request"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v3/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,iEAA+C;AAC/C,yDAAuC;AACvC,0EAAwD;AACxD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,qEAAmD;AACnD,6EAA2D;AAC3D,mEAAiD;AACjD,2EAAyD;AACzD,sEAAoD;AACpD,8EAA4D;AAC5D,iEAA+C;AAC/C,+DAA6C;AAC7C,uEAAqD;AACrD,iEAA+C;AAC/C,yEAAuD;AACvD,+DAA6C;AAC7C,sEAAoD;AACpD,8EAA4D;AAC5D,+DAA6C;AAC7C,mDAAiC;AACjC,oEAAkD;AAClD,4DAA0C;AAC1C,6EAA2D;AAC3D,+DAA6C;AAC7C,4DAA0C;AAC1C,mEAAiD;AACjD,+DAA6C;AAC7C,sEAAoD;AACpD,yDAAuC;AACvC,8DAA4C;AAC5C,6DAA2C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LudeoEvent } from "../../infra/ludeo-event";
|
|
2
|
+
import { AWSResourceProviderSettings, CloudProvider } from "../types";
|
|
3
|
+
export declare class MonitorGameResourceTaskEventPayload {
|
|
4
|
+
gameResourceId: string;
|
|
5
|
+
gamePoolId: string;
|
|
6
|
+
providerSettings: AWSResourceProviderSettings;
|
|
7
|
+
cloudProvider: CloudProvider;
|
|
8
|
+
}
|
|
9
|
+
export declare class MonitorGameResourceTaskEvent extends LudeoEvent {
|
|
10
|
+
static readonly EVENT_NAME = "cloud-resources.monitor-game-resource-task";
|
|
11
|
+
constructor(payload: MonitorGameResourceTaskEventPayload);
|
|
12
|
+
context: never;
|
|
13
|
+
payload: MonitorGameResourceTaskEventPayload;
|
|
14
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.MonitorGameResourceTaskEvent = exports.MonitorGameResourceTaskEventPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const ludeo_event_1 = require("../../infra/ludeo-event");
|
|
15
|
+
const types_1 = require("../types");
|
|
16
|
+
const decorators_1 = require("../../decorators");
|
|
17
|
+
class MonitorGameResourceTaskEventPayload {
|
|
18
|
+
}
|
|
19
|
+
exports.MonitorGameResourceTaskEventPayload = MonitorGameResourceTaskEventPayload;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], MonitorGameResourceTaskEventPayload.prototype, "gameResourceId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsUUID)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], MonitorGameResourceTaskEventPayload.prototype, "gamePoolId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, decorators_1.ValidateNestedType)(() => types_1.AWSResourceProviderSettings),
|
|
30
|
+
__metadata("design:type", types_1.AWSResourceProviderSettings)
|
|
31
|
+
], MonitorGameResourceTaskEventPayload.prototype, "providerSettings", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsEnum)(types_1.CloudProvider),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], MonitorGameResourceTaskEventPayload.prototype, "cloudProvider", void 0);
|
|
36
|
+
class MonitorGameResourceTaskEvent extends ludeo_event_1.LudeoEvent {
|
|
37
|
+
constructor(payload) {
|
|
38
|
+
super(MonitorGameResourceTaskEvent.EVENT_NAME);
|
|
39
|
+
this.payload = payload;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.MonitorGameResourceTaskEvent = MonitorGameResourceTaskEvent;
|
|
43
|
+
MonitorGameResourceTaskEvent.EVENT_NAME = "cloud-resources.monitor-game-resource-task";
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, decorators_1.ValidateNestedType)(() => MonitorGameResourceTaskEventPayload),
|
|
46
|
+
__metadata("design:type", MonitorGameResourceTaskEventPayload)
|
|
47
|
+
], MonitorGameResourceTaskEvent.prototype, "payload", void 0);
|
|
48
|
+
//# sourceMappingURL=monitor-game-resource-task.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor-game-resource-task.js","sourceRoot":"","sources":["../../../src/v3/events/monitor-game-resource-task.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AACjD,yDAAqD;AACrD,oCAAsE;AACtE,iDAAsD;AAEtD,MAAa,mCAAmC;CAY/C;AAZD,kFAYC;AAVC;IADC,IAAA,wBAAM,GAAE;;2EACc;AAGvB;IADC,IAAA,wBAAM,GAAE;;uEACU;AAGnB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAA2B,CAAC;8BACpC,mCAA2B;6EAAC;AAG9C;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0EACO;AAG/B,MAAa,4BAA6B,SAAQ,wBAAU;IAG1D,YAAY,OAA4C;QACtD,KAAK,CAAC,4BAA4B,CAAC,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;;AANH,oEAYC;AAXiB,uCAAU,GAAG,4CAA4C,CAAC;AAU1E;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,mCAAmC,CAAC;8BACrD,mCAAmC;6DAAC"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import { CloudResourceContext } from "../contexts/cloud-resource-context";
|
|
|
4
4
|
import { AWSResourceProviderSettings, CloudResourceStatus } from "../types";
|
|
5
5
|
import { ValidateNestedType } from "../../decorators/validate-nested-type.decorator";
|
|
6
6
|
|
|
7
|
-
export class
|
|
7
|
+
export class GameResourceStatusChangedEventPayload {
|
|
8
8
|
@IsUUID()
|
|
9
9
|
gameResourceId: string;
|
|
10
10
|
|
|
@@ -22,14 +22,15 @@ export class GameStatusChangedEventPayload {
|
|
|
22
22
|
error?: string;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export class
|
|
26
|
-
static readonly EVENT_NAME =
|
|
25
|
+
export class GameResourceStatusChangedEvent extends LudeoEvent {
|
|
26
|
+
static readonly EVENT_NAME =
|
|
27
|
+
"cloud-resource-monitor.game-resource-status-changed";
|
|
27
28
|
|
|
28
29
|
constructor(
|
|
29
|
-
payload:
|
|
30
|
+
payload: GameResourceStatusChangedEventPayload,
|
|
30
31
|
context: CloudResourceContext
|
|
31
32
|
) {
|
|
32
|
-
super(
|
|
33
|
+
super(GameResourceStatusChangedEvent.EVENT_NAME);
|
|
33
34
|
this.payload = payload;
|
|
34
35
|
this.context = context;
|
|
35
36
|
}
|
|
@@ -37,6 +38,6 @@ export class GameStatusChangedEvent extends LudeoEvent {
|
|
|
37
38
|
@ValidateNestedType(() => CloudResourceContext)
|
|
38
39
|
context: CloudResourceContext;
|
|
39
40
|
|
|
40
|
-
@ValidateNestedType(() =>
|
|
41
|
-
payload:
|
|
41
|
+
@ValidateNestedType(() => GameResourceStatusChangedEventPayload)
|
|
42
|
+
payload: GameResourceStatusChangedEventPayload;
|
|
42
43
|
}
|
package/src/v3/events/index.ts
CHANGED
|
@@ -13,7 +13,7 @@ export * from "./game-resource-created-response";
|
|
|
13
13
|
export * from "./game-resource-creation-failed-response";
|
|
14
14
|
export * from "./game-resource-terminated-response";
|
|
15
15
|
export * from "./game-resource-termination-failed-response";
|
|
16
|
-
export * from "./game-status-changed";
|
|
16
|
+
export * from "./game-resource-status-changed";
|
|
17
17
|
export * from "./machine-allocated-response";
|
|
18
18
|
export * from "./machine-allocation-failed-response";
|
|
19
19
|
export * from "./machine-deallocated-response";
|
|
@@ -21,7 +21,7 @@ export * from "./machine-deallocation-failed-response";
|
|
|
21
21
|
export * from "./machine-pool-resizing-task";
|
|
22
22
|
export * from "./machine-resource-created-response";
|
|
23
23
|
export * from "./machine-resource-creation-failed-response";
|
|
24
|
-
export * from "./monitor-game-task";
|
|
24
|
+
export * from "./monitor-game-resource-task";
|
|
25
25
|
export * from "./set-pool.event";
|
|
26
26
|
export * from "./terminate-game-resource-request";
|
|
27
27
|
export * from "./terminate-games-request";
|
|
@@ -3,7 +3,7 @@ import { LudeoEvent } from "../../infra/ludeo-event";
|
|
|
3
3
|
import { AWSResourceProviderSettings, CloudProvider } from "../types";
|
|
4
4
|
import { ValidateNestedType } from "../../decorators";
|
|
5
5
|
|
|
6
|
-
export class
|
|
6
|
+
export class MonitorGameResourceTaskEventPayload {
|
|
7
7
|
@IsUUID()
|
|
8
8
|
gameResourceId: string;
|
|
9
9
|
|
|
@@ -17,16 +17,16 @@ export class MonitorGameTaskEventPayload {
|
|
|
17
17
|
cloudProvider: CloudProvider;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export class
|
|
21
|
-
static readonly EVENT_NAME = "cloud-resources.monitor-game-task";
|
|
20
|
+
export class MonitorGameResourceTaskEvent extends LudeoEvent {
|
|
21
|
+
static readonly EVENT_NAME = "cloud-resources.monitor-game-resource-task";
|
|
22
22
|
|
|
23
|
-
constructor(payload:
|
|
24
|
-
super(
|
|
23
|
+
constructor(payload: MonitorGameResourceTaskEventPayload) {
|
|
24
|
+
super(MonitorGameResourceTaskEvent.EVENT_NAME);
|
|
25
25
|
this.payload = payload;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
context: never;
|
|
29
29
|
|
|
30
|
-
@ValidateNestedType(() =>
|
|
31
|
-
payload:
|
|
30
|
+
@ValidateNestedType(() => MonitorGameResourceTaskEventPayload)
|
|
31
|
+
payload: MonitorGameResourceTaskEventPayload;
|
|
32
32
|
}
|