game_client_logic_deb 1.8.444 → 1.8.445
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/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +743 -659
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +7 -4
- package/Logic_Debertz-game_client.js +72 -70
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +6 -6
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +8 -8
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -2967,12 +2967,15 @@ export declare interface ParserHelper {
|
|
|
2967
2967
|
};
|
|
2968
2968
|
}
|
|
2969
2969
|
export declare interface RatingHelper {
|
|
2970
|
-
getBotRatingRange(league: Nullable<string
|
|
2970
|
+
getBotRatingRange(league: Nullable<string>, leaguesConfig: games.jass.logic.data.models.leagues.LeaguesConfig): models.BotRatingRange;
|
|
2971
2971
|
mapToLeague(name: string): games.jass.logic.data.models.leagues.League;
|
|
2972
|
-
isValidRatingForLeague(league: games.jass.logic.data.models.leagues.League, rating: number): boolean;
|
|
2973
|
-
mapRatingToLeague(rating: number): games.jass.logic.data.models.leagues.League;
|
|
2972
|
+
isValidRatingForLeague(league: games.jass.logic.data.models.leagues.League, rating: number, leaguesConfig: games.jass.logic.data.models.leagues.LeaguesConfig): boolean;
|
|
2973
|
+
mapRatingToLeague(rating: number, leaguesConfig: games.jass.logic.data.models.leagues.LeaguesConfig): games.jass.logic.data.models.leagues.League;
|
|
2974
|
+
/** @deprecated Please use Remote config */
|
|
2974
2975
|
getLeaguesConfig(): games.jass.logic.data.models.leagues.LeaguesConfig;
|
|
2976
|
+
/** @deprecated Please use Remote config */
|
|
2975
2977
|
getLeaguesConfigJson(): string;
|
|
2978
|
+
decodeLeaguesConfig(json: string): games.jass.logic.data.models.leagues.LeaguesConfig;
|
|
2976
2979
|
readonly __doNotUseOrImplementIt: {
|
|
2977
2980
|
readonly RatingHelper: unique symbol;
|
|
2978
2981
|
};
|
|
@@ -3182,7 +3185,7 @@ export declare interface GameClientEngineController {
|
|
|
3182
3185
|
readonly parser: ParserHelper;
|
|
3183
3186
|
setEnableLogger(enabled: boolean): void;
|
|
3184
3187
|
createOnlineGameEngine(currentPlayerId: string): games.jass.logic.client.domain.mechanic.online.OnlineGameMechanic;
|
|
3185
|
-
createOnlineGameEngineWithLogic(currentPlayerId: string, reducers?: Array<(p0: any/* games.jass.logic.redux.AppState */, p1: any) => any/* games.jass.logic.redux.AppState */>, middlewares?: Array<(p0: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, p1: (p0: com.logic.redux.store.definitions.Action) => void, p2: any) => void>, gameClientConfig?: games.jass.logic.client.data.models.config.GameClientConfig, engineBotConfig?: games.jass.logic.data.models.EngineBotConfig, logicConfig?: games.jass.logic.data.models.EngineLogicConfig, dealerConfig?: games.jass.logic.data.models.DealerConfig, ratingConfig?: games.jass.logic.data.models.config.RatingConfig, coreConfig?: com.logic.data.models.CoreConfig): games.jass.logic.client.domain.mechanic.online.OnlineGameMechanic;
|
|
3188
|
+
createOnlineGameEngineWithLogic(currentPlayerId: string, reducers?: Array<(p0: any/* games.jass.logic.redux.AppState */, p1: any) => any/* games.jass.logic.redux.AppState */>, middlewares?: Array<(p0: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, p1: (p0: com.logic.redux.store.definitions.Action) => void, p2: any) => void>, gameClientConfig?: games.jass.logic.client.data.models.config.GameClientConfig, engineBotConfig?: games.jass.logic.data.models.EngineBotConfig, logicConfig?: games.jass.logic.data.models.EngineLogicConfig, dealerConfig?: games.jass.logic.data.models.DealerConfig, ratingConfig?: games.jass.logic.data.models.config.RatingConfig, leaguesConfig?: games.jass.logic.data.models.leagues.LeaguesConfig, coreConfig?: com.logic.data.models.CoreConfig): games.jass.logic.client.domain.mechanic.online.OnlineGameMechanic;
|
|
3186
3189
|
readonly __doNotUseOrImplementIt: {
|
|
3187
3190
|
readonly GameClientEngineController: unique symbol;
|
|
3188
3191
|
};
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
var getGrowth = kotlin_io_raspberryapps_game_engine_core.$_$.e1;
|
|
168
168
|
var ValidationCode_CARD_VALIDATION_HAS_HIGHER_TRUMP_CARD_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.t4;
|
|
169
169
|
var Collection = kotlin_kotlin.$_$.h5;
|
|
170
|
-
var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
170
|
+
var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.f5;
|
|
171
171
|
var ValidationCode_CARD_VALIDATION_HAS_SAME_CARD_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.u4;
|
|
172
172
|
var ValidationCode_CARD_VALIDATION_HAS_TRUMP_CARD_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.v4;
|
|
173
173
|
var emptyFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.v;
|
|
@@ -224,11 +224,11 @@
|
|
|
224
224
|
var Middleware = kotlin_io_raspberryapps_game_engine_core.$_$.r2;
|
|
225
225
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
226
226
|
var CombinationChoiceFromClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.d2;
|
|
227
|
-
var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
227
|
+
var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.h5;
|
|
228
228
|
var ProcessingReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.c5;
|
|
229
229
|
var MechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.w2;
|
|
230
230
|
var WaitingActData = kotlin_io_raspberryapps_game_engine_engine.$_$.c1;
|
|
231
|
-
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
231
|
+
var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.g5;
|
|
232
232
|
var RequestedCardDecksFromClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.j2;
|
|
233
233
|
var CardDeckRequest = kotlin_io_raspberryapps_game_engine_engine.$_$.b1;
|
|
234
234
|
var SceneActMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.e3;
|
|
@@ -334,19 +334,20 @@
|
|
|
334
334
|
var getItemIndex = kotlin_io_raspberryapps_game_engine_core.$_$.f3;
|
|
335
335
|
var generateHiddenPlayerHandCards = kotlin_io_raspberryapps_game_engine_engine.$_$.w;
|
|
336
336
|
var AppStatePayload = kotlin_io_raspberryapps_game_engine_engine.$_$.i4;
|
|
337
|
-
var Companion_instance_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.
|
|
337
|
+
var Companion_instance_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.j5;
|
|
338
338
|
var LoggerOutput = kotlin_io_raspberryapps_cardgame_logger.$_$.a;
|
|
339
339
|
var DealerConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.j1;
|
|
340
340
|
var RatingConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.d;
|
|
341
|
+
var Companion_instance_6 = kotlin_io_raspberryapps_game_engine_engine.$_$.e5;
|
|
341
342
|
var CoreConfig = kotlin_io_raspberryapps_game_engine_core.$_$.h1;
|
|
342
343
|
var FileLoggerOutputImpl = kotlin_io_raspberryapps_game_engine_engine.$_$.m4;
|
|
343
344
|
var LoggerCallbacksWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.a;
|
|
344
345
|
var CallbackWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.l4;
|
|
345
|
-
var
|
|
346
|
-
var
|
|
346
|
+
var Companion_instance_7 = kotlin_org_kodein_di_kodein_di.$_$.b;
|
|
347
|
+
var Companion_instance_8 = kotlin_io_raspberryapps_cardgame_logger.$_$.n;
|
|
347
348
|
var CombinedRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.c;
|
|
348
349
|
var FileLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.n4;
|
|
349
|
-
var
|
|
350
|
+
var Companion_instance_9 = kotlin_io_raspberryapps_game_engine_engine.$_$.i5;
|
|
350
351
|
var toLoggerPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.i1;
|
|
351
352
|
var combinedLoggerModule = kotlin_io_raspberryapps_game_engine_core.$_$.q3;
|
|
352
353
|
var dealerModule = kotlin_io_raspberryapps_game_engine_core.$_$.s3;
|
|
@@ -595,7 +596,7 @@
|
|
|
595
596
|
initMetadataForInterface(ControlsContract, 'ControlsContract');
|
|
596
597
|
initMetadataForInterface(TradeSceneContract, 'TradeSceneContract');
|
|
597
598
|
initMetadataForInterface(EarnPointsSceneContract, 'EarnPointsSceneContract');
|
|
598
|
-
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [
|
|
599
|
+
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [ControlsContract, ExpectantContract, SceneActionsContract]);
|
|
599
600
|
initMetadataForInterface(TradeScene, 'TradeScene', VOID, VOID, [SceneActionsContract, ExpectantContract, TradeSceneContract]);
|
|
600
601
|
initMetadataForInterface(EarnPointsScene, 'EarnPointsScene', VOID, VOID, [SceneActionsContract, ExpectantContract, EarnPointsSceneContract]);
|
|
601
602
|
initMetadataForClass(EarnPointsSceneImpl, 'EarnPointsSceneImpl', VOID, VOID, [EarnPointsSceneContract, ExpectantContract, SceneActionsContract, PlayersSceneContract, EarnPointsScene, GameEngineSceneContract]);
|
|
@@ -746,7 +747,7 @@
|
|
|
746
747
|
initMetadataForCompanion(Companion_5);
|
|
747
748
|
initMetadataForClass(UIState, 'UIState');
|
|
748
749
|
initMetadataForInterface(ShowErrorLoggerOutput, 'ShowErrorLoggerOutput', VOID, VOID, [LoggerOutput]);
|
|
749
|
-
function createOnlineGameEngineWithLogic(currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, ratingConfig, coreConfig, $super) {
|
|
750
|
+
function createOnlineGameEngineWithLogic(currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, ratingConfig, leaguesConfig, coreConfig, $super) {
|
|
750
751
|
var tmp;
|
|
751
752
|
if (reducers === VOID) {
|
|
752
753
|
// Inline function 'kotlin.emptyArray' call
|
|
@@ -768,8 +769,9 @@
|
|
|
768
769
|
logicConfig = logicConfig === VOID ? new EngineLogicConfig(VOID, false) : logicConfig;
|
|
769
770
|
dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
|
|
770
771
|
ratingConfig = ratingConfig === VOID ? new RatingConfig() : ratingConfig;
|
|
772
|
+
leaguesConfig = leaguesConfig === VOID ? Companion_instance_6.defaultConfig() : leaguesConfig;
|
|
771
773
|
coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
|
|
772
|
-
return $super === VOID ? this.jb8(currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, ratingConfig, coreConfig) : $super.jb8.call(this, currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, ratingConfig, coreConfig);
|
|
774
|
+
return $super === VOID ? this.jb8(currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, ratingConfig, leaguesConfig, coreConfig) : $super.jb8.call(this, currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, ratingConfig, leaguesConfig, coreConfig);
|
|
773
775
|
}
|
|
774
776
|
initMetadataForInterface(GameClientEngineController, 'GameClientEngineController');
|
|
775
777
|
initMetadataForClass(GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$$inlined$map$1, VOID, VOID, VOID, [Reducer]);
|
|
@@ -2977,7 +2979,7 @@
|
|
|
2977
2979
|
}
|
|
2978
2980
|
}
|
|
2979
2981
|
function Companion() {
|
|
2980
|
-
|
|
2982
|
+
Companion_instance_10 = this;
|
|
2981
2983
|
var tmp = this;
|
|
2982
2984
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
2983
2985
|
tmp.p9v_1 = lazy(tmp_0, GameType$Companion$_anonymous__unhe4d);
|
|
@@ -2988,12 +2990,12 @@
|
|
|
2988
2990
|
protoOf(Companion).h10 = function (typeParamsSerializers) {
|
|
2989
2991
|
return this.b1c();
|
|
2990
2992
|
};
|
|
2991
|
-
var
|
|
2993
|
+
var Companion_instance_10;
|
|
2992
2994
|
function Companion_getInstance() {
|
|
2993
2995
|
GameType_initEntries();
|
|
2994
|
-
if (
|
|
2996
|
+
if (Companion_instance_10 == null)
|
|
2995
2997
|
new Companion();
|
|
2996
|
-
return
|
|
2998
|
+
return Companion_instance_10;
|
|
2997
2999
|
}
|
|
2998
3000
|
var GameType_entriesInitialized;
|
|
2999
3001
|
function GameType_initEntries() {
|
|
@@ -3065,9 +3067,9 @@
|
|
|
3065
3067
|
protoOf(Companion_0).getClientEngineTestMode = function () {
|
|
3066
3068
|
return new GameClientConfig(false, VOID, false, true, VOID, true);
|
|
3067
3069
|
};
|
|
3068
|
-
var
|
|
3070
|
+
var Companion_instance_11;
|
|
3069
3071
|
function Companion_getInstance_0() {
|
|
3070
|
-
return
|
|
3072
|
+
return Companion_instance_11;
|
|
3071
3073
|
}
|
|
3072
3074
|
function GameClientConfig(validateSceneActiveState, validateCardOnMove, validateExpectantActions, isAutoStepCurrentPlayer, areOpponentsCardsOpened, sessionAnalytics, showPlayerConnectionState) {
|
|
3073
3075
|
validateSceneActiveState = validateSceneActiveState === VOID ? true : validateSceneActiveState;
|
|
@@ -3384,7 +3386,7 @@
|
|
|
3384
3386
|
return new CombinationChoiceExpectant(wrapper.u9w_1, _this__u8e3s4.t92_1, _this__u8e3s4.r92_1, _this__u8e3s4.s92_1);
|
|
3385
3387
|
}
|
|
3386
3388
|
function mapToExpectant_4(_this__u8e3s4, wrapper) {
|
|
3387
|
-
return new PickUpBribeExpectant(wrapper.u9w_1, _this__u8e3s4.
|
|
3389
|
+
return new PickUpBribeExpectant(wrapper.u9w_1, _this__u8e3s4.j8w_1, _this__u8e3s4.k8w_1, _this__u8e3s4.l8w_1);
|
|
3388
3390
|
}
|
|
3389
3391
|
function mapToExpectant_5(_this__u8e3s4, wrapper) {
|
|
3390
3392
|
return new WinnerCombinationsExpectant(wrapper.u9w_1, _this__u8e3s4.y92_1);
|
|
@@ -3702,11 +3704,11 @@
|
|
|
3702
3704
|
_init_properties_DI_kt__lm8vuj();
|
|
3703
3705
|
return Module_init_$Create$('Client buffer Module', VOID, VOID, getClientBufferModule$lambda(externalBufferUseCases));
|
|
3704
3706
|
}
|
|
3705
|
-
function createGameClientDI(currentPlayerId, clientConfig, gameClientConfig, engineLogicConfig, engineBotConfig, dealerConfig, ratingConfig, externalReducers, externalMiddlewares) {
|
|
3707
|
+
function createGameClientDI(currentPlayerId, clientConfig, gameClientConfig, engineLogicConfig, engineBotConfig, dealerConfig, ratingConfig, leaguesConfig, externalReducers, externalMiddlewares) {
|
|
3706
3708
|
externalReducers = externalReducers === VOID ? emptyList() : externalReducers;
|
|
3707
3709
|
externalMiddlewares = externalMiddlewares === VOID ? emptyList() : externalMiddlewares;
|
|
3708
3710
|
_init_properties_DI_kt__lm8vuj();
|
|
3709
|
-
return Module_init_$Create$('Client Game DI module', VOID, VOID, createGameClientDI$lambda(engineBotConfig, engineLogicConfig, dealerConfig, ratingConfig, clientConfig, currentPlayerId, externalReducers, externalMiddlewares, gameClientConfig));
|
|
3711
|
+
return Module_init_$Create$('Client Game DI module', VOID, VOID, createGameClientDI$lambda(engineBotConfig, engineLogicConfig, dealerConfig, ratingConfig, leaguesConfig, clientConfig, currentPlayerId, externalReducers, externalMiddlewares, gameClientConfig));
|
|
3710
3712
|
}
|
|
3711
3713
|
function createClientSingleGameDI(currentPlayerId, externalReducers, externalMiddlewares) {
|
|
3712
3714
|
_init_properties_DI_kt__lm8vuj();
|
|
@@ -4565,7 +4567,7 @@
|
|
|
4565
4567
|
return $gameClientConfig;
|
|
4566
4568
|
};
|
|
4567
4569
|
}
|
|
4568
|
-
function createGameClientDI$lambda($engineBotConfig, $engineLogicConfig, $dealerConfig, $ratingConfig, $clientConfig, $currentPlayerId, $externalReducers, $externalMiddlewares, $gameClientConfig) {
|
|
4570
|
+
function createGameClientDI$lambda($engineBotConfig, $engineLogicConfig, $dealerConfig, $ratingConfig, $leaguesConfig, $clientConfig, $currentPlayerId, $externalReducers, $externalMiddlewares, $gameClientConfig) {
|
|
4569
4571
|
return function ($this$Module) {
|
|
4570
4572
|
// Inline function 'org.kodein.di.bind' call
|
|
4571
4573
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -4598,7 +4600,7 @@
|
|
|
4598
4600
|
var tmp$ret$7 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$6, null, true, creator_0);
|
|
4599
4601
|
tmp_6.j61(tmp$ret$7);
|
|
4600
4602
|
$this$Module.n5x(jsonModule(listOf_0(get_clientSerializerModule())));
|
|
4601
|
-
$this$Module.n5x(getEngineGameModule($engineBotConfig, $engineLogicConfig, $dealerConfig, $ratingConfig));
|
|
4603
|
+
$this$Module.n5x(getEngineGameModule($engineBotConfig, $engineLogicConfig, $dealerConfig, $ratingConfig, $leaguesConfig));
|
|
4602
4604
|
$this$Module.n5x(get_clientEngineModule());
|
|
4603
4605
|
$this$Module.n5x(get_clientScenesDIModule());
|
|
4604
4606
|
var tmp_11;
|
|
@@ -5000,7 +5002,7 @@
|
|
|
5000
5002
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
5001
5003
|
if (!skipAllChecksReasons.r()) {
|
|
5002
5004
|
var reason = joinToString(skipAllChecksReasons, ', ', VOID, VOID, VOID, VOID, BufferInteractorImpl$getBufferResult$lambda);
|
|
5003
|
-
|
|
5005
|
+
Companion_instance_12.t9x($this.m9x_1, debugLabel + ': ' + reason + ', ' + ('for action: ' + getDataClassName(toString(action))));
|
|
5004
5006
|
return new BufferResult(false, reason);
|
|
5005
5007
|
}
|
|
5006
5008
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
@@ -5017,7 +5019,7 @@
|
|
|
5017
5019
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
5018
5020
|
if (!putInBufferReasons.r()) {
|
|
5019
5021
|
var reason_0 = joinToString(putInBufferReasons, ', ', VOID, VOID, VOID, VOID, BufferInteractorImpl$getBufferResult$lambda_0);
|
|
5020
|
-
|
|
5022
|
+
Companion_instance_12.t9x($this.m9x_1, debugLabel + ': ' + reason_0 + ', ' + ('for action: ' + getDataClassName(toString(action))));
|
|
5021
5023
|
return new BufferResult(true, reason_0);
|
|
5022
5024
|
}
|
|
5023
5025
|
return new BufferResult(false);
|
|
@@ -5031,9 +5033,9 @@
|
|
|
5031
5033
|
_this__u8e3s4.d('Buffer', message);
|
|
5032
5034
|
}
|
|
5033
5035
|
};
|
|
5034
|
-
var
|
|
5036
|
+
var Companion_instance_12;
|
|
5035
5037
|
function Companion_getInstance_1() {
|
|
5036
|
-
return
|
|
5038
|
+
return Companion_instance_12;
|
|
5037
5039
|
}
|
|
5038
5040
|
function BufferInteractorImpl$lock$delegate$lambda() {
|
|
5039
5041
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
@@ -10913,9 +10915,9 @@
|
|
|
10913
10915
|
};
|
|
10914
10916
|
function Companion_2() {
|
|
10915
10917
|
}
|
|
10916
|
-
var
|
|
10918
|
+
var Companion_instance_13;
|
|
10917
10919
|
function Companion_getInstance_2() {
|
|
10918
|
-
return
|
|
10920
|
+
return Companion_instance_13;
|
|
10919
10921
|
}
|
|
10920
10922
|
function TableSceneContractImpl(gameClient, progressContract, playerHandSelector, earnPointsSceneContract) {
|
|
10921
10923
|
this.zax_1 = gameClient;
|
|
@@ -12952,8 +12954,8 @@
|
|
|
12952
12954
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
12953
12955
|
next(action_0);
|
|
12954
12956
|
if (action_0 instanceof SceneActMechanicAction)
|
|
12955
|
-
if (action_0.
|
|
12956
|
-
var tmp0 = action_0.
|
|
12957
|
+
if (action_0.n8v_1 === 'WAITING_ACT') {
|
|
12958
|
+
var tmp0 = action_0.o8v_1;
|
|
12957
12959
|
var tmp$ret$0;
|
|
12958
12960
|
$l$block: {
|
|
12959
12961
|
// Inline function 'games.jass.logic.data.models.scenes.requireActData' call
|
|
@@ -13000,7 +13002,7 @@
|
|
|
13000
13002
|
var tmp$ret$9 = Companion_instance_1.n7p(item_0);
|
|
13001
13003
|
destination_0.j(tmp$ret$9);
|
|
13002
13004
|
}
|
|
13003
|
-
var tmp3_tag = this.xb1_1.c8q(action_0.
|
|
13005
|
+
var tmp3_tag = this.xb1_1.c8q(action_0.m8v_1, store.state.z6m().gameInfo.round);
|
|
13004
13006
|
tmp(new RequestedCardDecksFromClientAction(destination_0, this.vb1_1, false, tmp3_tag));
|
|
13005
13007
|
}
|
|
13006
13008
|
} else {
|
|
@@ -13201,7 +13203,7 @@
|
|
|
13201
13203
|
function onSceneMessages($this, store, action) {
|
|
13202
13204
|
var state = store.state;
|
|
13203
13205
|
var table = state.z6m();
|
|
13204
|
-
var tmp0_subject = action.
|
|
13206
|
+
var tmp0_subject = action.u8v_1;
|
|
13205
13207
|
if (tmp0_subject === 'TRADE') {
|
|
13206
13208
|
var tmp;
|
|
13207
13209
|
if (table.config.playersMode.isTeamGame) {
|
|
@@ -13358,7 +13360,7 @@
|
|
|
13358
13360
|
tmp = Unit_instance;
|
|
13359
13361
|
} else {
|
|
13360
13362
|
if (action instanceof SuitChoiceMechanicAction) {
|
|
13361
|
-
onSuitSelectMessages(this$0, store, action.
|
|
13363
|
+
onSuitSelectMessages(this$0, store, action.a8w_1, action.y8v_1);
|
|
13362
13364
|
tmp = Unit_instance;
|
|
13363
13365
|
} else {
|
|
13364
13366
|
if (action instanceof InterceptorCreatedClientAction) {
|
|
@@ -13366,7 +13368,7 @@
|
|
|
13366
13368
|
tmp = Unit_instance;
|
|
13367
13369
|
} else {
|
|
13368
13370
|
if (action instanceof PutCardMechanicAction) {
|
|
13369
|
-
onCardMessages(this$0, store, action.
|
|
13371
|
+
onCardMessages(this$0, store, action.g8w_1, action.e8w_1);
|
|
13370
13372
|
tmp = Unit_instance;
|
|
13371
13373
|
} else {
|
|
13372
13374
|
if (action instanceof WinnerCombinationsMechanicAction) {
|
|
@@ -13393,7 +13395,7 @@
|
|
|
13393
13395
|
if (action instanceof SuitChoiceMechanicAction) {
|
|
13394
13396
|
var tmp_0;
|
|
13395
13397
|
if (!(action.playerId === $currentPlayerId)) {
|
|
13396
|
-
onSuitSelectMessages(this$0, store, action.playerId, action.
|
|
13398
|
+
onSuitSelectMessages(this$0, store, action.playerId, action.y8v_1);
|
|
13397
13399
|
tmp_0 = Unit_instance;
|
|
13398
13400
|
}
|
|
13399
13401
|
tmp = tmp_0;
|
|
@@ -13401,7 +13403,7 @@
|
|
|
13401
13403
|
if (action instanceof PutCardMechanicAction) {
|
|
13402
13404
|
var tmp_1;
|
|
13403
13405
|
if (!(action.playerId === $currentPlayerId)) {
|
|
13404
|
-
onCardMessages(this$0, store, action.playerId, action.
|
|
13406
|
+
onCardMessages(this$0, store, action.playerId, action.e8w_1);
|
|
13405
13407
|
tmp_1 = Unit_instance;
|
|
13406
13408
|
}
|
|
13407
13409
|
tmp = tmp_1;
|
|
@@ -13599,7 +13601,7 @@
|
|
|
13599
13601
|
protoOf(sceneActivationReducer$$inlined$reducerForActionType$1).i9e = function (state, action) {
|
|
13600
13602
|
var action_0 = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
13601
13603
|
var clientPayload = get_clientPayload_0(state);
|
|
13602
|
-
var tmp0_subject = action_0.
|
|
13604
|
+
var tmp0_subject = action_0.u8v_1;
|
|
13603
13605
|
return tmp0_subject === 'CHOOSE_PARTNER' || tmp0_subject === 'TRADE' || (tmp0_subject === 'EARN_POINTS' || tmp0_subject === 'CALC_POINTS') ? state.b8z(VOID, clientPayload.db2(VOID, VOID, VOID, VOID, VOID, VOID, false)) : state;
|
|
13604
13606
|
};
|
|
13605
13607
|
protoOf(sceneActivationReducer$$inlined$reducerForActionType$1).p6f = function (state, action) {
|
|
@@ -14627,11 +14629,11 @@
|
|
|
14627
14629
|
var tmp4_bufferedActions = state.b9y_1;
|
|
14628
14630
|
var tmp5_error = state.l9y_1;
|
|
14629
14631
|
var tmp6_messages = messagesReducer(state.y9x_1);
|
|
14630
|
-
return
|
|
14632
|
+
return Companion_instance_15.eb6(tmp1_config, tmp2_uiState, tmp3_isSceneActive, tmp6_messages, tmp4_bufferedActions, tmp5_error);
|
|
14631
14633
|
};
|
|
14632
14634
|
protoOf(ClientLifecycleReducer).fb6 = function (state) {
|
|
14633
14635
|
if (state.x9x_1.u9v()) {
|
|
14634
|
-
return
|
|
14636
|
+
return Companion_instance_15.hb6(state.x9x_1, state.c9y_1, state.d9y_1);
|
|
14635
14637
|
} else {
|
|
14636
14638
|
var tmp1_config = state.x9x_1;
|
|
14637
14639
|
var tmp2_uiState = state.c9y_1;
|
|
@@ -14643,7 +14645,7 @@
|
|
|
14643
14645
|
var tmp8_messages = state.y9x_1;
|
|
14644
14646
|
var tmp9_processingCard = state.j9y_1;
|
|
14645
14647
|
var tmp10_transitions = state.k9y_1;
|
|
14646
|
-
return
|
|
14648
|
+
return Companion_instance_15.gb6(tmp1_config, tmp2_uiState, tmp3_isSceneActive, tmp8_messages, tmp6_bufferedActions, tmp5_interceptedActions, tmp7_combinationsToAnnounce, tmp9_processingCard, tmp4_error, tmp10_transitions);
|
|
14647
14649
|
}
|
|
14648
14650
|
};
|
|
14649
14651
|
protoOf(ClientLifecycleReducer).ib6 = function (messages) {
|
|
@@ -14734,9 +14736,9 @@
|
|
|
14734
14736
|
function Companion_3() {
|
|
14735
14737
|
this.kb6_1 = 'ClientMechanicLifecycleReducer';
|
|
14736
14738
|
}
|
|
14737
|
-
var
|
|
14739
|
+
var Companion_instance_14;
|
|
14738
14740
|
function Companion_getInstance_3() {
|
|
14739
|
-
return
|
|
14741
|
+
return Companion_instance_14;
|
|
14740
14742
|
}
|
|
14741
14743
|
function ClientMechanicLifecycleReducer$onStart$lambda(this$0) {
|
|
14742
14744
|
return function (it) {
|
|
@@ -14785,7 +14787,7 @@
|
|
|
14785
14787
|
var tmp;
|
|
14786
14788
|
if (clientState == null) {
|
|
14787
14789
|
this.ob6_1.w(VOID, 'ClientPayload is not onStart, should be init via InitClientStateAction');
|
|
14788
|
-
tmp =
|
|
14790
|
+
tmp = Companion_instance_15.rb6(this.nb6_1);
|
|
14789
14791
|
} else {
|
|
14790
14792
|
tmp = clientState;
|
|
14791
14793
|
}
|
|
@@ -14808,7 +14810,7 @@
|
|
|
14808
14810
|
var clientState = externalClientState == null ? currentClientState : externalClientState;
|
|
14809
14811
|
var tmp;
|
|
14810
14812
|
if (clientState == null) {
|
|
14811
|
-
var tmp_0 =
|
|
14813
|
+
var tmp_0 = Companion_instance_15;
|
|
14812
14814
|
var tmp_1 = get_currentPlayer(action.table).playerId;
|
|
14813
14815
|
var tmp1_safe_receiver = action.table.sceneInfo.e7x_1;
|
|
14814
14816
|
var tmp_2;
|
|
@@ -14921,7 +14923,7 @@
|
|
|
14921
14923
|
protoOf(clientSceneReducer$$inlined$reducerForActionType$1).i9e = function (state, action) {
|
|
14922
14924
|
var action_0 = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
14923
14925
|
var tmp;
|
|
14924
|
-
switch (action_0.
|
|
14926
|
+
switch (action_0.u8v_1) {
|
|
14925
14927
|
case 'WAITING':
|
|
14926
14928
|
tmp = state;
|
|
14927
14929
|
break;
|
|
@@ -15009,7 +15011,7 @@
|
|
|
15009
15011
|
tmp = state.b8z(VOID, get_clientPayload_0(state).db2(VOID, VOID, VOID, VOID, VOID, get_clientPayload_0(state).c9y_1.yb6(tmp2.oay_1)));
|
|
15010
15012
|
} else {
|
|
15011
15013
|
if (tmp2 instanceof InitClientStateAction) {
|
|
15012
|
-
tmp = state.b8z(VOID,
|
|
15014
|
+
tmp = state.b8z(VOID, Companion_instance_15.rb6(tmp2.qay_1));
|
|
15013
15015
|
} else {
|
|
15014
15016
|
if (tmp2 instanceof UpdateConfigAction) {
|
|
15015
15017
|
var tmp6_safe_receiver = tmp2.vay_1;
|
|
@@ -15708,7 +15710,7 @@
|
|
|
15708
15710
|
};
|
|
15709
15711
|
protoOf(TransitionsReducerImpl$addTransitionWhenPutCardReducer$$inlined$reducerForActionType$1).i9e = function (state, action) {
|
|
15710
15712
|
var action_0 = action instanceof PutCardMechanicAction ? action : THROW_CCE();
|
|
15711
|
-
var updatedTransitions = addPutCardOnTableTransition(this.wb7_1, action_0.playerId, this.xb7_1, action_0.
|
|
15713
|
+
var updatedTransitions = addPutCardOnTableTransition(this.wb7_1, action_0.playerId, this.xb7_1, action_0.d8w_1, state.z6m(), get_clientPayload_0(state));
|
|
15712
15714
|
return state.b8z(VOID, get_clientPayload_0(state).db2(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
15713
15715
|
};
|
|
15714
15716
|
protoOf(TransitionsReducerImpl$addTransitionWhenPutCardReducer$$inlined$reducerForActionType$1).p6f = function (state, action) {
|
|
@@ -15724,7 +15726,7 @@
|
|
|
15724
15726
|
protoOf(TransitionsReducerImpl$addTransitionWhenCardDistributionReducer$$inlined$reducerForActionType$1).i9e = function (state, action) {
|
|
15725
15727
|
var action_0 = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
15726
15728
|
var tmp;
|
|
15727
|
-
switch (action_0.
|
|
15729
|
+
switch (action_0.u8v_1) {
|
|
15728
15730
|
case 'TRADE':
|
|
15729
15731
|
tmp = handleTradeScene(this.yb7_1, state, action_0, this.zb7_1);
|
|
15730
15732
|
break;
|
|
@@ -15838,7 +15840,7 @@
|
|
|
15838
15840
|
var tmp$ret$10 = item_1.b7a_1;
|
|
15839
15841
|
destination_2.j(tmp$ret$10);
|
|
15840
15842
|
}
|
|
15841
|
-
var updatedTransitions_1 = plus_0(clientPayload.k9y_1, new PickUpBribeTransition(tmp_3, interceptedAction.
|
|
15843
|
+
var updatedTransitions_1 = plus_0(clientPayload.k9y_1, new PickUpBribeTransition(tmp_3, interceptedAction.j8w_1, destination_2));
|
|
15842
15844
|
tmp = state.b8z(VOID, clientPayload.db2(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions_1));
|
|
15843
15845
|
} else {
|
|
15844
15846
|
if (interceptedAction instanceof TakeAllRemainingCardsMechanicAction) {
|
|
@@ -15934,7 +15936,7 @@
|
|
|
15934
15936
|
function Companion_4() {
|
|
15935
15937
|
}
|
|
15936
15938
|
protoOf(Companion_4).sb6 = function (config, combinations) {
|
|
15937
|
-
return new ClientStatePayload(config, VOID, VOID, VOID, VOID,
|
|
15939
|
+
return new ClientStatePayload(config, VOID, VOID, VOID, VOID, Companion_instance_16.l8e(), VOID, VOID, VOID, combinations);
|
|
15938
15940
|
};
|
|
15939
15941
|
protoOf(Companion_4).rb6 = function (config, combinations, $super) {
|
|
15940
15942
|
combinations = combinations === VOID ? null : combinations;
|
|
@@ -15949,9 +15951,9 @@
|
|
|
15949
15951
|
protoOf(Companion_4).hb6 = function (config, uiState, isSceneActive) {
|
|
15950
15952
|
return new ClientStatePayload(config, VOID, VOID, VOID, VOID, uiState, isSceneActive);
|
|
15951
15953
|
};
|
|
15952
|
-
var
|
|
15954
|
+
var Companion_instance_15;
|
|
15953
15955
|
function Companion_getInstance_4() {
|
|
15954
|
-
return
|
|
15956
|
+
return Companion_instance_15;
|
|
15955
15957
|
}
|
|
15956
15958
|
function ClientStatePayload(config, messages, infoMessage, interceptedActions, bufferedActions, uiState, isSceneActive, chatOpened, settingsOpened, combinationsToAnnounce, lastBribe, gameInfo, processingCard, transitions, error, tutorial) {
|
|
15957
15959
|
messages = messages === VOID ? emptyList() : messages;
|
|
@@ -16154,9 +16156,9 @@
|
|
|
16154
16156
|
protoOf(Companion_5).l8e = function () {
|
|
16155
16157
|
return new UIState(false, false);
|
|
16156
16158
|
};
|
|
16157
|
-
var
|
|
16159
|
+
var Companion_instance_16;
|
|
16158
16160
|
function Companion_getInstance_5() {
|
|
16159
|
-
return
|
|
16161
|
+
return Companion_instance_16;
|
|
16160
16162
|
}
|
|
16161
16163
|
function UIState(created, focused) {
|
|
16162
16164
|
this.wb6_1 = created;
|
|
@@ -16295,12 +16297,12 @@
|
|
|
16295
16297
|
}
|
|
16296
16298
|
return tmp;
|
|
16297
16299
|
}
|
|
16298
|
-
function createDI($this, combinedLogger, currentPlayerId, coreConfig, clientConfig, botConfig, gameClientConfig, engineLogicConfig, dealerConfig, ratingConfig, externalReducers, externalMiddlewares, externalModule) {
|
|
16299
|
-
var tmp =
|
|
16300
|
-
return tmp.u5x(VOID, GameClientEngineControllerImpl$createDI$lambda(combinedLogger, externalModule, coreConfig, currentPlayerId, clientConfig, gameClientConfig, engineLogicConfig, botConfig, dealerConfig, ratingConfig, externalReducers, externalMiddlewares));
|
|
16300
|
+
function createDI($this, combinedLogger, currentPlayerId, coreConfig, clientConfig, botConfig, gameClientConfig, engineLogicConfig, dealerConfig, ratingConfig, leaguesConfig, externalReducers, externalMiddlewares, externalModule) {
|
|
16301
|
+
var tmp = Companion_instance_7;
|
|
16302
|
+
return tmp.u5x(VOID, GameClientEngineControllerImpl$createDI$lambda(combinedLogger, externalModule, coreConfig, currentPlayerId, clientConfig, gameClientConfig, engineLogicConfig, botConfig, dealerConfig, ratingConfig, leaguesConfig, externalReducers, externalMiddlewares));
|
|
16301
16303
|
}
|
|
16302
16304
|
function GameClientEngineControllerImpl$logger$delegate$lambda() {
|
|
16303
|
-
return
|
|
16305
|
+
return Companion_instance_8.nx();
|
|
16304
16306
|
}
|
|
16305
16307
|
function GameClientEngineControllerImpl$_get_logger_$ref_da2dm5() {
|
|
16306
16308
|
return function (p0) {
|
|
@@ -16334,7 +16336,7 @@
|
|
|
16334
16336
|
}
|
|
16335
16337
|
function GameClientEngineControllerImpl$di$delegate$lambda(this$0) {
|
|
16336
16338
|
return function () {
|
|
16337
|
-
var tmp =
|
|
16339
|
+
var tmp = Companion_instance_7;
|
|
16338
16340
|
return tmp.u5x(VOID, GameClientEngineControllerImpl$di$delegate$lambda$lambda(this$0));
|
|
16339
16341
|
};
|
|
16340
16342
|
}
|
|
@@ -16443,7 +16445,7 @@
|
|
|
16443
16445
|
}
|
|
16444
16446
|
function GameClientEngineControllerImpl$createCallbackOutput$lambda($gameClient) {
|
|
16445
16447
|
return function (it) {
|
|
16446
|
-
var payload =
|
|
16448
|
+
var payload = Companion_instance_9.v9h(it);
|
|
16447
16449
|
var tmp;
|
|
16448
16450
|
if (!(payload == null)) {
|
|
16449
16451
|
return payload;
|
|
@@ -16457,7 +16459,7 @@
|
|
|
16457
16459
|
function GameClientEngineControllerImpl$createDI$lambda$lambda($this$singleton) {
|
|
16458
16460
|
return new StubClientGameHistoryInteractor();
|
|
16459
16461
|
}
|
|
16460
|
-
function GameClientEngineControllerImpl$createDI$lambda($combinedLogger, $externalModule, $coreConfig, $currentPlayerId, $clientConfig, $gameClientConfig, $engineLogicConfig, $botConfig, $dealerConfig, $ratingConfig, $externalReducers, $externalMiddlewares) {
|
|
16462
|
+
function GameClientEngineControllerImpl$createDI$lambda($combinedLogger, $externalModule, $coreConfig, $currentPlayerId, $clientConfig, $gameClientConfig, $engineLogicConfig, $botConfig, $dealerConfig, $ratingConfig, $leaguesConfig, $externalReducers, $externalMiddlewares) {
|
|
16461
16463
|
return function ($this$DI) {
|
|
16462
16464
|
// Inline function 'org.kodein.di.bind' call
|
|
16463
16465
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -16484,7 +16486,7 @@
|
|
|
16484
16486
|
}
|
|
16485
16487
|
$this$DI.n5x(dealerModule());
|
|
16486
16488
|
$this$DI.n5x(coreModule($coreConfig));
|
|
16487
|
-
$this$DI.n5x(createGameClientDI($currentPlayerId, $clientConfig, $gameClientConfig, $engineLogicConfig, $botConfig, $dealerConfig, $ratingConfig, $externalReducers, $externalMiddlewares));
|
|
16489
|
+
$this$DI.n5x(createGameClientDI($currentPlayerId, $clientConfig, $gameClientConfig, $engineLogicConfig, $botConfig, $dealerConfig, $ratingConfig, $leaguesConfig, $externalReducers, $externalMiddlewares));
|
|
16488
16490
|
return Unit_instance;
|
|
16489
16491
|
};
|
|
16490
16492
|
}
|
|
@@ -16527,8 +16529,8 @@
|
|
|
16527
16529
|
protoOf(GameClientEngineControllerImpl).createOnlineGameEngine = function (currentPlayerId) {
|
|
16528
16530
|
return this.createOnlineGameEngineWithLogic(currentPlayerId);
|
|
16529
16531
|
};
|
|
16530
|
-
protoOf(GameClientEngineControllerImpl).jb8 = function (currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, ratingConfig, coreConfig) {
|
|
16531
|
-
var combinedLogger =
|
|
16532
|
+
protoOf(GameClientEngineControllerImpl).jb8 = function (currentPlayerId, reducers, middlewares, gameClientConfig, engineBotConfig, logicConfig, dealerConfig, ratingConfig, leaguesConfig, coreConfig) {
|
|
16533
|
+
var combinedLogger = Companion_instance_8.nx();
|
|
16532
16534
|
var gameClient = {_v: null};
|
|
16533
16535
|
var tmp0_clientConfig = new ClientConfig(GameType_SERVER_getInstance(), get_entries());
|
|
16534
16536
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -16557,7 +16559,7 @@
|
|
|
16557
16559
|
}
|
|
16558
16560
|
var tmp2_externalMiddlewares = toList(destination_0);
|
|
16559
16561
|
var tmp3_externalModule = Module_init_$Create$('External Module', VOID, VOID, GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$lambda(this, coreConfig, combinedLogger, gameClient));
|
|
16560
|
-
var engineDI = createDI(this, combinedLogger, currentPlayerId, coreConfig, tmp0_clientConfig, engineBotConfig, gameClientConfig, logicConfig, dealerConfig, ratingConfig, tmp1_externalReducers, tmp2_externalMiddlewares, tmp3_externalModule);
|
|
16562
|
+
var engineDI = createDI(this, combinedLogger, currentPlayerId, coreConfig, tmp0_clientConfig, engineBotConfig, gameClientConfig, logicConfig, dealerConfig, ratingConfig, leaguesConfig, tmp1_externalReducers, tmp2_externalMiddlewares, tmp3_externalModule);
|
|
16561
16563
|
// Inline function 'org.kodein.di.instance' call
|
|
16562
16564
|
var tmp = get_direct(engineDI).y5y();
|
|
16563
16565
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -16717,12 +16719,12 @@
|
|
|
16717
16719
|
});
|
|
16718
16720
|
//endregion
|
|
16719
16721
|
//region block: init
|
|
16720
|
-
|
|
16721
|
-
|
|
16722
|
-
|
|
16723
|
-
|
|
16724
|
-
|
|
16725
|
-
|
|
16722
|
+
Companion_instance_11 = new Companion_0();
|
|
16723
|
+
Companion_instance_12 = new Companion_1();
|
|
16724
|
+
Companion_instance_13 = new Companion_2();
|
|
16725
|
+
Companion_instance_14 = new Companion_3();
|
|
16726
|
+
Companion_instance_15 = new Companion_4();
|
|
16727
|
+
Companion_instance_16 = new Companion_5();
|
|
16726
16728
|
//endregion
|
|
16727
16729
|
//region block: exports
|
|
16728
16730
|
function $jsExportAll$(_) {
|