client_plugin_logic_deb 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.
@@ -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.cdx_1).g99(), fromInt(_get_serverReduxConfig__rprcrm(this.cdx_1).serverStateUpdateIntervalMillis));
868
+ var this_0 = windowedByInterval(_get_fromClientEventsObserver__a7vzd3(this.cdx_1).h99(), fromInt(_get_serverReduxConfig__rprcrm(this.cdx_1).serverStateUpdateIntervalMillis));
869
869
  suspendResult = emitAll(this.ddx_1, new _no_name_provided__qut3iv(this_0, this.bdx_1), this);
870
870
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
871
871
  return suspendResult;
@@ -2211,7 +2211,7 @@
2211
2211
  if (get_isFinished(this.ne5_1.state) || get_isFinishing(this.ne5_1.state)) {
2212
2212
  return Unit_instance;
2213
2213
  }
2214
- if (!get_isCreated(this.ne5_1.state) || !this.ke5_1.h6f().d72()) {
2214
+ if (!get_isCreated(this.ne5_1.state) || !this.ke5_1.h6f().e72()) {
2215
2215
  this.ke5_1.b56().v('GameEngine_API', 'playerLive: ' + this.le5_1 + ' before game is created');
2216
2216
  return Unit_instance;
2217
2217
  }
@@ -2268,7 +2268,7 @@
2268
2268
  if (get_isFinished(this.ae6_1.state) || get_isFinishing(this.ae6_1.state)) {
2269
2269
  return Unit_instance;
2270
2270
  }
2271
- if (!get_isCreated(this.ae6_1.state) || !this.we5_1.h6f().d72()) {
2271
+ if (!get_isCreated(this.ae6_1.state) || !this.we5_1.h6f().e72()) {
2272
2272
  this.we5_1.b56().w('GameEngine_API', 'playerLeft: ' + this.xe5_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.x98(destination);
2356
+ var previousTeams = tmp_2.y98(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.le6_1).b99(updatedTeams);
2380
+ tmp_1 = _get_teamsLogicProvider__u10pm6(this.le6_1).c99(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.ue9_1.state.c72();
2754
2754
  var player = getPlayer(table.players, this.re9_1);
2755
- if (player.k75_1.k6h().z6f_1.isLive) {
2756
- this.ue9_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.se9_1).z9f(player, table));
2755
+ if (player.l75_1.k6h().z6f_1.isLive) {
2756
+ this.ue9_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.se9_1).a9g(player, table));
2757
2757
  } else {
2758
2758
  var tmp_0 = this.ue9_1.dispatch;
2759
2759
  var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
@@ -2814,7 +2814,7 @@
2814
2814
  tmp_0 = it;
2815
2815
  }
2816
2816
  var terminationState = tmp_0;
2817
- var gameTransition = terminationState.q8k_1;
2817
+ var gameTransition = terminationState.r8k_1;
2818
2818
  var tmp_1;
2819
2819
  if (gameTransition instanceof GameToRoomTransition) {
2820
2820
  var tmp0_elvis_lhs = this.eea_1;
@@ -2824,7 +2824,7 @@
2824
2824
  }
2825
2825
  var transition = tmp_1;
2826
2826
  var tmp_2 = this.gea_1.dispatch;
2827
- var tmp0_reason = terminationState.p8k_1;
2827
+ var tmp0_reason = terminationState.q8k_1;
2828
2828
  var tmp1_isGameFinished = this.dea_1.h6f().c72().isGameFinished;
2829
2829
  tmp_2(new FinishGameMechanicAction(tmp0_reason, tmp1_isGameFinished, VOID, transition));
2830
2830
  return Unit_instance;
@@ -2921,7 +2921,7 @@
2921
2921
  if (tmp === 0) {
2922
2922
  this.t8_1 = 1;
2923
2923
  var state = this.eeb_1.store.state;
2924
- if (state.d72()) {
2924
+ if (state.e72()) {
2925
2925
  var tmp0_elvis_lhs = toDomainEnumSafe(this.aeb_1, get_serverShutdownReasonMapping());
2926
2926
  var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
2927
2927
  var tmp_0 = this.eeb_1.dispatch;
@@ -2943,7 +2943,7 @@
2943
2943
  this.beb_1.b56().w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.ceb_1);
2944
2944
  var tmp_3 = this.eeb_1.dispatch;
2945
2945
  var tmp2_safe_receiver = state.c71_1;
2946
- tmp_3(new ClearAction(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.q8k_1));
2946
+ tmp_3(new ClearAction(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.r8k_1));
2947
2947
  }
2948
2948
  return Unit_instance;
2949
2949
  } else if (tmp === 1) {
@@ -3054,7 +3054,7 @@
3054
3054
  protoOf(GameServer).s70 = function () {
3055
3055
  return this.ve1_1;
3056
3056
  };
3057
- protoOf(GameServer).g94 = function () {
3057
+ protoOf(GameServer).h94 = function () {
3058
3058
  return get_serverStatePayload(this.h6f()).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.k75_1.k6h().z6f_1.canReconnect;
3065
+ return player_0.l75_1.k6h().z6f_1.canReconnect;
3066
3066
  };
3067
3067
  protoOf(GameServer).t5j = function () {
3068
3068
  return this.h6f().c72().id;
@@ -3071,9 +3071,12 @@
3071
3071
  return this.h6f().c72();
3072
3072
  };
3073
3073
  protoOf(GameServer).d72 = function () {
3074
- return this.h6f().d72();
3074
+ return this.h6f().tableOrNull;
3075
3075
  };
3076
3076
  protoOf(GameServer).e72 = function () {
3077
+ return this.h6f().e72();
3078
+ };
3079
+ protoOf(GameServer).f72 = function () {
3077
3080
  return this.h6f().gameLifecycleState;
3078
3081
  };
3079
3082
  protoOf(GameServer).subscribeToClientAction = function (subscriber) {
@@ -3363,7 +3366,7 @@
3363
3366
  this.peb_1 = roomId;
3364
3367
  this.table = table;
3365
3368
  }
3366
- protoOf(TableStateUpdateDto).y90 = function () {
3369
+ protoOf(TableStateUpdateDto).z90 = function () {
3367
3370
  return this.peb_1;
3368
3371
  };
3369
3372
  protoOf(TableStateUpdateDto).c72 = function () {
@@ -3493,10 +3496,10 @@
3493
3496
  this.seb_1 = roomId;
3494
3497
  this.actions = actions;
3495
3498
  }
3496
- protoOf(ActionsStateUpdateDto).y90 = function () {
3499
+ protoOf(ActionsStateUpdateDto).z90 = function () {
3497
3500
  return this.seb_1;
3498
3501
  };
3499
- protoOf(ActionsStateUpdateDto).m91 = function () {
3502
+ protoOf(ActionsStateUpdateDto).n91 = 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.teb_1, encoderDecoderProvider.g98(destination));
3562
+ return new ActionsStateUpdateDto(_this__u8e3s4.teb_1, encoderDecoderProvider.h98(destination));
3560
3563
  }
3561
3564
  function mapToDto_3(_this__u8e3s4, encoderDecoderProvider) {
3562
- return new TableStateUpdateDto(_this__u8e3s4.ueb_1, encoderDecoderProvider.e98(mapToDto_0(_this__u8e3s4.table)));
3565
+ return new TableStateUpdateDto(_this__u8e3s4.ueb_1, encoderDecoderProvider.f98(mapToDto_0(_this__u8e3s4.table)));
3563
3566
  }
3564
3567
  function ServerStateUpdate() {
3565
3568
  }
@@ -3567,7 +3570,7 @@
3567
3570
  this.ueb_1 = roomId;
3568
3571
  this.table = table;
3569
3572
  }
3570
- protoOf(TableStateUpdate).y90 = function () {
3573
+ protoOf(TableStateUpdate).z90 = function () {
3571
3574
  return this.ueb_1;
3572
3575
  };
3573
3576
  protoOf(TableStateUpdate).c72 = function () {
@@ -3610,10 +3613,10 @@
3610
3613
  this.teb_1 = roomId;
3611
3614
  this.actions = actions;
3612
3615
  }
3613
- protoOf(ActionsStateUpdate).y90 = function () {
3616
+ protoOf(ActionsStateUpdate).z90 = function () {
3614
3617
  return this.teb_1;
3615
3618
  };
3616
- protoOf(ActionsStateUpdate).m91 = function () {
3619
+ protoOf(ActionsStateUpdate).n91 = function () {
3617
3620
  return this.actions;
3618
3621
  };
3619
3622
  protoOf(ActionsStateUpdate).oe = function () {
@@ -4754,10 +4757,10 @@
4754
4757
  var tmp;
4755
4758
  if (action_0 instanceof StartGameMechanicAction) {
4756
4759
  var tmp0 = this.bef_1;
4757
- var tmp2 = action_0.z8e_1;
4758
- var tmp4 = action_0.b8f_1;
4760
+ var tmp2 = action_0.a8f_1;
4761
+ var tmp4 = action_0.c8f_1;
4759
4762
  // Inline function 'kotlin.collections.map' call
4760
- var this_0 = action_0.c8f_1;
4763
+ var this_0 = action_0.d8f_1;
4761
4764
  // Inline function 'kotlin.collections.mapTo' call
4762
4765
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
4763
4766
  var _iterator__ex2g4s = this_0.l();
@@ -4824,7 +4827,7 @@
4824
4827
  } else {
4825
4828
  if (action_0 instanceof ContinueGameMechanicAction) {
4826
4829
  var tmp0_1 = this.bef_1;
4827
- var tmp2_0 = action_0.f8f_1.id;
4830
+ var tmp2_0 = action_0.g8f_1.id;
4828
4831
  var tmp4_0 = action_0.gameCreatorPlayerId;
4829
4832
  // Inline function 'kotlin.collections.map' call
4830
4833
  var this_1 = action_0.users;
@@ -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.bef_1.zee_1.supportBackwardActions && getPlayer(state.c72().players, sendToPlayer_8.h7r_1).m75_1.f7a_1) {
5078
+ if (this.bef_1.zee_1.supportBackwardActions && getPlayer(state.c72().players, sendToPlayer_8.i7r_1).n75_1.g7a_1) {
5076
5079
  tmp_0 = null;
5077
5080
  } else {
5078
5081
  tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
@@ -5091,7 +5094,7 @@
5091
5094
  var tmp0_9 = this.bef_1;
5092
5095
  var tmp2_4 = state.c72();
5093
5096
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
5094
- var exceptPlayerId = this.bef_1.zee_1.supportBackwardActions ? action_0.g8g_1 : null;
5097
+ var exceptPlayerId = this.bef_1.zee_1.supportBackwardActions ? action_0.h8g_1 : null;
5095
5098
  var sendToPlayer_9 = new RoomActionPayload(tmp0_9.aef_1.z6m(), tmp2_4.id, exceptPlayerId);
5096
5099
  var tmp$ret$109 = mapToClient_7(action_0, sendToPlayer_9);
5097
5100
  tmp = listOfNotNull(tmp$ret$109);
@@ -5100,7 +5103,7 @@
5100
5103
  var tmp0_10 = this.bef_1;
5101
5104
  var tmp2_5 = state.c72();
5102
5105
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
5103
- var exceptPlayerId_0 = this.bef_1.zee_1.supportBackwardActions ? action_0.k8g_1 : null;
5106
+ var exceptPlayerId_0 = this.bef_1.zee_1.supportBackwardActions ? action_0.l8g_1 : null;
5104
5107
  var sendToPlayer_10 = new RoomActionPayload(tmp0_10.aef_1.z6m(), tmp2_5.id, exceptPlayerId_0);
5105
5108
  var tmp$ret$111 = mapToClient_6(action_0, sendToPlayer_10);
5106
5109
  tmp = listOfNotNull(tmp$ret$111);
@@ -5117,7 +5120,7 @@
5117
5120
  var tmp0_12 = this.bef_1;
5118
5121
  var tmp2_6 = state.c72();
5119
5122
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
5120
- var exceptPlayerId_1 = this.bef_1.zee_1.supportBackwardActions ? action_0.r8g_1 : null;
5123
+ var exceptPlayerId_1 = this.bef_1.zee_1.supportBackwardActions ? action_0.s8g_1 : null;
5121
5124
  var sendToPlayer_12 = new RoomActionPayload(tmp0_12.aef_1.z6m(), tmp2_6.id, exceptPlayerId_1);
5122
5125
  var tmp$ret$115 = mapToClient_4(action_0, sendToPlayer_12);
5123
5126
  tmp = listOfNotNull(tmp$ret$115);
@@ -5126,7 +5129,7 @@
5126
5129
  var tmp0_13 = this.bef_1;
5127
5130
  var tmp2_7 = state.c72();
5128
5131
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
5129
- var exceptPlayerId_2 = this.bef_1.zee_1.supportBackwardActions ? action_0.v8g_1 : null;
5132
+ var exceptPlayerId_2 = this.bef_1.zee_1.supportBackwardActions ? action_0.w8g_1 : null;
5130
5133
  var sendToPlayer_13 = new RoomActionPayload(tmp0_13.aef_1.z6m(), tmp2_7.id, exceptPlayerId_2);
5131
5134
  var tmp$ret$117 = mapToClient_3(action_0, sendToPlayer_13);
5132
5135
  tmp = listOfNotNull(tmp$ret$117);
@@ -5148,7 +5151,7 @@
5148
5151
  tmp = listOfNotNull(tmp$ret$121);
5149
5152
  } else {
5150
5153
  if (action_0 instanceof MessageMechanicAction) {
5151
- var message = action_0.d8h_1;
5154
+ var message = action_0.e8h_1;
5152
5155
  var tmp0_16 = this.bef_1;
5153
5156
  var tmp2_8 = state.c72();
5154
5157
  var tmp_1;
@@ -5333,7 +5336,7 @@
5333
5336
  var tmp_2 = PlayerConnectionState_LIVE_getInstance();
5334
5337
  Companion_getInstance();
5335
5338
  // Inline function 'kotlin.time.Companion.milliseconds' call
5336
- var this_0 = $action.y8e_1.timeoutTimeMillis;
5339
+ var this_0 = $action.z8e_1.timeoutTimeMillis;
5337
5340
  var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
5338
5341
  tmp_0 = tmp_1.w6f(tmp_2, tmp$ret$0);
5339
5342
  }
@@ -5347,14 +5350,14 @@
5347
5350
  protoOf(ServerMechanicLifecycleReducer).va0 = function (state, action) {
5348
5351
  this.sef_1.d('ServerMechanicLifecycleReducer', 'onStart ' + get_versionOrDefault(GameEngineConfig_instance), action);
5349
5352
  var serverState = get_serverStatePayloadOrNull(state.payload);
5350
- var tableId = action.z8e_1;
5353
+ var tableId = action.a8f_1;
5351
5354
  var tmp6_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
5352
5355
  var tmp0_$this = this.wa0_1;
5353
- var tmp1_version = action.a8f_1;
5354
- var tmp2_config = action.y8e_1;
5355
- var tmp3_users = action.c8f_1;
5356
+ var tmp1_version = action.b8f_1;
5357
+ var tmp2_config = action.z8e_1;
5358
+ var tmp3_users = action.d8f_1;
5356
5359
  var tmp4_spectators = action.spectators;
5357
- var tmp5_gameCreatorPlayerId = action.b8f_1;
5360
+ var tmp5_gameCreatorPlayerId = action.c8f_1;
5358
5361
  var tmp7_tableOrNull = tmp0_$this.ca2(tableId, tableId, tmp2_config, tmp1_version, tmp3_users, tmp4_spectators, tmp5_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
5359
5362
  var tmp;
5360
5363
  if (serverState == null) {
@@ -5369,12 +5372,12 @@
5369
5372
  protoOf(ServerMechanicLifecycleReducer).ta0 = function (state, action) {
5370
5373
  this.sef_1.d('ServerMechanicLifecycleReducer', 'onContinue ' + get_versionOrDefault(GameEngineConfig_instance), action);
5371
5374
  var tmp1_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
5372
- var tmp2_tableOrNull = action.f8f_1;
5375
+ var tmp2_tableOrNull = action.g8f_1;
5373
5376
  var tmp = Companion_instance_14;
5374
5377
  var tmp_0 = get_serverStatePayload(state).config;
5375
- var tmp_1 = action.g8f_1;
5378
+ var tmp_1 = action.h8f_1;
5376
5379
  var tmp0_safe_receiver = tmp_1 instanceof RestartRoundReason ? tmp_1 : null;
5377
- var tmp3_payload = tmp.initial(tmp_0.copy(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q6d_1), addRoomMetadata(this, get_serverStatePayload(state), action.f8f_1.gameId));
5380
+ var tmp3_payload = tmp.initial(tmp_0.copy(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q6d_1), addRoomMetadata(this, get_serverStatePayload(state), action.g8f_1.gameId));
5378
5381
  return state.z9i(tmp2_tableOrNull, tmp3_payload, tmp1_gameLifecycleState, null);
5379
5382
  };
5380
5383
  protoOf(ServerMechanicLifecycleReducer).ua0 = function (state, action) {
@@ -5597,7 +5600,7 @@
5597
5600
  protoOf(ServerStatePayload).e3w = function () {
5598
5601
  return this.config;
5599
5602
  };
5600
- protoOf(ServerStatePayload).g94 = function () {
5603
+ protoOf(ServerStatePayload).h94 = function () {
5601
5604
  return this.metadata;
5602
5605
  };
5603
5606
  protoOf(ServerStatePayload).oe = function () {
@@ -6175,7 +6178,7 @@
6175
6178
  tmp_1.peg_1 = tmp_3.c1h(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).e9a(playerId, table, botConfig);
6181
+ return _get_playerAnswerInteractor__msggz1(this).f9a(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.g94();
6347
+ return this.h94();
6345
6348
  });
6346
6349
  defineProp(protoOf(GameServer), 'id', function () {
6347
6350
  return this.t5j();
@@ -6349,25 +6352,28 @@
6349
6352
  defineProp(protoOf(GameServer), 'table', function () {
6350
6353
  return this.c72();
6351
6354
  });
6352
- defineProp(protoOf(GameServer), 'isTableExists', function () {
6355
+ defineProp(protoOf(GameServer), 'tableOrNull', function () {
6353
6356
  return this.d72();
6354
6357
  });
6355
- defineProp(protoOf(GameServer), 'gameLifecycleState', function () {
6358
+ defineProp(protoOf(GameServer), 'isTableExists', function () {
6356
6359
  return this.e72();
6357
6360
  });
6361
+ defineProp(protoOf(GameServer), 'gameLifecycleState', function () {
6362
+ return this.f72();
6363
+ });
6358
6364
  protoOf($serializer).wz = typeParametersSerializers;
6359
6365
  defineProp(protoOf(TableStateUpdateDto), 'roomId', function () {
6360
- return this.y90();
6366
+ return this.z90();
6361
6367
  });
6362
6368
  protoOf($serializer_0).wz = typeParametersSerializers;
6363
6369
  defineProp(protoOf(ActionsStateUpdateDto), 'roomId', function () {
6364
- return this.y90();
6370
+ return this.z90();
6365
6371
  });
6366
6372
  defineProp(protoOf(TableStateUpdate), 'roomId', function () {
6367
- return this.y90();
6373
+ return this.z90();
6368
6374
  });
6369
6375
  defineProp(protoOf(ActionsStateUpdate), 'roomId', function () {
6370
- return this.y90();
6376
+ return this.z90();
6371
6377
  });
6372
6378
  protoOf(UpdateServerConfigAction).n6o = get_actionTag;
6373
6379
  defineProp(protoOf(UpdateServerConfigAction), 'actionTag', function () {