raspberry_games_server_game_logic 1.8.432 → 1.8.433

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.
@@ -380,7 +380,7 @@
380
380
  function addFormatStructureForTime(structure) {
381
381
  this.v5k(structure);
382
382
  }
383
- initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithTime, WithDate]);
383
+ initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithDate, WithTime]);
384
384
  initMetadataForClass(Builder_0, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder]);
385
385
  initMetadataForClass(LocalDateTimeFormat, 'LocalDateTimeFormat', VOID, AbstractDateTimeFormat);
386
386
  function set_fractionOfSecond(value) {
@@ -402,7 +402,7 @@
402
402
  initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
403
403
  //endregion
404
404
  function GameEngineConfig() {
405
- this.version = '1.8.432';
405
+ this.version = '1.8.433';
406
406
  }
407
407
  protoOf(GameEngineConfig).b3w = function () {
408
408
  return this.version;
@@ -1396,6 +1396,7 @@
1396
1396
  initMetadataForInterface(RatingHelper, 'RatingHelper');
1397
1397
  initMetadataForClass(RatingHelperImpl, 'RatingHelperImpl', VOID, VOID, [RatingHelper]);
1398
1398
  initMetadataForClass(EngineHelpersFactory, 'EngineHelpersFactory', EngineHelpersFactory);
1399
+ initMetadataForClass(BotRatingRange, 'BotRatingRange');
1399
1400
  //endregion
1400
1401
  function Companion() {
1401
1402
  Companion_instance_4 = this;
@@ -59279,10 +59280,7 @@
59279
59280
  var maxRating = targetLeague.getMaxRating(defaultConfig.maxUserRating);
59280
59281
  var factor = 0.3;
59281
59282
  var botMaxRating = numberToInt(minRating + (maxRating - minRating | 0) * factor);
59282
- // Inline function 'kotlin.arrayOf' call
59283
- // Inline function 'kotlin.js.unsafeCast' call
59284
- // Inline function 'kotlin.js.asDynamic' call
59285
- return [minRating, botMaxRating];
59283
+ return new BotRatingRange(minRating, botMaxRating);
59286
59284
  };
59287
59285
  protoOf(GameHelperImpl).h9o = function (store, playerIds, includeBots) {
59288
59286
  var state = store.state;
@@ -60535,6 +60533,49 @@
60535
60533
  getPropertyCallableRef('gameResources', 1, tmp, EngineHelpersFactory$_get_gameResources_$ref_kynd2o_0(), null);
60536
60534
  return tmp0.x();
60537
60535
  };
60536
+ function BotRatingRange(min, max) {
60537
+ this.min = min;
60538
+ this.max = max;
60539
+ }
60540
+ protoOf(BotRatingRange).n9p = function () {
60541
+ return this.min;
60542
+ };
60543
+ protoOf(BotRatingRange).o9p = function () {
60544
+ return this.max;
60545
+ };
60546
+ protoOf(BotRatingRange).oe = function () {
60547
+ return this.min;
60548
+ };
60549
+ protoOf(BotRatingRange).pe = function () {
60550
+ return this.max;
60551
+ };
60552
+ protoOf(BotRatingRange).p9p = function (min, max) {
60553
+ return new BotRatingRange(min, max);
60554
+ };
60555
+ protoOf(BotRatingRange).copy = function (min, max, $super) {
60556
+ min = min === VOID ? this.min : min;
60557
+ max = max === VOID ? this.max : max;
60558
+ return $super === VOID ? this.p9p(min, max) : $super.p9p.call(this, min, max);
60559
+ };
60560
+ protoOf(BotRatingRange).toString = function () {
60561
+ return 'BotRatingRange(min=' + this.min + ', max=' + this.max + ')';
60562
+ };
60563
+ protoOf(BotRatingRange).hashCode = function () {
60564
+ var result = this.min;
60565
+ result = imul(result, 31) + this.max | 0;
60566
+ return result;
60567
+ };
60568
+ protoOf(BotRatingRange).equals = function (other) {
60569
+ if (this === other)
60570
+ return true;
60571
+ if (!(other instanceof BotRatingRange))
60572
+ return false;
60573
+ if (!(this.min === other.min))
60574
+ return false;
60575
+ if (!(this.max === other.max))
60576
+ return false;
60577
+ return true;
60578
+ };
60538
60579
  //region block: post-declaration
60539
60580
  defineProp(protoOf(GameLifecycleState), 'isActive', protoOf(GameLifecycleState).g1p);
60540
60581
  defineProp(protoOf(GameLifecycleState), 'isFinishing', protoOf(GameLifecycleState).s6t);
@@ -62256,6 +62297,8 @@
62256
62297
  defineProp(_, 'WARN', get_WARN, VOID, true);
62257
62298
  var $di = _.di || (_.di = {});
62258
62299
  $di.EngineHelpersFactory = EngineHelpersFactory;
62300
+ var $models = _.models || (_.models = {});
62301
+ $models.BotRatingRange = BotRatingRange;
62259
62302
  }
62260
62303
  $jsExportAll$(_);
62261
62304
  _.$jsExportAll$ = $jsExportAll$;