@ludeo/cloud-common 1.2.172 → 1.2.173-beta-yahil-2

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.
@@ -9,4 +9,5 @@ export declare class GamePoolConfiguration<T extends CloudProviderSettings = Clo
9
9
  machinePoolId: string;
10
10
  attributes: GamePoolAttributes;
11
11
  postCreationDelay?: number;
12
+ resourceWeight?: number;
12
13
  }
@@ -45,4 +45,9 @@ __decorate([
45
45
  (0, class_validator_1.IsNumber)(),
46
46
  __metadata("design:type", Number)
47
47
  ], GamePoolConfiguration.prototype, "postCreationDelay", void 0);
48
+ __decorate([
49
+ (0, class_validator_1.IsOptional)(),
50
+ (0, class_validator_1.IsNumber)(),
51
+ __metadata("design:type", Number)
52
+ ], GamePoolConfiguration.prototype, "resourceWeight", void 0);
48
53
  //# sourceMappingURL=game.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"game.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/configuration/game.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AAEvE,kCAAwC;AACxC,6CAAkD;AAClD,iCAAoD;AACpD,uDAA4D;AAC5D,uCAA6E;AAE7E,MAAa,qBAEX,SAAQ,iCAA0B;CAwBnC;AA1BD,sDA0BC;AArBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,+BAAuB,CAAC;;+DACvB;AAGrB;IADC,IAAA,wBAAM,EAAC,oBAAa,CAAC;;mDACG;AAGzB;IADC,IAAA,wBAAM,GAAE;;qDACM;AAGf;IADC,IAAA,wBAAM,GAAE;;4DACa;AAGtB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAkB,CAAC;8BACjC,+BAAkB;yDAAC;AAQ/B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gEACgB"}
1
+ {"version":3,"file":"game.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/configuration/game.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AAEvE,kCAAwC;AACxC,6CAAkD;AAClD,iCAAoD;AACpD,uDAA4D;AAC5D,uCAA6E;AAE7E,MAAa,qBAEX,SAAQ,iCAA0B;CA4BnC;AA9BD,sDA8BC;AAzBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAkB,EAAC,+BAAuB,CAAC;;+DACvB;AAGrB;IADC,IAAA,wBAAM,EAAC,oBAAa,CAAC;;mDACG;AAGzB;IADC,IAAA,wBAAM,GAAE;;qDACM;AAGf;IADC,IAAA,wBAAM,GAAE;;4DACa;AAGtB;IADC,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,+BAAkB,CAAC;8BACjC,+BAAkB;yDAAC;AAQ/B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gEACgB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACa"}
@@ -7,4 +7,7 @@ export declare class MachineCloudResource extends BaseCloudResource {
7
7
  gameResourceId?: string;
8
8
  gamePoolId?: string;
9
9
  machineSettings?: MachineResourceSettings;
10
+ gameResourceIds?: {
11
+ [gameResourceId: string]: number;
12
+ };
10
13
  }
@@ -36,4 +36,8 @@ __decorate([
36
36
  (0, class_validator_1.IsOptional)(),
37
37
  __metadata("design:type", MachineResourceSettings)
38
38
  ], MachineCloudResource.prototype, "machineSettings", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsOptional)(),
41
+ __metadata("design:type", Object)
42
+ ], MachineCloudResource.prototype, "gameResourceIds", void 0);
39
43
  //# sourceMappingURL=machine.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"machine.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/resource/machine.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,iCAA2C;AAG3C,MAAa,uBAAuB;CAKnC;AALD,0DAKC;AADC;IADC,IAAA,4BAAU,GAAE;;yDACA;AAGf,MAAa,oBAAqB,SAAQ,wBAAiB;CAW1D;AAXD,oDAWC;AARC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;wDACW;AAGpB;IADC,IAAA,4BAAU,GAAE;8BACK,uBAAuB;6DAAC"}
1
+ {"version":3,"file":"machine.js","sourceRoot":"","sources":["../../../../../src/v4/types/pools/resource/machine.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,iCAA2C;AAG3C,MAAa,uBAAuB;CAKnC;AALD,0DAKC;AADC;IADC,IAAA,4BAAU,GAAE;;yDACA;AAGf,MAAa,oBAAqB,SAAQ,wBAAiB;CAc1D;AAdD,oDAcC;AAXC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;wDACW;AAGpB;IADC,IAAA,4BAAU,GAAE;8BACK,uBAAuB;6DAAC;AAG1C;IADC,IAAA,4BAAU,GAAE;;6DAC0C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludeo/cloud-common",
3
- "version": "1.2.172",
3
+ "version": "1.2.173-beta-yahil-2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Yahil Didi",
@@ -7,7 +7,7 @@ import { ValidateNestedType } from "../../../../decorators";
7
7
  import { CloudProviderSettings, getProviderSettingsType } from "../../cloud";
8
8
 
9
9
  export class GamePoolConfiguration<
10
- T extends CloudProviderSettings = CloudProviderSettings,
10
+ T extends CloudProviderSettings = CloudProviderSettings
11
11
  > extends BaseCloudPoolConfiguration {
12
12
  @IsOptional()
13
13
  @ValidateNestedType(getProviderSettingsType)
@@ -32,4 +32,8 @@ export class GamePoolConfiguration<
32
32
  @IsOptional()
33
33
  @IsNumber()
34
34
  postCreationDelay?: number;
35
+
36
+ @IsOptional()
37
+ @IsNumber()
38
+ resourceWeight?: number;
35
39
  }
@@ -20,4 +20,7 @@ export class MachineCloudResource extends BaseCloudResource {
20
20
 
21
21
  @IsOptional()
22
22
  machineSettings?: MachineResourceSettings;
23
+
24
+ @IsOptional()
25
+ gameResourceIds?: { [gameResourceId: string]: number };
23
26
  }