raspberry_games_server_game_logic 1.8.321 → 1.8.323
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.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/Logic_Debertz-core.js +15 -13
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +46 -46
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlinx-coroutines-core.js +8 -8
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
package/Logic_Debertz-engine.js
CHANGED
|
@@ -49175,7 +49175,7 @@
|
|
|
49175
49175
|
tmp_17.r92_1 = Instance(di, tmp$ret$18, null).d64(this, mechanicReducers$factory());
|
|
49176
49176
|
}
|
|
49177
49177
|
protoOf(GameMechanicStoreContract).x91 = function () {
|
|
49178
|
-
return plus_0(plus(this.
|
|
49178
|
+
return plus_0(plus(listOf(_get_mechanicReducers__ipi0tc(this).c93()), this.h92_1.x91()), fromClientReducer());
|
|
49179
49179
|
};
|
|
49180
49180
|
protoOf(GameMechanicStoreContract).y91 = function () {
|
|
49181
49181
|
var tmp = sceneLifecycleMiddleware(_get_sceneFactory__scjsbx(this), _get_sceneRouter__ee4ncs(this), _get_sceneValidationInteractor__iffomr(this), _get_asyncProvider__jbpyhw_2(this));
|
|
@@ -49292,53 +49292,53 @@
|
|
|
49292
49292
|
}
|
|
49293
49293
|
function _get_playerTurnInteractor__lczh1o_0($this) {
|
|
49294
49294
|
// Inline function 'kotlin.getValue' call
|
|
49295
|
-
var this_0 = $this.
|
|
49295
|
+
var this_0 = $this.f93_1;
|
|
49296
49296
|
playerTurnInteractor$factory_2();
|
|
49297
49297
|
return this_0.u();
|
|
49298
49298
|
}
|
|
49299
49299
|
function _get_playerTurnMechanicReducer__y10a87($this) {
|
|
49300
49300
|
// Inline function 'kotlin.getValue' call
|
|
49301
|
-
var this_0 = $this.
|
|
49301
|
+
var this_0 = $this.g93_1;
|
|
49302
49302
|
playerTurnMechanicReducer$factory_0();
|
|
49303
49303
|
return this_0.u();
|
|
49304
49304
|
}
|
|
49305
49305
|
function _get_logger__rkp4sl_1($this) {
|
|
49306
49306
|
// Inline function 'kotlin.getValue' call
|
|
49307
|
-
var this_0 = $this.
|
|
49307
|
+
var this_0 = $this.h93_1;
|
|
49308
49308
|
logger$factory_4();
|
|
49309
49309
|
return this_0.u();
|
|
49310
49310
|
}
|
|
49311
49311
|
function PlayerTurnStoreContract$_get_reducers_$lambda_rtq1w8(this$0) {
|
|
49312
49312
|
return function (player) {
|
|
49313
|
-
return this$0.
|
|
49313
|
+
return this$0.d93_1 || player.playerId === this$0.e93_1;
|
|
49314
49314
|
};
|
|
49315
49315
|
}
|
|
49316
49316
|
function PlayerTurnStoreContract$_get_reducers_$lambda_rtq1w8_0(this$0) {
|
|
49317
49317
|
return function (it) {
|
|
49318
|
-
return !(it.playerId === this$0.
|
|
49318
|
+
return !(it.playerId === this$0.e93_1);
|
|
49319
49319
|
};
|
|
49320
49320
|
}
|
|
49321
49321
|
function PlayerTurnStoreContract(di, resetPlayerTurnByMechanicActions, currentPlayerId) {
|
|
49322
|
-
this.
|
|
49323
|
-
this.
|
|
49322
|
+
this.d93_1 = resetPlayerTurnByMechanicActions;
|
|
49323
|
+
this.e93_1 = currentPlayerId;
|
|
49324
49324
|
var tmp = this;
|
|
49325
49325
|
// Inline function 'org.kodein.di.instance' call
|
|
49326
49326
|
// Inline function 'org.kodein.type.generic' call
|
|
49327
49327
|
var tmp_0 = typeToken(createKType(getKClass(PlayerTurnInteractor), arrayOf([]), false));
|
|
49328
49328
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
49329
|
-
tmp.
|
|
49329
|
+
tmp.f93_1 = Instance(di, tmp$ret$0, null).d64(this, playerTurnInteractor$factory_1());
|
|
49330
49330
|
var tmp_1 = this;
|
|
49331
49331
|
// Inline function 'org.kodein.di.instance' call
|
|
49332
49332
|
// Inline function 'org.kodein.type.generic' call
|
|
49333
49333
|
var tmp_2 = typeToken(createKType(getKClass(PlayerTurnMechanicReducer), arrayOf([]), false));
|
|
49334
49334
|
var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
49335
|
-
tmp_1.
|
|
49335
|
+
tmp_1.g93_1 = Instance(di, tmp$ret$2, null).d64(this, playerTurnMechanicReducer$factory());
|
|
49336
49336
|
var tmp_3 = this;
|
|
49337
49337
|
// Inline function 'org.kodein.di.instance' call
|
|
49338
49338
|
// Inline function 'org.kodein.type.generic' call
|
|
49339
49339
|
var tmp_4 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
|
|
49340
49340
|
var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
49341
|
-
tmp_3.
|
|
49341
|
+
tmp_3.h93_1 = Instance(di, tmp$ret$4, null).d64(this, logger$factory_3());
|
|
49342
49342
|
}
|
|
49343
49343
|
protoOf(PlayerTurnStoreContract).x91 = function () {
|
|
49344
49344
|
var tmp = _get_playerTurnInteractor__lczh1o_0(this);
|
|
@@ -49346,7 +49346,7 @@
|
|
|
49346
49346
|
var tmp_1 = _get_logger__rkp4sl_1(this);
|
|
49347
49347
|
var tmp_2 = resetPlayerTurnWhenAnswerFromActionReducer(tmp, tmp_0, tmp_1, PlayerTurnStoreContract$_get_reducers_$lambda_rtq1w8(this));
|
|
49348
49348
|
var tmp_3;
|
|
49349
|
-
if (!this.
|
|
49349
|
+
if (!this.d93_1) {
|
|
49350
49350
|
var tmp_4 = _get_playerTurnInteractor__lczh1o_0(this);
|
|
49351
49351
|
var tmp_5 = _get_playerTurnMechanicReducer__y10a87(this);
|
|
49352
49352
|
var tmp_6 = _get_logger__rkp4sl_1(this);
|
|
@@ -50914,6 +50914,7 @@
|
|
|
50914
50914
|
protoOf(_no_name_provided__qut3iv_8).y6l = function (store, next, action) {
|
|
50915
50915
|
// Inline function 'games.jass.logic.redux.middlewares.player.playerStartTimerMiddleware.<anonymous>' call
|
|
50916
50916
|
var action_0 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
|
|
50917
|
+
next(action_0);
|
|
50917
50918
|
var table = store.state.s6r();
|
|
50918
50919
|
// Inline function 'kotlin.collections.filter' call
|
|
50919
50920
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -51017,7 +51018,6 @@
|
|
|
51017
51018
|
}
|
|
51018
51019
|
}
|
|
51019
51020
|
}
|
|
51020
|
-
next(action_0);
|
|
51021
51021
|
};
|
|
51022
51022
|
protoOf(_no_name_provided__qut3iv_8).g6k = function (store, next, action) {
|
|
51023
51023
|
return this.y6l(store, next, action);
|
|
@@ -52916,7 +52916,7 @@
|
|
|
52916
52916
|
};
|
|
52917
52917
|
function MechanicReducers$reducer$o$reduce$lambda(this$0, $action) {
|
|
52918
52918
|
return function (tbl) {
|
|
52919
|
-
return this$0.
|
|
52919
|
+
return this$0.y92_1.m9c(tbl, $action.a8u_1, $action.sceneData, $action.b8u_1, $action.c8u_1);
|
|
52920
52920
|
};
|
|
52921
52921
|
}
|
|
52922
52922
|
function MechanicReducers$reducer$o$reduce$lambda_0($action, this$0) {
|
|
@@ -52925,7 +52925,7 @@
|
|
|
52925
52925
|
if ($action.b8u_1 == null) {
|
|
52926
52926
|
tmp = tbl;
|
|
52927
52927
|
} else {
|
|
52928
|
-
tmp = this$0.
|
|
52928
|
+
tmp = this$0.z92_1.n9c(tbl, $action);
|
|
52929
52929
|
}
|
|
52930
52930
|
return tmp;
|
|
52931
52931
|
};
|
|
@@ -52939,9 +52939,9 @@
|
|
|
52939
52939
|
protoOf(_no_name_provided__qut3iv_33).f9c = function (state, action) {
|
|
52940
52940
|
// Inline function 'games.jass.logic.redux.reducers.MechanicReducers.reducer.<anonymous>' call
|
|
52941
52941
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
52942
|
-
if (this.o9c_1.
|
|
52942
|
+
if (this.o9c_1.a93_1.validateIfMainThread) {
|
|
52943
52943
|
// Inline function 'games.logic.utils.runSafeOnProd' call
|
|
52944
|
-
var logger = this.o9c_1.
|
|
52944
|
+
var logger = this.o9c_1.b93_1;
|
|
52945
52945
|
var tmp;
|
|
52946
52946
|
try {
|
|
52947
52947
|
assertIfMainThread('mechanicReducer is called from main thread for action = ' + toString(action_0));
|
|
@@ -52962,46 +52962,46 @@
|
|
|
52962
52962
|
}
|
|
52963
52963
|
var tmp_1;
|
|
52964
52964
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
52965
|
-
tmp_1 = this.o9c_1.
|
|
52965
|
+
tmp_1 = this.o9c_1.s92_1.r9d(state, action_0);
|
|
52966
52966
|
} else {
|
|
52967
52967
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
52968
|
-
tmp_1 = this.o9c_1.
|
|
52968
|
+
tmp_1 = this.o9c_1.s92_1.q9d(state, action_0);
|
|
52969
52969
|
} else {
|
|
52970
52970
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
52971
|
-
tmp_1 = this.o9c_1.
|
|
52971
|
+
tmp_1 = this.o9c_1.s92_1.p9d(state, action_0);
|
|
52972
52972
|
} else {
|
|
52973
52973
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
52974
|
-
tmp_1 = this.o9c_1.
|
|
52974
|
+
tmp_1 = this.o9c_1.s92_1.o9d(state, action_0);
|
|
52975
52975
|
} else {
|
|
52976
52976
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
52977
|
-
tmp_1 = this.o9c_1.
|
|
52977
|
+
tmp_1 = this.o9c_1.s92_1.n9d(state, action_0);
|
|
52978
52978
|
} else {
|
|
52979
52979
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
52980
|
-
tmp_1 = this.o9c_1.
|
|
52980
|
+
tmp_1 = this.o9c_1.s92_1.m9d(state, action_0);
|
|
52981
52981
|
} else {
|
|
52982
52982
|
if (action_0 instanceof ErrorAction) {
|
|
52983
|
-
tmp_1 = this.o9c_1.
|
|
52983
|
+
tmp_1 = this.o9c_1.s92_1.l9d(state, action_0);
|
|
52984
52984
|
} else {
|
|
52985
52985
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
52986
|
-
tmp_1 = state.l8x(state.s6r().copy(VOID, VOID, VOID, VOID, this.o9c_1.
|
|
52986
|
+
tmp_1 = state.l8x(state.s6r().copy(VOID, VOID, VOID, VOID, this.o9c_1.t92_1.k9d(state.s6r().players, action_0)));
|
|
52987
52987
|
} else {
|
|
52988
52988
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
52989
|
-
tmp_1 = this.o9c_1.
|
|
52989
|
+
tmp_1 = this.o9c_1.u92_1.j9d(state, action_0);
|
|
52990
52990
|
} else {
|
|
52991
52991
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
52992
|
-
tmp_1 = this.o9c_1.
|
|
52992
|
+
tmp_1 = this.o9c_1.u92_1.i9d(state, action_0);
|
|
52993
52993
|
} else {
|
|
52994
52994
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
52995
|
-
tmp_1 = this.o9c_1.
|
|
52995
|
+
tmp_1 = this.o9c_1.w92_1.f9d(state, action_0);
|
|
52996
52996
|
} else {
|
|
52997
52997
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
52998
|
-
tmp_1 = this.o9c_1.
|
|
52998
|
+
tmp_1 = this.o9c_1.v92_1.e9d(state, action_0);
|
|
52999
52999
|
} else {
|
|
53000
53000
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
53001
|
-
tmp_1 = this.o9c_1.
|
|
53001
|
+
tmp_1 = this.o9c_1.v92_1.d9d(state, action_0);
|
|
53002
53002
|
} else {
|
|
53003
53003
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
53004
|
-
tmp_1 = this.o9c_1.
|
|
53004
|
+
tmp_1 = this.o9c_1.w92_1.v9c(state, action_0);
|
|
53005
53005
|
} else {
|
|
53006
53006
|
if (action_0 instanceof SceneMechanicAction) {
|
|
53007
53007
|
// Inline function 'kotlin.collections.fold' call
|
|
@@ -53018,13 +53018,13 @@
|
|
|
53018
53018
|
tmp_1 = state.l8x(tmp$ret$2);
|
|
53019
53019
|
} else {
|
|
53020
53020
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
53021
|
-
tmp_1 = state.l8x(this.o9c_1.
|
|
53021
|
+
tmp_1 = state.l8x(this.o9c_1.z92_1.n9c(state.s6r(), action_0));
|
|
53022
53022
|
} else {
|
|
53023
53023
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
53024
|
-
tmp_1 = state.l8x(this.o9c_1.
|
|
53024
|
+
tmp_1 = state.l8x(this.o9c_1.x92_1.p9c(state.s6r(), action_0));
|
|
53025
53025
|
} else {
|
|
53026
53026
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
53027
|
-
tmp_1 = state.l8x(this.o9c_1.
|
|
53027
|
+
tmp_1 = state.l8x(this.o9c_1.x92_1.p8t(state.s6r(), action_0.playerId, action_0.state, action_0.reconnectUntilTime));
|
|
53028
53028
|
} else {
|
|
53029
53029
|
if (action_0 instanceof MessageMechanicAction) {
|
|
53030
53030
|
tmp_1 = state;
|
|
@@ -53055,18 +53055,18 @@
|
|
|
53055
53055
|
return this.f9c((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
53056
53056
|
};
|
|
53057
53057
|
function MechanicReducers(gameLifecycleReducer, teamsMechanicReducer, tradeMechanicReducer, earnPointsMechanicReducer, combinationsMechanicReducer, playerTurnMechanicReducer, sceneReducer, sceneActReducer, engineLogicConfig, logger) {
|
|
53058
|
-
this.
|
|
53059
|
-
this.
|
|
53060
|
-
this.
|
|
53061
|
-
this.
|
|
53062
|
-
this.
|
|
53063
|
-
this.
|
|
53064
|
-
this.
|
|
53065
|
-
this.
|
|
53066
|
-
this.
|
|
53067
|
-
this.
|
|
53068
|
-
}
|
|
53069
|
-
protoOf(MechanicReducers).
|
|
53058
|
+
this.s92_1 = gameLifecycleReducer;
|
|
53059
|
+
this.t92_1 = teamsMechanicReducer;
|
|
53060
|
+
this.u92_1 = tradeMechanicReducer;
|
|
53061
|
+
this.v92_1 = earnPointsMechanicReducer;
|
|
53062
|
+
this.w92_1 = combinationsMechanicReducer;
|
|
53063
|
+
this.x92_1 = playerTurnMechanicReducer;
|
|
53064
|
+
this.y92_1 = sceneReducer;
|
|
53065
|
+
this.z92_1 = sceneActReducer;
|
|
53066
|
+
this.a93_1 = engineLogicConfig;
|
|
53067
|
+
this.b93_1 = logger;
|
|
53068
|
+
}
|
|
53069
|
+
protoOf(MechanicReducers).c93 = function () {
|
|
53070
53070
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
53071
53071
|
return new _no_name_provided__qut3iv_33(this);
|
|
53072
53072
|
};
|