client_plugin_logic_deb 1.8.488 → 1.8.490
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
CHANGED
|
@@ -453,7 +453,7 @@
|
|
|
453
453
|
initMetadataForClass(BrowserCompressionService, 'BrowserCompressionService', BrowserCompressionService, VOID, [CompressionService], [2]);
|
|
454
454
|
//endregion
|
|
455
455
|
function GameEngineConfig() {
|
|
456
|
-
this.version = '1.8.
|
|
456
|
+
this.version = '1.8.490';
|
|
457
457
|
}
|
|
458
458
|
protoOf(GameEngineConfig).k47 = function () {
|
|
459
459
|
return this.version;
|
|
@@ -1068,7 +1068,7 @@
|
|
|
1068
1068
|
initMetadataForClass(ObserverStrategy, 'ObserverStrategy', VOID, Enum);
|
|
1069
1069
|
initMetadataForInterface(TradeScene, 'TradeScene', VOID, VOID, [SceneActionsContract, ExpectantContract, TradeSceneContract]);
|
|
1070
1070
|
initMetadataForInterface(EarnPointsScene, 'EarnPointsScene', VOID, VOID, [SceneActionsContract, ExpectantContract, EarnPointsSceneContract]);
|
|
1071
|
-
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [
|
|
1071
|
+
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [ExpectantContract, ControlsContract, SceneActionsContract]);
|
|
1072
1072
|
initMetadataForClass(EarnPointsSceneImpl, 'EarnPointsSceneImpl', VOID, VOID, [EarnPointsSceneContract, ExpectantContract, SceneActionsContract, PlayersSceneContract, EarnPointsScene, GameEngineSceneContract]);
|
|
1073
1073
|
initMetadataForLambda(TableSceneImpl$observeControls$o$collect$slambda, CoroutineImpl, VOID, [1]);
|
|
1074
1074
|
initMetadataForCoroutine($collectCOROUTINE$_41, CoroutineImpl);
|
|
@@ -37798,24 +37798,24 @@
|
|
|
37798
37798
|
return Companion_instance_92.rf2(tmp1_config, tmp2_uiState, tmp3_isSceneActive, tmp6_messages, tmp4_bufferedActions, tmp5_error);
|
|
37799
37799
|
};
|
|
37800
37800
|
protoOf(ClientLifecycleReducer).sf2 = function (state) {
|
|
37801
|
+
var uiState = state.qbi_1.tf2(false);
|
|
37801
37802
|
if (state.lbi_1.obu()) {
|
|
37802
|
-
return Companion_instance_92.
|
|
37803
|
+
return Companion_instance_92.vf2(state.lbi_1, uiState, state.rbi_1);
|
|
37803
37804
|
} else {
|
|
37804
37805
|
var tmp1_config = state.lbi_1;
|
|
37805
|
-
var
|
|
37806
|
-
var
|
|
37807
|
-
var
|
|
37808
|
-
var
|
|
37809
|
-
var
|
|
37810
|
-
var
|
|
37811
|
-
var
|
|
37812
|
-
var
|
|
37813
|
-
var
|
|
37814
|
-
|
|
37815
|
-
|
|
37816
|
-
|
|
37817
|
-
|
|
37818
|
-
protoOf(ClientLifecycleReducer).vf2 = function (messages) {
|
|
37806
|
+
var tmp2_isSceneActive = state.rbi_1;
|
|
37807
|
+
var tmp3_error = state.abj_1;
|
|
37808
|
+
var tmp4_interceptedActions = state.obi_1;
|
|
37809
|
+
var tmp5_bufferedActions = state.pbi_1;
|
|
37810
|
+
var tmp6_combinationsToAnnounce = state.ubi_1;
|
|
37811
|
+
var tmp7_messages = state.mbi_1;
|
|
37812
|
+
var tmp8_processingCard = state.xbi_1;
|
|
37813
|
+
var tmp9_transitions = state.ybi_1;
|
|
37814
|
+
var tmp10_transitionFailsafeRunning = state.zbi_1;
|
|
37815
|
+
return Companion_instance_92.uf2(tmp1_config, uiState, tmp2_isSceneActive, tmp7_messages, tmp5_bufferedActions, tmp4_interceptedActions, tmp6_combinationsToAnnounce, tmp8_processingCard, tmp3_error, tmp9_transitions, tmp10_transitionFailsafeRunning);
|
|
37816
|
+
}
|
|
37817
|
+
};
|
|
37818
|
+
protoOf(ClientLifecycleReducer).wf2 = function (messages) {
|
|
37819
37819
|
// Inline function 'kotlin.collections.filter' call
|
|
37820
37820
|
// Inline function 'kotlin.collections.filterTo' call
|
|
37821
37821
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -37828,7 +37828,7 @@
|
|
|
37828
37828
|
}
|
|
37829
37829
|
return updateMessagesAsNotShown(destination, this.pf2_1);
|
|
37830
37830
|
};
|
|
37831
|
-
protoOf(ClientLifecycleReducer).
|
|
37831
|
+
protoOf(ClientLifecycleReducer).xf2 = function (messages) {
|
|
37832
37832
|
// Inline function 'kotlin.collections.filter' call
|
|
37833
37833
|
// Inline function 'kotlin.collections.filterTo' call
|
|
37834
37834
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -37901,7 +37901,7 @@
|
|
|
37901
37901
|
return destination;
|
|
37902
37902
|
}
|
|
37903
37903
|
function Companion_80() {
|
|
37904
|
-
this.
|
|
37904
|
+
this.yf2_1 = 'ClientMechanicLifecycleReducer';
|
|
37905
37905
|
}
|
|
37906
37906
|
var Companion_instance_91;
|
|
37907
37907
|
function Companion_getInstance_90() {
|
|
@@ -37910,7 +37910,7 @@
|
|
|
37910
37910
|
function ClientMechanicLifecycleReducer$onStart$lambda(this$0) {
|
|
37911
37911
|
return function (it) {
|
|
37912
37912
|
var tmp;
|
|
37913
|
-
if (this$0.
|
|
37913
|
+
if (this$0.bf3_1.obu()) {
|
|
37914
37914
|
tmp = Companion_instance_2.c7a(Companion_instance_3.v78(PlayerConnectionState_LIVE_getInstance()));
|
|
37915
37915
|
} else {
|
|
37916
37916
|
tmp = Companion_instance_2.c7a(null);
|
|
@@ -37920,27 +37920,27 @@
|
|
|
37920
37920
|
}
|
|
37921
37921
|
function ClientLifecycleReducer$gameFinishedMessagesReducer$ref(p0) {
|
|
37922
37922
|
var l = function (_this__u8e3s4) {
|
|
37923
|
-
return p0.
|
|
37923
|
+
return p0.wf2(_this__u8e3s4);
|
|
37924
37924
|
};
|
|
37925
37925
|
l.callableName = 'gameFinishedMessagesReducer';
|
|
37926
37926
|
return l;
|
|
37927
37927
|
}
|
|
37928
37928
|
function ClientLifecycleReducer$roundFinishedMessagesReducer$ref(p0) {
|
|
37929
37929
|
var l = function (_this__u8e3s4) {
|
|
37930
|
-
return p0.
|
|
37930
|
+
return p0.xf2(_this__u8e3s4);
|
|
37931
37931
|
};
|
|
37932
37932
|
l.callableName = 'roundFinishedMessagesReducer';
|
|
37933
37933
|
return l;
|
|
37934
37934
|
}
|
|
37935
37935
|
function ClientMechanicLifecycleReducer(clintConfig, logger, tableLifecycleReducer, randomPoolProvider, clientLifecycleReducer, clientCombinationsReducer) {
|
|
37936
37936
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
37937
|
-
this.
|
|
37938
|
-
this.
|
|
37939
|
-
this.
|
|
37940
|
-
this.
|
|
37937
|
+
this.bf3_1 = clintConfig;
|
|
37938
|
+
this.cf3_1 = logger;
|
|
37939
|
+
this.df3_1 = clientLifecycleReducer;
|
|
37940
|
+
this.ef3_1 = clientCombinationsReducer;
|
|
37941
37941
|
}
|
|
37942
37942
|
protoOf(ClientMechanicLifecycleReducer).db2 = function (state, action) {
|
|
37943
|
-
this.
|
|
37943
|
+
this.cf3_1.d('ClientMechanicLifecycleReducer', 'onStart ' + get_versionOrDefault(GameEngineConfig_instance), action);
|
|
37944
37944
|
var clientState = get_clientPayloadOrNull_0(state.payload);
|
|
37945
37945
|
var tmp0_$this = this.eb2_1;
|
|
37946
37946
|
var tmp1_tableId = action.p9d_1;
|
|
@@ -37953,8 +37953,8 @@
|
|
|
37953
37953
|
var newTable = tmp0_$this.mb3(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ClientMechanicLifecycleReducer$onStart$lambda(this));
|
|
37954
37954
|
var tmp;
|
|
37955
37955
|
if (clientState == null) {
|
|
37956
|
-
this.
|
|
37957
|
-
tmp = Companion_instance_92.
|
|
37956
|
+
this.cf3_1.w(VOID, 'ClientPayload is not onStart, should be init via InitClientStateAction');
|
|
37957
|
+
tmp = Companion_instance_92.ff3(this.bf3_1);
|
|
37958
37958
|
} else {
|
|
37959
37959
|
tmp = clientState;
|
|
37960
37960
|
}
|
|
@@ -37966,20 +37966,20 @@
|
|
|
37966
37966
|
this.fb2_1.q6g(action.previousGameId);
|
|
37967
37967
|
var newTable = this.eb2_1.nb3(state.u7v(), action.gameId);
|
|
37968
37968
|
var tmp = get_clientPayload(state);
|
|
37969
|
-
var newPayload = this.
|
|
37969
|
+
var newPayload = this.df3_1.qf2(tmp, ClientLifecycleReducer$gameFinishedMessagesReducer$ref(this.df3_1));
|
|
37970
37970
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
37971
37971
|
return state.mak(newTable, newPayload, tmp0_gameLifecycleState);
|
|
37972
37972
|
};
|
|
37973
37973
|
protoOf(ClientMechanicLifecycleReducer).bb2 = function (state, action) {
|
|
37974
|
-
this.
|
|
37974
|
+
this.cf3_1.d('ClientMechanicLifecycleReducer', 'onContinue ' + get_versionOrDefault(GameEngineConfig_instance), action);
|
|
37975
37975
|
var externalClientState = get_clientPayloadOrNull_0(action.payload);
|
|
37976
37976
|
var currentClientState = get_clientPayloadOrNull_0(state.payload);
|
|
37977
37977
|
var clientState = externalClientState == null ? currentClientState : externalClientState;
|
|
37978
37978
|
var tmp;
|
|
37979
37979
|
if (clientState == null) {
|
|
37980
|
-
tmp = Companion_instance_92.
|
|
37980
|
+
tmp = Companion_instance_92.ff3(this.bf3_1);
|
|
37981
37981
|
} else {
|
|
37982
|
-
tmp = this.
|
|
37982
|
+
tmp = this.df3_1.sf2(clientState);
|
|
37983
37983
|
}
|
|
37984
37984
|
var resetPayload = tmp;
|
|
37985
37985
|
var tmp_0 = get_currentPlayer(action.table).playerId;
|
|
@@ -37999,13 +37999,11 @@
|
|
|
37999
37999
|
}
|
|
38000
38000
|
tmp_1 = tmp$ret$0;
|
|
38001
38001
|
}
|
|
38002
|
-
var tmp2_elvis_lhs = this.
|
|
38003
|
-
var
|
|
38004
|
-
var
|
|
38005
|
-
var
|
|
38006
|
-
|
|
38007
|
-
var tmp6_tableOrNull = action.table;
|
|
38008
|
-
return state.mak(tmp6_tableOrNull, newPayload, tmp5_gameLifecycleState, null);
|
|
38002
|
+
var tmp2_elvis_lhs = this.ef3_1.nf2(tmp_0, tmp_1);
|
|
38003
|
+
var newPayload = resetPayload.rey(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_elvis_lhs == null ? resetPayload.ubi_1 : tmp2_elvis_lhs);
|
|
38004
|
+
var tmp3_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
38005
|
+
var tmp4_tableOrNull = action.table;
|
|
38006
|
+
return state.mak(tmp4_tableOrNull, newPayload, tmp3_gameLifecycleState, null);
|
|
38009
38007
|
};
|
|
38010
38008
|
protoOf(ClientMechanicLifecycleReducer).ab2 = function (state, action) {
|
|
38011
38009
|
var tmp0_safe_receiver = state.tableOrNull;
|
|
@@ -38016,7 +38014,7 @@
|
|
|
38016
38014
|
// Inline function 'kotlin.apply' call
|
|
38017
38015
|
this.fb2_1.q6g(tmp1_safe_receiver);
|
|
38018
38016
|
}
|
|
38019
|
-
var newPayload = this.
|
|
38017
|
+
var newPayload = this.df3_1.sf2(get_clientPayload(state));
|
|
38020
38018
|
var tmp2_gameLifecycleState = GameLifecycleState_FINISHING_getInstance();
|
|
38021
38019
|
var tmp3_terminationState = new TerminationState(action.w9d_1, action.y9d_1);
|
|
38022
38020
|
return state.mak(VOID, newPayload, tmp2_gameLifecycleState, tmp3_terminationState);
|
|
@@ -38029,7 +38027,7 @@
|
|
|
38029
38027
|
};
|
|
38030
38028
|
protoOf(ClientMechanicLifecycleReducer).yb1 = function (state, action) {
|
|
38031
38029
|
var tmp = get_clientPayload(state);
|
|
38032
|
-
var newPayload = this.
|
|
38030
|
+
var newPayload = this.df3_1.qf2(tmp, ClientLifecycleReducer$roundFinishedMessagesReducer$ref(this.df3_1));
|
|
38033
38031
|
var newTable = this.eb2_1.gb2(state.u7v());
|
|
38034
38032
|
return state.mak(newTable, newPayload);
|
|
38035
38033
|
};
|
|
@@ -38048,7 +38046,7 @@
|
|
|
38048
38046
|
tmp = null;
|
|
38049
38047
|
} else {
|
|
38050
38048
|
// Inline function 'kotlin.let' call
|
|
38051
|
-
tmp = this.
|
|
38049
|
+
tmp = this.df3_1.sf2(tmp2_safe_receiver).rey(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, action.v9f_1);
|
|
38052
38050
|
}
|
|
38053
38051
|
var newPayload = tmp;
|
|
38054
38052
|
var tmp3_safe_receiver = state.u7u_1;
|
|
@@ -38078,7 +38076,7 @@
|
|
|
38078
38076
|
}
|
|
38079
38077
|
function ClientLifecycleReducer$roundFinishedMessagesReducer$ref_0(p0) {
|
|
38080
38078
|
var l = function (_this__u8e3s4) {
|
|
38081
|
-
return p0.
|
|
38079
|
+
return p0.xf2(_this__u8e3s4);
|
|
38082
38080
|
};
|
|
38083
38081
|
l.callableName = 'roundFinishedMessagesReducer';
|
|
38084
38082
|
return l;
|
|
@@ -38175,13 +38173,13 @@
|
|
|
38175
38173
|
tmp = state.mak(VOID, get_clientPayload(state).rey(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null));
|
|
38176
38174
|
} else {
|
|
38177
38175
|
if (tmp2 instanceof UIFocusedAction) {
|
|
38178
|
-
tmp = state.mak(VOID, get_clientPayload(state).rey(VOID, VOID, VOID, VOID, VOID, get_clientPayload(state).qbi_1.
|
|
38176
|
+
tmp = state.mak(VOID, get_clientPayload(state).rey(VOID, VOID, VOID, VOID, VOID, get_clientPayload(state).qbi_1.tf2(VOID, tmp2.dev_1)));
|
|
38179
38177
|
} else {
|
|
38180
38178
|
if (tmp2 instanceof UICreatedAction) {
|
|
38181
|
-
tmp = state.mak(VOID, get_clientPayload(state).rey(VOID, VOID, VOID, VOID, VOID, get_clientPayload(state).qbi_1.
|
|
38179
|
+
tmp = state.mak(VOID, get_clientPayload(state).rey(VOID, VOID, VOID, VOID, VOID, get_clientPayload(state).qbi_1.tf2(tmp2.jev_1)));
|
|
38182
38180
|
} else {
|
|
38183
38181
|
if (tmp2 instanceof InitClientStateAction) {
|
|
38184
|
-
tmp = state.mak(VOID, Companion_instance_92.
|
|
38182
|
+
tmp = state.mak(VOID, Companion_instance_92.ff3(tmp2.eev_1));
|
|
38185
38183
|
} else {
|
|
38186
38184
|
if (tmp2 instanceof UpdateConfigAction) {
|
|
38187
38185
|
var tmp6_safe_receiver = tmp2.oev_1;
|
|
@@ -39501,17 +39499,17 @@
|
|
|
39501
39499
|
protoOf(Companion_81).pf4 = function (config, combinationsToAnnounce) {
|
|
39502
39500
|
return new ClientStatePayload(config, VOID, VOID, VOID, VOID, Companion_instance_93.o9z(), VOID, VOID, VOID, combinationsToAnnounce);
|
|
39503
39501
|
};
|
|
39504
|
-
protoOf(Companion_81).
|
|
39502
|
+
protoOf(Companion_81).ff3 = function (config, combinationsToAnnounce, $super) {
|
|
39505
39503
|
combinationsToAnnounce = combinationsToAnnounce === VOID ? null : combinationsToAnnounce;
|
|
39506
39504
|
return $super === VOID ? this.pf4(config, combinationsToAnnounce) : $super.pf4.call(this, config, combinationsToAnnounce);
|
|
39507
39505
|
};
|
|
39508
39506
|
protoOf(Companion_81).rf2 = function (config, uiState, isSceneActive, messages, bufferedActions, error) {
|
|
39509
39507
|
return new ClientStatePayload(config, messages, VOID, VOID, bufferedActions, uiState, isSceneActive, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, error);
|
|
39510
39508
|
};
|
|
39511
|
-
protoOf(Companion_81).
|
|
39509
|
+
protoOf(Companion_81).uf2 = function (config, uiState, isSceneActive, messages, bufferedActions, interceptedActions, combinationsToAnnounce, processingCard, error, transitions, transitionFailsafeRunning) {
|
|
39512
39510
|
return new ClientStatePayload(config, messages, VOID, interceptedActions, bufferedActions, uiState, isSceneActive, VOID, VOID, combinationsToAnnounce, VOID, VOID, processingCard, transitions, transitionFailsafeRunning, error);
|
|
39513
39511
|
};
|
|
39514
|
-
protoOf(Companion_81).
|
|
39512
|
+
protoOf(Companion_81).vf2 = function (config, uiState, isSceneActive) {
|
|
39515
39513
|
return new ClientStatePayload(config, VOID, VOID, VOID, VOID, uiState, isSceneActive);
|
|
39516
39514
|
};
|
|
39517
39515
|
var Companion_instance_92;
|
|
@@ -39742,7 +39740,7 @@
|
|
|
39742
39740
|
protoOf(UIState).rf4 = function (created, focused) {
|
|
39743
39741
|
return new UIState(created, focused);
|
|
39744
39742
|
};
|
|
39745
|
-
protoOf(UIState).
|
|
39743
|
+
protoOf(UIState).tf2 = function (created, focused, $super) {
|
|
39746
39744
|
created = created === VOID ? this.dca_1 : created;
|
|
39747
39745
|
focused = focused === VOID ? this.eca_1 : focused;
|
|
39748
39746
|
return $super === VOID ? this.rf4(created, focused) : $super.rf4.call(this, created, focused);
|