raspberry_games_server_game_logic 1.8.403 → 1.8.404

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.
@@ -706,6 +706,7 @@ export declare namespace games.jass.logic {
706
706
  interface GameStoreContract {
707
707
  readonly id: string;
708
708
  readonly table: games.jass.logic.data.models.table.JassTable;
709
+ readonly tableOrNull: Nullable<games.jass.logic.data.models.table.JassTable>;
709
710
  readonly isTableExists: boolean;
710
711
  readonly gameLifecycleState: games.jass.logic.data.models.GameLifecycleState;
711
712
  readonly __doNotUseOrImplementIt: {
@@ -865,7 +865,7 @@
865
865
  continue $sm;
866
866
  case 1:
867
867
  this.s8_1 = 2;
868
- var this_0 = windowedByInterval(_get_fromClientEventsObserver__a7vzd3(this.q9p_1).i8o(), fromInt(_get_serverReduxConfig__rprcrm(this.q9p_1).serverStateUpdateIntervalMillis));
868
+ var this_0 = windowedByInterval(_get_fromClientEventsObserver__a7vzd3(this.q9p_1).j8o(), fromInt(_get_serverReduxConfig__rprcrm(this.q9p_1).serverStateUpdateIntervalMillis));
869
869
  suspendResult = emitAll(this.r9p_1, new _no_name_provided__qut3iv(this_0, this.p9p_1), this);
870
870
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
871
871
  return suspendResult;
@@ -2211,7 +2211,7 @@
2211
2211
  if (get_isFinished(this.g9y_1.state) || get_isFinishing(this.g9y_1.state)) {
2212
2212
  return Unit_instance;
2213
2213
  }
2214
- if (!get_isCreated(this.g9y_1.state) || !this.d9y_1.t66().x6r()) {
2214
+ if (!get_isCreated(this.g9y_1.state) || !this.d9y_1.t66().y6r()) {
2215
2215
  this.d9y_1.h4q().v('GameEngine_API', 'playerLive: ' + this.e9y_1 + ' before game is created');
2216
2216
  return Unit_instance;
2217
2217
  }
@@ -2268,7 +2268,7 @@
2268
2268
  if (get_isFinished(this.t9y_1.state) || get_isFinishing(this.t9y_1.state)) {
2269
2269
  return Unit_instance;
2270
2270
  }
2271
- if (!get_isCreated(this.t9y_1.state) || !this.p9y_1.t66().x6r()) {
2271
+ if (!get_isCreated(this.t9y_1.state) || !this.p9y_1.t66().y6r()) {
2272
2272
  this.p9y_1.h4q().w('GameEngine_API', 'playerLeft: ' + this.q9y_1 + ' before game is created');
2273
2273
  return Unit_instance;
2274
2274
  }
@@ -2353,7 +2353,7 @@
2353
2353
  var item = _iterator__ex2g4s.n();
2354
2354
  destination.j(new GameServer$roomOnCreate$2$updatedUsers$previousTeams$1(item));
2355
2355
  }
2356
- var previousTeams = tmp_2.z8n(destination);
2356
+ var previousTeams = tmp_2.a8o(destination);
2357
2357
  var destination_0 = ArrayList_init_$Create$_0();
2358
2358
  var _iterator__ex2g4s_0 = users.l();
2359
2359
  while (_iterator__ex2g4s_0.m()) {
@@ -2377,7 +2377,7 @@
2377
2377
  destination_1.j(destination_2);
2378
2378
  }
2379
2379
  var updatedTeams = destination_1;
2380
- tmp_1 = _get_teamsLogicProvider__u10pm6(this.e9z_1).d8o(updatedTeams);
2380
+ tmp_1 = _get_teamsLogicProvider__u10pm6(this.e9z_1).e8o(updatedTeams);
2381
2381
  } else {
2382
2382
  tmp_1 = users;
2383
2383
  }
@@ -2752,8 +2752,8 @@
2752
2752
  this.t8_1 = 1;
2753
2753
  var table = this.na2_1.state.w6r();
2754
2754
  var player = getPlayer(table.players, this.ka2_1);
2755
- if (player.e6v_1.y68().n67_1.isLive) {
2756
- this.na2_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.la2_1).t8u(player, table));
2755
+ if (player.f6v_1.y68().n67_1.isLive) {
2756
+ this.na2_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.la2_1).u8u(player, table));
2757
2757
  } else {
2758
2758
  var tmp_0 = this.na2_1.dispatch;
2759
2759
  var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
@@ -2921,7 +2921,7 @@
2921
2921
  if (tmp === 0) {
2922
2922
  this.t8_1 = 1;
2923
2923
  var state = this.xa3_1.store.state;
2924
- if (state.x6r()) {
2924
+ if (state.y6r()) {
2925
2925
  var tmp0_elvis_lhs = toDomainEnumSafe(this.ta3_1, get_serverShutdownReasonMapping());
2926
2926
  var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
2927
2927
  var tmp_0 = this.xa3_1.dispatch;
@@ -3054,7 +3054,7 @@
3054
3054
  protoOf(GameServer).m6q = function () {
3055
3055
  return this.j9u_1;
3056
3056
  };
3057
- protoOf(GameServer).i8j = function () {
3057
+ protoOf(GameServer).j8j = function () {
3058
3058
  return get_serverStatePayload_0(this.t66()).metadata;
3059
3059
  };
3060
3060
  protoOf(GameServer).canReconnectPlayer = function (player) {
@@ -3062,7 +3062,7 @@
3062
3062
  if (player_0 == null) {
3063
3063
  return false;
3064
3064
  }
3065
- return player_0.e6v_1.y68().n67_1.canReconnect;
3065
+ return player_0.f6v_1.y68().n67_1.canReconnect;
3066
3066
  };
3067
3067
  protoOf(GameServer).y53 = function () {
3068
3068
  return this.t66().w6r().id;
@@ -3071,9 +3071,12 @@
3071
3071
  return this.t66().w6r();
3072
3072
  };
3073
3073
  protoOf(GameServer).x6r = function () {
3074
- return this.t66().x6r();
3074
+ return this.t66().tableOrNull;
3075
3075
  };
3076
3076
  protoOf(GameServer).y6r = function () {
3077
+ return this.t66().y6r();
3078
+ };
3079
+ protoOf(GameServer).z6r = function () {
3077
3080
  return this.t66().gameLifecycleState;
3078
3081
  };
3079
3082
  protoOf(GameServer).subscribeToClientAction = function (subscriber) {
@@ -3363,7 +3366,7 @@
3363
3366
  this.ia4_1 = roomId;
3364
3367
  this.table = table;
3365
3368
  }
3366
- protoOf(TableStateUpdateDto).b8g = function () {
3369
+ protoOf(TableStateUpdateDto).c8g = function () {
3367
3370
  return this.ia4_1;
3368
3371
  };
3369
3372
  protoOf(TableStateUpdateDto).w6r = function () {
@@ -3493,10 +3496,10 @@
3493
3496
  this.la4_1 = roomId;
3494
3497
  this.actions = actions;
3495
3498
  }
3496
- protoOf(ActionsStateUpdateDto).b8g = function () {
3499
+ protoOf(ActionsStateUpdateDto).c8g = function () {
3497
3500
  return this.la4_1;
3498
3501
  };
3499
- protoOf(ActionsStateUpdateDto).p8g = function () {
3502
+ protoOf(ActionsStateUpdateDto).q8g = function () {
3500
3503
  return this.actions;
3501
3504
  };
3502
3505
  protoOf(ActionsStateUpdateDto).oe = function () {
@@ -3556,10 +3559,10 @@
3556
3559
  var tmp$ret$0 = mapToDto(item);
3557
3560
  destination.j(tmp$ret$0);
3558
3561
  }
3559
- return new ActionsStateUpdateDto(_this__u8e3s4.ma4_1, encoderDecoderProvider.i8n(destination));
3562
+ return new ActionsStateUpdateDto(_this__u8e3s4.ma4_1, encoderDecoderProvider.j8n(destination));
3560
3563
  }
3561
3564
  function mapToDto_3(_this__u8e3s4, encoderDecoderProvider) {
3562
- return new TableStateUpdateDto(_this__u8e3s4.na4_1, encoderDecoderProvider.g8n(mapToDto_0(_this__u8e3s4.table)));
3565
+ return new TableStateUpdateDto(_this__u8e3s4.na4_1, encoderDecoderProvider.h8n(mapToDto_0(_this__u8e3s4.table)));
3563
3566
  }
3564
3567
  function ServerStateUpdate() {
3565
3568
  }
@@ -3567,7 +3570,7 @@
3567
3570
  this.na4_1 = roomId;
3568
3571
  this.table = table;
3569
3572
  }
3570
- protoOf(TableStateUpdate).b8g = function () {
3573
+ protoOf(TableStateUpdate).c8g = function () {
3571
3574
  return this.na4_1;
3572
3575
  };
3573
3576
  protoOf(TableStateUpdate).w6r = function () {
@@ -3610,10 +3613,10 @@
3610
3613
  this.ma4_1 = roomId;
3611
3614
  this.actions = actions;
3612
3615
  }
3613
- protoOf(ActionsStateUpdate).b8g = function () {
3616
+ protoOf(ActionsStateUpdate).c8g = function () {
3614
3617
  return this.ma4_1;
3615
3618
  };
3616
- protoOf(ActionsStateUpdate).p8g = function () {
3619
+ protoOf(ActionsStateUpdate).q8g = function () {
3617
3620
  return this.actions;
3618
3621
  };
3619
3622
  protoOf(ActionsStateUpdate).oe = function () {
@@ -5072,7 +5075,7 @@
5072
5075
  }
5073
5076
  var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tmp2_3, tmp4_3, element_8, destination_20);
5074
5077
  var tmp_0;
5075
- if (this.ua7_1.sa7_1.supportBackwardActions && getPlayer(state.w6r().players, sendToPlayer_8.w7f_1).g6v_1.b6z_1) {
5078
+ if (this.ua7_1.sa7_1.supportBackwardActions && getPlayer(state.w6r().players, sendToPlayer_8.x7f_1).h6v_1.c6z_1) {
5076
5079
  tmp_0 = null;
5077
5080
  } else {
5078
5081
  tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
@@ -5100,7 +5103,7 @@
5100
5103
  var tmp0_10 = this.ua7_1;
5101
5104
  var tmp2_5 = state.w6r();
5102
5105
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
5103
- var exceptPlayerId_0 = this.ua7_1.sa7_1.supportBackwardActions ? action_0.q8v_1 : null;
5106
+ var exceptPlayerId_0 = this.ua7_1.sa7_1.supportBackwardActions ? action_0.r8v_1 : null;
5104
5107
  var sendToPlayer_10 = new RoomActionPayload(tmp0_10.ta7_1.d6e(), tmp2_5.id, exceptPlayerId_0);
5105
5108
  var tmp$ret$111 = mapToClient_6(action_0, sendToPlayer_10);
5106
5109
  tmp = listOfNotNull(tmp$ret$111);
@@ -5126,7 +5129,7 @@
5126
5129
  var tmp0_13 = this.ua7_1;
5127
5130
  var tmp2_7 = state.w6r();
5128
5131
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
5129
- var exceptPlayerId_2 = this.ua7_1.sa7_1.supportBackwardActions ? action_0.v8v_1 : null;
5132
+ var exceptPlayerId_2 = this.ua7_1.sa7_1.supportBackwardActions ? action_0.w8v_1 : null;
5130
5133
  var sendToPlayer_13 = new RoomActionPayload(tmp0_13.ta7_1.d6e(), tmp2_7.id, exceptPlayerId_2);
5131
5134
  var tmp$ret$117 = mapToClient_3(action_0, sendToPlayer_13);
5132
5135
  tmp = listOfNotNull(tmp$ret$117);
@@ -5597,7 +5600,7 @@
5597
5600
  protoOf(ServerStatePayload).z3s = function () {
5598
5601
  return this.config;
5599
5602
  };
5600
- protoOf(ServerStatePayload).i8j = function () {
5603
+ protoOf(ServerStatePayload).j8j = function () {
5601
5604
  return this.metadata;
5602
5605
  };
5603
5606
  protoOf(ServerStatePayload).oe = function () {
@@ -6175,7 +6178,7 @@
6175
6178
  tmp_1.ja9_1 = tmp_3.w64(this, getPropertyCallableRef('playerAnswerInteractor', 1, tmp_4, TestHelperImpl$_get_playerAnswerInteractor_$ref_1j4fiy(), null));
6176
6179
  }
6177
6180
  protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
6178
- return _get_playerAnswerInteractor__msggz1(this).y8o(playerId, table, botConfig);
6181
+ return _get_playerAnswerInteractor__msggz1(this).z8o(playerId, table, botConfig);
6179
6182
  };
6180
6183
  protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
6181
6184
  var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
@@ -6341,7 +6344,7 @@
6341
6344
  protoOf(GameServer).roomOnDelete = roomOnDelete;
6342
6345
  protoOf(GameServer).shutdown = shutdown;
6343
6346
  defineProp(protoOf(GameServer), 'metadata', function () {
6344
- return this.i8j();
6347
+ return this.j8j();
6345
6348
  });
6346
6349
  defineProp(protoOf(GameServer), 'id', function () {
6347
6350
  return this.y53();
@@ -6349,25 +6352,28 @@
6349
6352
  defineProp(protoOf(GameServer), 'table', function () {
6350
6353
  return this.w6r();
6351
6354
  });
6352
- defineProp(protoOf(GameServer), 'isTableExists', function () {
6355
+ defineProp(protoOf(GameServer), 'tableOrNull', function () {
6353
6356
  return this.x6r();
6354
6357
  });
6355
- defineProp(protoOf(GameServer), 'gameLifecycleState', function () {
6358
+ defineProp(protoOf(GameServer), 'isTableExists', function () {
6356
6359
  return this.y6r();
6357
6360
  });
6361
+ defineProp(protoOf(GameServer), 'gameLifecycleState', function () {
6362
+ return this.z6r();
6363
+ });
6358
6364
  protoOf($serializer).wz = typeParametersSerializers;
6359
6365
  defineProp(protoOf(TableStateUpdateDto), 'roomId', function () {
6360
- return this.b8g();
6366
+ return this.c8g();
6361
6367
  });
6362
6368
  protoOf($serializer_0).wz = typeParametersSerializers;
6363
6369
  defineProp(protoOf(ActionsStateUpdateDto), 'roomId', function () {
6364
- return this.b8g();
6370
+ return this.c8g();
6365
6371
  });
6366
6372
  defineProp(protoOf(TableStateUpdate), 'roomId', function () {
6367
- return this.b8g();
6373
+ return this.c8g();
6368
6374
  });
6369
6375
  defineProp(protoOf(ActionsStateUpdate), 'roomId', function () {
6370
- return this.b8g();
6376
+ return this.c8g();
6371
6377
  });
6372
6378
  protoOf(UpdateServerConfigAction).r6f = get_actionTag;
6373
6379
  defineProp(protoOf(UpdateServerConfigAction), 'actionTag', function () {