raspberry_games_engine_helpers 1.8.257 → 1.8.258

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.
@@ -324,7 +324,7 @@
324
324
  function addFormatStructureForTime(structure) {
325
325
  this.r1k(structure);
326
326
  }
327
- initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithDate, WithTime]);
327
+ initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithTime, WithDate]);
328
328
  function offsetHours$default(padding, $super) {
329
329
  padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
330
330
  var tmp;
@@ -203,7 +203,7 @@
203
203
  initMetadataForClass(LoggerOutputDataDto, 'LoggerOutputDataDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_7});
204
204
  //endregion
205
205
  function GameEngineConfig() {
206
- this.version = '1.8.257';
206
+ this.version = '1.8.258';
207
207
  }
208
208
  protoOf(GameEngineConfig).e25 = function () {
209
209
  return this.version;
@@ -1822,7 +1822,6 @@ export declare interface GameHelper {
1822
1822
  prepareConfigObjectWithPagination(config: any): any;
1823
1823
  prepareConfigObject(config: any): any;
1824
1824
  isValidConfigObject(config: any): boolean;
1825
- isValidConfig(players: number, points: number, timeoutTime: number, rulesPreset: string, rules: any): boolean;
1826
1825
  getRulesByType(rulesSetType: games.jass.logic.data.models.rules.RulesSetType): games.jass.logic.data.models.rules.Rules;
1827
1826
  getRulesByString(name: string): games.jass.logic.data.models.rules.Rules;
1828
1827
  mapRulesSetType(name: string): games.jass.logic.data.models.rules.RulesSetType;
@@ -671,6 +671,8 @@
671
671
  initMetadataForInterface(EncoderDecoderProvider, 'EncoderDecoderProvider');
672
672
  initMetadataForClass(EncoderDecoderProviderImpl, 'EncoderDecoderProviderImpl', VOID, VOID, [EncoderDecoderProvider]);
673
673
  initMetadataForClass(DealerStrategy, 'DealerStrategy', VOID, Enum);
674
+ initMetadataForInterface(RatingCalculator, 'RatingCalculator');
675
+ initMetadataForClass(RatingCalculatorImpl, 'RatingCalculatorImpl', RatingCalculatorImpl, VOID, [RatingCalculator]);
674
676
  initMetadataForClass(UserRatingInteractor, 'UserRatingInteractor');
675
677
  initMetadataForInterface(AppStatePayload, 'AppStatePayload');
676
678
  initMetadataForClass(ClearAction, 'ClearAction', ClearAction, VOID, [Action, NotValidateIfGameFinishing, NotValidateIfGameFinished]);
@@ -722,11 +724,11 @@
722
724
  initMetadataForClass(FinishingGameMechanicAction, 'FinishingGameMechanicAction', VOID, MechanicAction, [MechanicAction, TerminatedAction, NotValidateIfGameFinishing]);
723
725
  initMetadataForClass(FinishGameMechanicAction, 'FinishGameMechanicAction', VOID, MechanicAction, [MechanicAction, NotValidateIfGameFinishing, TerminatedAction]);
724
726
  initMetadataForInterface(NavigationMechanicAction, 'NavigationMechanicAction', VOID, VOID, [Action]);
725
- initMetadataForClass(SceneMechanicAction, 'SceneMechanicAction', VOID, MechanicAction, [MechanicAction, NavigationMechanicAction, ReleaseBufferTriggerAction, Action, NotValidateIfGameFinishing, NotValidateIfGameFinished]);
727
+ initMetadataForClass(SceneMechanicAction, 'SceneMechanicAction', VOID, MechanicAction, [MechanicAction, NavigationMechanicAction, Action, ReleaseBufferTriggerAction, NotValidateIfGameFinishing, NotValidateIfGameFinished]);
726
728
  initMetadataForClass(PlayerConnectionChangedMechanicAction, 'PlayerConnectionChangedMechanicAction', VOID, MechanicAction, [MechanicAction, NotValidateIfGameFinishing, NotValidateIfGameFinished]);
727
729
  initMetadataForClass(ContinueGameMechanicAction, 'ContinueGameMechanicAction', VOID, MechanicAction, [MechanicAction, FirstMechanicAction, NotValidateIfGameFinishing, NotValidateIfGameFinished]);
728
730
  initMetadataForClass(RestartGameMechanicAction, 'RestartGameMechanicAction', VOID, MechanicAction, [MechanicAction, BufferedAction]);
729
- initMetadataForClass(SceneActMechanicAction, 'SceneActMechanicAction', VOID, MechanicAction, [MechanicAction, NavigationMechanicAction, ReleaseBufferTriggerAction, Action]);
731
+ initMetadataForClass(SceneActMechanicAction, 'SceneActMechanicAction', VOID, MechanicAction, [MechanicAction, NavigationMechanicAction, Action, ReleaseBufferTriggerAction]);
730
732
  initMetadataForClass(TeamsDataMechanicAction, 'TeamsDataMechanicAction', VOID, MechanicAction, [MechanicAction, Action, BufferedAction]);
731
733
  function get_playerId_0() {
732
734
  return this.k3r();
@@ -27366,6 +27368,9 @@
27366
27368
  modules = modules === VOID ? emptyList() : modules;
27367
27369
  return Module_init_$Create$('Json Module', VOID, VOID, jsonModule$lambda(modules));
27368
27370
  }
27371
+ function get_ratingModule() {
27372
+ return Module_init_$Create$('Rating module', VOID, VOID, _get_ratingModule_$lambda_udzfl5);
27373
+ }
27369
27374
  function jsonModule$lambda$lambda($modules) {
27370
27375
  return function ($this$singleton) {
27371
27376
  return jsonCreator($modules);
@@ -27413,6 +27418,51 @@
27413
27418
  return Unit_instance;
27414
27419
  };
27415
27420
  }
27421
+ function _get_ratingModule_$lambda_udzfl5($this$Module) {
27422
+ // Inline function 'org.kodein.di.bind' call
27423
+ // Inline function 'org.kodein.type.generic' call
27424
+ var tmp = typeToken(createKType(getKClass(RatingCalculator), arrayOf([]), false));
27425
+ var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
27426
+ var tmp_0 = $this$Module.k1z(tmp$ret$0, null, null);
27427
+ // Inline function 'org.kodein.di.singleton' call
27428
+ var creator = _get_ratingModule_$lambda$lambda_fvtge;
27429
+ var tmp_1 = $this$Module.p1z();
27430
+ var tmp_2 = $this$Module.n1z();
27431
+ var tmp_3 = $this$Module.o1z();
27432
+ // Inline function 'org.kodein.type.generic' call
27433
+ var tmp_4 = typeToken(createKType(getKClass(RatingCalculatorImpl), arrayOf([]), false));
27434
+ var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
27435
+ var tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, creator);
27436
+ tmp_0.e23(tmp$ret$3);
27437
+ // Inline function 'org.kodein.di.bind' call
27438
+ // Inline function 'org.kodein.type.generic' call
27439
+ var tmp_5 = typeToken(createKType(getKClass(UserRatingInteractor), arrayOf([]), false));
27440
+ var tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
27441
+ var tmp_6 = $this$Module.k1z(tmp$ret$4, null, null);
27442
+ // Inline function 'org.kodein.di.singleton' call
27443
+ var creator_0 = _get_ratingModule_$lambda$lambda_fvtge_0;
27444
+ var tmp_7 = $this$Module.p1z();
27445
+ var tmp_8 = $this$Module.n1z();
27446
+ var tmp_9 = $this$Module.o1z();
27447
+ // Inline function 'org.kodein.type.generic' call
27448
+ var tmp_10 = typeToken(createKType(getKClass(UserRatingInteractor), arrayOf([]), false));
27449
+ var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
27450
+ var tmp$ret$7 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$6, null, true, creator_0);
27451
+ tmp_6.e23(tmp$ret$7);
27452
+ return Unit_instance;
27453
+ }
27454
+ function _get_ratingModule_$lambda$lambda_fvtge($this$singleton) {
27455
+ return new RatingCalculatorImpl();
27456
+ }
27457
+ function _get_ratingModule_$lambda$lambda_fvtge_0($this$singleton) {
27458
+ // Inline function 'org.kodein.di.instance' call
27459
+ var tmp = $this$singleton.t20();
27460
+ // Inline function 'org.kodein.type.generic' call
27461
+ var tmp_0 = typeToken(createKType(getKClass(RatingCalculator), arrayOf([]), false));
27462
+ var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
27463
+ var tmp$ret$1 = tmp.s20(tmp$ret$0, null);
27464
+ return new UserRatingInteractor(tmp$ret$1);
27465
+ }
27416
27466
  var DealerStrategy_STANDARD_instance;
27417
27467
  var DealerStrategy_HOST_STANDARD_instance;
27418
27468
  var DealerStrategy_RANDOM_ORG_instance;
@@ -27500,6 +27550,10 @@
27500
27550
  DealerStrategy_initEntries();
27501
27551
  return DealerStrategy_EQUAL_HAND_BY_VALUE_instance;
27502
27552
  }
27553
+ function RatingCalculator() {
27554
+ }
27555
+ function RatingCalculatorImpl() {
27556
+ }
27503
27557
  function UserRatingInteractor(ratingCalculator) {
27504
27558
  this.f3o_1 = ratingCalculator;
27505
27559
  }
@@ -30920,24 +30974,22 @@
30920
30974
  };
