game_client_logic_deb 1.6.62 → 1.6.63
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 +81 -8
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +1 -0
- package/Logic_Debertz-game_client.js +21 -84
- 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-kotlinx-coroutines-core-js-ir.js +7 -7
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/package.json +1 -1
|
@@ -737,6 +737,7 @@ export declare namespace com.debertz.logic.data.models.table.history {
|
|
|
737
737
|
get isRoundEmpty(): boolean;
|
|
738
738
|
equals(other: Nullable<any>): boolean;
|
|
739
739
|
hashCode(): number;
|
|
740
|
+
toStringShort(): string;
|
|
740
741
|
copy(roundNumber?: number, items?: Array<com.debertz.logic.data.models.table.history.RoundHistoryItem>): com.debertz.logic.data.models.table.history.RoundHistory;
|
|
741
742
|
toString(): string;
|
|
742
743
|
static get Companion(): {
|
|
@@ -302,9 +302,6 @@
|
|
|
302
302
|
var PlayerTurnAnswerAction = kotlin_com_gamewithcats_game_engine_engine.$_$.d3;
|
|
303
303
|
var AppStatePayload = kotlin_com_gamewithcats_game_engine_engine.$_$.h4;
|
|
304
304
|
var LoggerOutput = kotlin_com_gamewithcats_game_engine_core.$_$.d3;
|
|
305
|
-
var d = kotlin_com_gamewithcats_game_engine_core.$_$.f4;
|
|
306
|
-
var e = kotlin_com_gamewithcats_game_engine_core.$_$.g4;
|
|
307
|
-
var w = kotlin_com_gamewithcats_game_engine_core.$_$.h4;
|
|
308
305
|
var Companion_instance_3 = kotlin_org_kodein_di_kodein_di.$_$.b;
|
|
309
306
|
var FileLoggerOutput = kotlin_com_gamewithcats_game_engine_engine.$_$.l4;
|
|
310
307
|
var FileLoggerOutputImpl = kotlin_com_gamewithcats_game_engine_engine.$_$.k4;
|
|
@@ -541,7 +538,7 @@
|
|
|
541
538
|
setMetadataFor(ControlsContract, 'ControlsContract', interfaceMeta);
|
|
542
539
|
setMetadataFor(TradeSceneContract, 'TradeSceneContract', interfaceMeta);
|
|
543
540
|
setMetadataFor(EarnPointsSceneContract, 'EarnPointsSceneContract', interfaceMeta);
|
|
544
|
-
setMetadataFor(TableScene, 'TableScene', interfaceMeta, VOID, [
|
|
541
|
+
setMetadataFor(TableScene, 'TableScene', interfaceMeta, VOID, [ExpectantContract, ControlsContract, SceneActionsContract]);
|
|
545
542
|
setMetadataFor(TradeScene, 'TradeScene', interfaceMeta, VOID, [SceneActionsContract, ExpectantContract, TradeSceneContract]);
|
|
546
543
|
setMetadataFor(EarnPointsScene, 'EarnPointsScene', interfaceMeta, VOID, [SceneActionsContract, ExpectantContract, EarnPointsSceneContract]);
|
|
547
544
|
setMetadataFor(EarnPointsSceneImpl, 'EarnPointsSceneImpl', classMeta, VOID, [EarnPointsSceneContract, ExpectantContract, SceneActionsContract, PlayersSceneContract, EarnPointsScene, GameEngineSceneContract]);
|
|
@@ -683,7 +680,6 @@
|
|
|
683
680
|
setMetadataFor(GameInfoState, 'GameInfoState', classMeta);
|
|
684
681
|
setMetadataFor(LastBribeState, 'LastBribeState', classMeta);
|
|
685
682
|
setMetadataFor(ShowErrorLoggerOutput, 'ShowErrorLoggerOutput', interfaceMeta, VOID, [LoggerOutput]);
|
|
686
|
-
setMetadataFor(ShowErrorLoggerOutputImpl, 'ShowErrorLoggerOutputImpl', classMeta, VOID, [ShowErrorLoggerOutput], ShowErrorLoggerOutputImpl);
|
|
687
683
|
function createOnlineGameEngineWithLogic(currentPlayerId, reducers, middlewares, isAutoStepCurrentPlayer, botExitsWhenNGameNumberIsFinished, $super) {
|
|
688
684
|
var tmp;
|
|
689
685
|
if (reducers === VOID) {
|
|
@@ -703,7 +699,7 @@
|
|
|
703
699
|
middlewares = tmp_0;
|
|
704
700
|
isAutoStepCurrentPlayer = isAutoStepCurrentPlayer === VOID ? false : isAutoStepCurrentPlayer;
|
|
705
701
|
botExitsWhenNGameNumberIsFinished = botExitsWhenNGameNumberIsFinished === VOID ? null : botExitsWhenNGameNumberIsFinished;
|
|
706
|
-
return this.
|
|
702
|
+
return this.v6o(currentPlayerId, reducers, middlewares, isAutoStepCurrentPlayer, botExitsWhenNGameNumberIsFinished);
|
|
707
703
|
}
|
|
708
704
|
setMetadataFor(GameClientEngineController, 'GameClientEngineController', interfaceMeta);
|
|
709
705
|
setMetadataFor(_no_name_provided__qut3iv_72, VOID, classMeta, VOID, [Reducer]);
|
|
@@ -13983,60 +13979,23 @@
|
|
|
13983
13979
|
}
|
|
13984
13980
|
function ShowErrorLoggerOutput() {
|
|
13985
13981
|
}
|
|
13986
|
-
function onError($this, message) {
|
|
13987
|
-
var tmp0_safe_receiver = $this.v6o_1;
|
|
13988
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver();
|
|
13989
|
-
if (tmp1_safe_receiver == null)
|
|
13990
|
-
null;
|
|
13991
|
-
else {
|
|
13992
|
-
tmp1_safe_receiver.s55(new ErrorAction(new ErrorState(message, VOID, new GameErrorReason('internal error'))));
|
|
13993
|
-
}
|
|
13994
|
-
}
|
|
13995
|
-
function ShowErrorLoggerOutputImpl(skipWarnings, gameClientProvider) {
|
|
13996
|
-
skipWarnings = skipWarnings === VOID ? true : skipWarnings;
|
|
13997
|
-
gameClientProvider = gameClientProvider === VOID ? null : gameClientProvider;
|
|
13998
|
-
this.u6o_1 = skipWarnings;
|
|
13999
|
-
this.v6o_1 = gameClientProvider;
|
|
14000
|
-
}
|
|
14001
|
-
protoOf(ShowErrorLoggerOutputImpl).q6o = function (_set____db54di) {
|
|
14002
|
-
this.u6o_1 = _set____db54di;
|
|
14003
|
-
};
|
|
14004
|
-
protoOf(ShowErrorLoggerOutputImpl).r6o = function () {
|
|
14005
|
-
return this.u6o_1;
|
|
14006
|
-
};
|
|
14007
|
-
protoOf(ShowErrorLoggerOutputImpl).s6o = function (_set____db54di) {
|
|
14008
|
-
this.v6o_1 = _set____db54di;
|
|
14009
|
-
};
|
|
14010
|
-
protoOf(ShowErrorLoggerOutputImpl).t6o = function () {
|
|
14011
|
-
return this.v6o_1;
|
|
14012
|
-
};
|
|
14013
|
-
protoOf(ShowErrorLoggerOutputImpl).j2z = function (tag, message, payload) {
|
|
14014
|
-
};
|
|
14015
|
-
protoOf(ShowErrorLoggerOutputImpl).k2z = function (tag, message, exception, payload) {
|
|
14016
|
-
onError(this, message);
|
|
14017
|
-
};
|
|
14018
|
-
protoOf(ShowErrorLoggerOutputImpl).l2z = function (tag, message, payload) {
|
|
14019
|
-
if (!this.u6o_1) {
|
|
14020
|
-
onError(this, message);
|
|
14021
|
-
}
|
|
14022
|
-
};
|
|
14023
13982
|
function GameClientEngineController() {
|
|
14024
13983
|
}
|
|
14025
13984
|
function createGameClientController(loggerCallback) {
|
|
14026
13985
|
return new GameClientEngineControllerImpl(loggerCallback);
|
|
14027
13986
|
}
|
|
14028
|
-
function createDI($this, currentPlayerId, coreConfig, clientConfig, botConfig, gameClientConfig, engineLogicConfig, dealerConfig, externalReducers, externalMiddlewares, externalModule) {
|
|
13987
|
+
function createDI($this, combinedLogger, currentPlayerId, coreConfig, clientConfig, botConfig, gameClientConfig, engineLogicConfig, dealerConfig, externalReducers, externalMiddlewares, externalModule) {
|
|
14029
13988
|
var tmp = Companion_instance_3;
|
|
14030
|
-
return tmp.d1h(VOID, GameClientEngineControllerImpl$createDI$lambda(externalModule, coreConfig, currentPlayerId, clientConfig, gameClientConfig, engineLogicConfig, botConfig, dealerConfig, externalReducers, externalMiddlewares));
|
|
13989
|
+
return tmp.d1h(VOID, GameClientEngineControllerImpl$createDI$lambda(combinedLogger, externalModule, coreConfig, currentPlayerId, clientConfig, gameClientConfig, engineLogicConfig, botConfig, dealerConfig, externalReducers, externalMiddlewares));
|
|
14031
13990
|
}
|
|
14032
13991
|
function _no_name_provided__qut3iv_72($item) {
|
|
14033
|
-
this.
|
|
13992
|
+
this.w6o_1 = $item;
|
|
14034
13993
|
}
|
|
14035
13994
|
protoOf(_no_name_provided__qut3iv_72).b2v = function (action) {
|
|
14036
13995
|
return isInterface(action, Action);
|
|
14037
13996
|
};
|
|
14038
13997
|
protoOf(_no_name_provided__qut3iv_72).b4w = function (state, action) {
|
|
14039
|
-
return this.
|
|
13998
|
+
return this.w6o_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
14040
13999
|
};
|
|
14041
14000
|
protoOf(_no_name_provided__qut3iv_72).d2x = function (state, action) {
|
|
14042
14001
|
return this.b4w(state instanceof AppState ? state : THROW_CCE(), action);
|
|
@@ -14120,20 +14079,15 @@
|
|
|
14120
14079
|
return tmp;
|
|
14121
14080
|
};
|
|
14122
14081
|
}
|
|
14123
|
-
function GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$lambda_2($gameClient) {
|
|
14124
|
-
return function () {
|
|
14125
|
-
return $gameClient;
|
|
14126
|
-
};
|
|
14127
|
-
}
|
|
14128
14082
|
function GameClientEngineControllerImpl$createDI$lambda$lambda($this$singleton) {
|
|
14129
14083
|
return new FromClientEventsObserverImpl();
|
|
14130
14084
|
}
|
|
14131
14085
|
function GameClientEngineControllerImpl$createDI$lambda$lambda_0($this$singleton) {
|
|
14132
14086
|
return new StubClientGameHistoryInteractor();
|
|
14133
14087
|
}
|
|
14134
|
-
function GameClientEngineControllerImpl$createDI$lambda($externalModule, $coreConfig, $currentPlayerId, $clientConfig, $gameClientConfig, $engineLogicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares) {
|
|
14088
|
+
function GameClientEngineControllerImpl$createDI$lambda($combinedLogger, $externalModule, $coreConfig, $currentPlayerId, $clientConfig, $gameClientConfig, $engineLogicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares) {
|
|
14135
14089
|
return function ($this$invoke) {
|
|
14136
|
-
$this$invoke.w1g(combinedLoggerModule());
|
|
14090
|
+
$this$invoke.w1g(combinedLoggerModule($combinedLogger));
|
|
14137
14091
|
var tmp0_safe_receiver = $externalModule;
|
|
14138
14092
|
if (tmp0_safe_receiver == null)
|
|
14139
14093
|
null;
|
|
@@ -14179,11 +14133,11 @@
|
|
|
14179
14133
|
}
|
|
14180
14134
|
function GameClientEngineControllerImpl(loggerCallback) {
|
|
14181
14135
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
14182
|
-
this.
|
|
14183
|
-
this.
|
|
14136
|
+
this.x6o_1 = loggerCallback;
|
|
14137
|
+
this.y6o_1 = new ParserHelperImpl(listOf_0(get_clientSerializerModule()));
|
|
14184
14138
|
}
|
|
14185
|
-
protoOf(GameClientEngineControllerImpl).
|
|
14186
|
-
return this.
|
|
14139
|
+
protoOf(GameClientEngineControllerImpl).u6o = function () {
|
|
14140
|
+
return this.y6o_1;
|
|
14187
14141
|
};
|
|
14188
14142
|
protoOf(GameClientEngineControllerImpl).setEnableLogger = function (enabled) {
|
|
14189
14143
|
Logger_getInstance().k2u_1 = enabled;
|
|
@@ -14191,7 +14145,7 @@
|
|
|
14191
14145
|
protoOf(GameClientEngineControllerImpl).createOnlineGameEngine = function (currentPlayerId) {
|
|
14192
14146
|
return this.createOnlineGameEngineWithLogic(currentPlayerId);
|
|
14193
14147
|
};
|
|
14194
|
-
protoOf(GameClientEngineControllerImpl).
|
|
14148
|
+
protoOf(GameClientEngineControllerImpl).v6o = function (currentPlayerId, reducers, middlewares, isAutoStepCurrentPlayer, botExitsWhenNGameNumberIsFinished) {
|
|
14195
14149
|
var coreConfig = new CoreConfig();
|
|
14196
14150
|
var combinedLogger = Companion_instance_6.ss();
|
|
14197
14151
|
var tmp;
|
|
@@ -14202,13 +14156,12 @@
|
|
|
14202
14156
|
}
|
|
14203
14157
|
var fileLoggerOutput = tmp;
|
|
14204
14158
|
var tmp_0;
|
|
14205
|
-
if (!(this.
|
|
14206
|
-
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.
|
|
14159
|
+
if (!(this.x6o_1 == null)) {
|
|
14160
|
+
tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.x6o_1));
|
|
14207
14161
|
} else {
|
|
14208
14162
|
tmp_0 = null;
|
|
14209
14163
|
}
|
|
14210
14164
|
var callbackWrapperLoggerOutput = tmp_0;
|
|
14211
|
-
var showErrorLoggerOutput = new ShowErrorLoggerOutputImpl();
|
|
14212
14165
|
var tmp0_clientConfig = new ClientConfig(false, GameType_SERVER_getInstance(), get_entries());
|
|
14213
14166
|
var tmp1_botConfig = new EngineBotConfig(botExitsWhenNGameNumberIsFinished);
|
|
14214
14167
|
var tmp2_gameClientConfig = new GameClientConfig(false, VOID, false, isAutoStepCurrentPlayer);
|
|
@@ -14242,7 +14195,7 @@
|
|
|
14242
14195
|
}
|
|
14243
14196
|
var tmp6_externalMiddlewares = toList(destination_0);
|
|
14244
14197
|
var tmp7_externalModule = Module_init_$Create$('External Module', VOID, VOID, GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$lambda(fileLoggerOutput, callbackWrapperLoggerOutput));
|
|
14245
|
-
var di = createDI(this, currentPlayerId, coreConfig, tmp0_clientConfig, tmp1_botConfig, tmp2_gameClientConfig, tmp3_engineLogicConfig, tmp4_dealerConfig, tmp5_externalReducers, tmp6_externalMiddlewares, tmp7_externalModule);
|
|
14198
|
+
var di = createDI(this, combinedLogger, currentPlayerId, coreConfig, tmp0_clientConfig, tmp1_botConfig, tmp2_gameClientConfig, tmp3_engineLogicConfig, tmp4_dealerConfig, tmp5_externalReducers, tmp6_externalMiddlewares, tmp7_externalModule);
|
|
14246
14199
|
// Inline function 'org.kodein.di.instance' call
|
|
14247
14200
|
var tmp_1 = get_direct(di).h1i();
|
|
14248
14201
|
// Inline function 'org.kodein.type.generic' call
|
|
@@ -14259,15 +14212,12 @@
|
|
|
14259
14212
|
tmp_4.o4z_1 = GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$lambda_1(gameClient);
|
|
14260
14213
|
combinedLogger.i2z(callbackWrapperLoggerOutput);
|
|
14261
14214
|
}
|
|
14262
|
-
var tmp_5 = showErrorLoggerOutput;
|
|
14263
|
-
tmp_5.v6o_1 = GameClientEngineControllerImpl$createOnlineGameEngineWithLogic$lambda_2(gameClient);
|
|
14264
|
-
combinedLogger.i2z(showErrorLoggerOutput);
|
|
14265
14215
|
// Inline function 'org.kodein.di.instance' call
|
|
14266
|
-
var
|
|
14216
|
+
var tmp_5 = get_direct(di).h1i();
|
|
14267
14217
|
// Inline function 'org.kodein.type.generic' call
|
|
14268
|
-
var
|
|
14269
|
-
var tmp$ret$9 = isInterface(
|
|
14270
|
-
return
|
|
14218
|
+
var tmp_6 = typeToken(createKType(getKClass(OnlineGameMechanic), arrayOf([]), false));
|
|
14219
|
+
var tmp$ret$9 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
14220
|
+
return tmp_5.g1i(tmp$ret$9, null);
|
|
14271
14221
|
};
|
|
14272
14222
|
//region block: post-declaration
|
|
14273
14223
|
defineProp(protoOf(PlayerViewModel), 'playerId', function () {
|
|
@@ -14402,22 +14352,9 @@
|
|
|
14402
14352
|
protoOf(ExpectantTimerTag).notValidateWhenFinished = notValidateWhenFinished;
|
|
14403
14353
|
protoOf(ResetMessageTimerTag).notValidateWhenFinished = notValidateWhenFinished;
|
|
14404
14354
|
protoOf(ResetMessageTimerTag).m4o = notValidateTimerReset;
|
|
14405
|
-
protoOf(ShowErrorLoggerOutputImpl).d = d;
|
|
14406
|
-
protoOf(ShowErrorLoggerOutputImpl).e = e;
|
|
14407
|
-
protoOf(ShowErrorLoggerOutputImpl).w = w;
|
|
14408
|
-
defineProp(protoOf(ShowErrorLoggerOutputImpl), 'skipWarnings', function () {
|
|
14409
|
-
return this.r6o();
|
|
14410
|
-
}, function (value) {
|
|
14411
|
-
this.q6o(value);
|
|
14412
|
-
});
|
|
14413
|
-
defineProp(protoOf(ShowErrorLoggerOutputImpl), 'gameClientProvider', function () {
|
|
14414
|
-
return this.t6o();
|
|
14415
|
-
}, function (value) {
|
|
14416
|
-
this.s6o(value);
|
|
14417
|
-
});
|
|
14418
14355
|
protoOf(GameClientEngineControllerImpl).createOnlineGameEngineWithLogic = createOnlineGameEngineWithLogic;
|
|
14419
14356
|
defineProp(protoOf(GameClientEngineControllerImpl), 'parser', function () {
|
|
14420
|
-
return this.
|
|
14357
|
+
return this.u6o();
|
|
14421
14358
|
});
|
|
14422
14359
|
//endregion
|
|
14423
14360
|
//region block: init
|