game_client_logic_deb 1.8.394 → 1.8.396

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.
@@ -180,8 +180,8 @@
180
180
  var WaitingForConnectionReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.d5;
181
181
  var GameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.p4;
182
182
  var NotValidateIfGameFinished = kotlin_io_raspberryapps_game_engine_core.$_$.x1;
183
- var parseActionName = kotlin_io_raspberryapps_game_engine_core.$_$.w2;
184
183
  var FirstMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.u2;
184
+ var parseActionName = kotlin_io_raspberryapps_game_engine_core.$_$.w2;
185
185
  var take = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.w;
186
186
  var emitAll = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b;
187
187
  var transformLatest = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x;
@@ -9134,9 +9134,9 @@
9134
9134
  $this.rab_1.w('OnlineGameMechanic', 'passWhenIsCreatedOrFinishing fail', new MechanicException('Current state: ' + gameLifecycleState.toString() + ', ' + toString(action)));
9135
9135
  }
9136
9136
  }
9137
- function OnlineGameMechanicImpl$mechanicActions$slambda(this$0, $actions, resultContinuation) {
9138
- this.aac_1 = this$0;
9139
- this.bac_1 = $actions;
9137
+ function OnlineGameMechanicImpl$mechanicActions$slambda($actions, this$0, resultContinuation) {
9138
+ this.aac_1 = $actions;
9139
+ this.bac_1 = this$0;
9140
9140
  CoroutineImpl.call(this, resultContinuation);
9141
9141
  }
9142
9142
  protoOf(OnlineGameMechanicImpl$mechanicActions$slambda).ta5 = function ($this$dispatchAsync, store, $completion) {
@@ -9156,42 +9156,22 @@
9156
9156
  var tmp = this.r8_1;
9157
9157
  if (tmp === 0) {
9158
9158
  this.s8_1 = 1;
9159
- var this_0 = this.bac_1;
9160
- var destination = ArrayList_init_$Create$(this_0.length);
9159
+ var indexedObject = this.aac_1;
9161
9160
  var inductionVariable = 0;
9162
- var last = this_0.length;
9161
+ var last = indexedObject.length;
9163
9162
  while (inductionVariable < last) {
9164
- var item = this_0[inductionVariable];
9163
+ var element = indexedObject[inductionVariable];
9165
9164
  inductionVariable = inductionVariable + 1 | 0;
9166
- destination.j(parseActionName(item));
9167
- }
9168
- this.aac_1.rab_1.d('OnlineGameMechanic', 'mechanicActions inside = ' + toString(destination) + ', state: ' + this.dac_1.state.gameLifecycleState.toString());
9169
- var indexedObject = this.bac_1;
9170
- var inductionVariable_0 = 0;
9171
- var last_0 = indexedObject.length;
9172
- while (inductionVariable_0 < last_0) {
9173
- var element = indexedObject[inductionVariable_0];
9174
- inductionVariable_0 = inductionVariable_0 + 1 | 0;
9175
9165
  if (isInterface(element, FirstMechanicAction)) {
9176
- passWhenIsCreating(this.aac_1, this.dac_1, element);
9166
+ passWhenIsCreating(this.bac_1, this.dac_1, element);
9177
9167
  } else {
9178
9168
  if (isInterface(element, TerminatedAction)) {
9179
- passWhenIsCreatedOrFinishing(this.aac_1, this.dac_1, element);
9169
+ passWhenIsCreatedOrFinishing(this.bac_1, this.dac_1, element);
9180
9170
  } else {
9181
- passWhenIsCreated(this.aac_1, this.dac_1, element);
9171
+ passWhenIsCreated(this.bac_1, this.dac_1, element);
9182
9172
  }
9183
9173
  }
9184
9174
  }
9185
- var this_1 = this.bac_1;
9186
- var destination_0 = ArrayList_init_$Create$(this_1.length);
9187
- var inductionVariable_1 = 0;
9188
- var last_1 = this_1.length;
9189
- while (inductionVariable_1 < last_1) {
9190
- var item_0 = this_1[inductionVariable_1];
9191
- inductionVariable_1 = inductionVariable_1 + 1 | 0;
9192
- destination_0.j(parseActionName(item_0));
9193
- }
9194
- this.aac_1.rab_1.d('OnlineGameMechanic', 'mechanicActions after = ' + toString(destination_0) + ', state: ' + this.aac_1.gameLifecycleState.toString());
9195
9175
  return Unit_instance;
9196
9176
  } else if (tmp === 1) {
9197
9177
  throw this.u8_1;
@@ -9208,8 +9188,8 @@
9208
9188
  i.dac_1 = store;
9209
9189
  return i;
9210
9190
  };
9211
- function OnlineGameMechanicImpl$mechanicActions$slambda_0(this$0, $actions, resultContinuation) {
9212
- var i = new OnlineGameMechanicImpl$mechanicActions$slambda(this$0, $actions, resultContinuation);
9191
+ function OnlineGameMechanicImpl$mechanicActions$slambda_0($actions, this$0, resultContinuation) {
9192
+ var i = new OnlineGameMechanicImpl$mechanicActions$slambda($actions, this$0, resultContinuation);
9213
9193
  var l = function ($this$dispatchAsync, store, $completion) {
9214
9194
  return i.ta5($this$dispatchAsync, store, $completion);
9215
9195
  };
@@ -9241,7 +9221,7 @@
9241
9221
  destination.j(tmp$ret$0);
9242
9222
  }
9243
9223
  this.rab_1.d('OnlineGameMechanic', 'mechanicActions = ' + toString(destination) + ', state: ' + this.d9q_1.b65().gameLifecycleState.toString());
9244
- this.d9q_1.s6i(OnlineGameMechanicImpl$mechanicActions$slambda_0(this, actions, null));
9224
+ this.d9q_1.s6i(OnlineGameMechanicImpl$mechanicActions$slambda_0(actions, this, null));
9245
9225
  };
9246
9226
  function SingleGameMechanic(currentPlayerId, persistentAppStateInteractor, statisticsInteractor, gameHistoryInteractor, gameClient, clientConfig, playersSceneContract, teamsMechanicReducer, pointsInteractor) {
9247
9227
  BaseGameMechanic.call(this, gameClient, clientConfig, playersSceneContract, teamsMechanicReducer, pointsInteractor, gameHistoryInteractor);