30921
30975
  protoOf(GameHelperImpl).isValidConfigObject = function (config) {
30922
30976
  var map = mapOfObject(config);
30923
- var rules = map.d2('rules');
30924
30977
  var tmp = getValue(map, 'players');
30925
- var tmp_0 = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : THROW_CCE();
30926
- var tmp_1 = getValue(map, 'points');
30927
- var tmp_2 = (!(tmp_1 == null) ? typeof tmp_1 === 'number' : false) ? tmp_1 : THROW_CCE();
30928
- var tmp_3 = getValue(map, 'timeoutTime');
30929
- var tmp_4 = (!(tmp_3 == null) ? typeof tmp_3 === 'number' : false) ? tmp_3 : THROW_CCE();
30930
- var tmp_5 = getValue(map, 'rulesPreset');
30931
- var tmp_6 = (!(tmp_5 == null) ? typeof tmp_5 === 'string' : false) ? tmp_5 : THROW_CCE();
30932
- var tmp_7;
30933
- if (rules != null && rules != undefined) {
30934
- tmp_7 = this.mapRules(rules);
30978
+ var players = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : THROW_CCE();
30979
+ var tmp_0 = getValue(map, 'points');
30980
+ var points = (!(tmp_0 == null) ? typeof tmp_0 === 'number' : false) ? tmp_0 : THROW_CCE();
30981
+ var tmp_1 = getValue(map, 'timeoutTime');
30982
+ var timeoutTime = (!(tmp_1 == null) ? typeof tmp_1 === 'number' : false) ? tmp_1 : THROW_CCE();
30983
+ var tmp_2 = getValue(map, 'rulesPreset');
30984
+ var rulesPreset = (!(tmp_2 == null) ? typeof tmp_2 === 'string' : false) ? tmp_2 : THROW_CCE();
30985
+ var rulesMap = map.d2('rules');
30986
+ var tmp_3;
30987
+ if (rulesMap != null && rulesMap != undefined) {
30988
+ tmp_3 = this.mapRules(rulesMap);
30935
30989
  } else {
30936
- tmp_7 = null;
30990
+ tmp_3 = null;
30937
30991
  }
30938
- return this.isValidConfig(tmp_0, tmp_2, tmp_4, tmp_6, tmp_7);
30939
- };
30940
- protoOf(GameHelperImpl).isValidConfig = function (players, points, timeoutTime, rulesPreset, rules) {
30992
+ var rules = tmp_3;
30941
30993
  validatePoints(this, points);
30942
30994
  validatePlayers(this, players);
30943
30995
  validateTimeoutTime(this, timeoutTime);
@@ -31409,6 +31461,7 @@
31409
31461
  }
31410
31462
  function EngineHelpersFactory$di$delegate$lambda$lambda($this$DI) {
31411
31463
  $this$DI.m1z(jsonModule());
31464
+ $this$DI.m1z(get_ratingModule());
31412
31465
  $this$DI.m1z(engineHelpersModule());
31413
31466
  return Unit_instance;
31414
31467
  }