game_client_logic_deb 1.8.488 → 1.8.489
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
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
initMetadataForClass(BrowserCompressionService, 'BrowserCompressionService', BrowserCompressionService, VOID, [CompressionService], [2]);
|
|
413
413
|
//endregion
|
|
414
414
|
function GameEngineConfig() {
|
|
415
|
-
this.version = '1.8.
|
|
415
|
+
this.version = '1.8.489';
|
|
416
416
|
}
|
|
417
417
|
protoOf(GameEngineConfig).v41 = function () {
|
|
418
418
|
return this.version;
|
|
@@ -608,7 +608,7 @@
|
|
|
608
608
|
initMetadataForInterface(ControlsContract, 'ControlsContract');
|
|
609
609
|
initMetadataForInterface(TradeSceneContract, 'TradeSceneContract');
|
|
610
610
|
initMetadataForInterface(EarnPointsSceneContract, 'EarnPointsSceneContract');
|
|
611
|
-
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [
|
|
611
|
+
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [ControlsContract, ExpectantContract, SceneActionsContract]);
|
|
612
612
|
initMetadataForInterface(TradeScene, 'TradeScene', VOID, VOID, [SceneActionsContract, ExpectantContract, TradeSceneContract]);
|
|
613
613
|
initMetadataForInterface(EarnPointsScene, 'EarnPointsScene', VOID, VOID, [SceneActionsContract, ExpectantContract, EarnPointsSceneContract]);
|
|
614
614
|
initMetadataForClass(EarnPointsSceneImpl, 'EarnPointsSceneImpl', VOID, VOID, [EarnPointsSceneContract, ExpectantContract, SceneActionsContract, PlayersSceneContract, EarnPointsScene, GameEngineSceneContract]);
|
|
@@ -14930,24 +14930,24 @@
|
|
|
14930
14930
|
return Companion_instance_15.dc9(tmp1_config, tmp2_uiState, tmp3_isSceneActive, tmp6_messages, tmp4_bufferedActions, tmp5_error);
|
|
14931
14931
|
};
|
|
14932
14932
|
protoOf(ClientLifecycleReducer).ec9 = function (state) {
|
|
14933
|
+
var uiState = state.xb0_1.hc9(false);
|
|
14933
14934
|
if (state.sb0_1.pay()) {
|
|
14934
|
-
return Companion_instance_15.
|
|
14935
|
+
return Companion_instance_15.jc9(state.sb0_1, uiState, state.yb0_1);
|
|
14935
14936
|
} else {
|
|
14936
14937
|
var tmp1_config = state.sb0_1;
|
|
14937
|
-
var
|
|
14938
|
-
var
|
|
14939
|
-
var
|
|
14940
|
-
var
|
|
14941
|
-
var
|
|
14942
|
-
var
|
|
14943
|
-
var
|
|
14944
|
-
var
|
|
14945
|
-
var
|
|
14946
|
-
|
|
14947
|
-
return Companion_instance_15.fc9(tmp1_config, tmp2_uiState, tmp3_isSceneActive, tmp8_messages, tmp6_bufferedActions, tmp5_interceptedActions, tmp7_combinationsToAnnounce, tmp9_processingCard, tmp4_error, tmp10_transitions, tmp11_transitionFailsafeRunning);
|
|
14938
|
+
var tmp2_isSceneActive = state.yb0_1;
|
|
14939
|
+
var tmp3_error = state.hb1_1;
|
|
14940
|
+
var tmp4_interceptedActions = state.vb0_1;
|
|
14941
|
+
var tmp5_bufferedActions = state.wb0_1;
|
|
14942
|
+
var tmp6_combinationsToAnnounce = state.bb1_1;
|
|
14943
|
+
var tmp7_messages = state.tb0_1;
|
|
14944
|
+
var tmp8_processingCard = state.eb1_1;
|
|
14945
|
+
var tmp9_transitions = state.fb1_1;
|
|
14946
|
+
var tmp10_transitionFailsafeRunning = state.gb1_1;
|
|
14947
|
+
return Companion_instance_15.ic9(tmp1_config, uiState, tmp2_isSceneActive, tmp7_messages, tmp5_bufferedActions, tmp4_interceptedActions, tmp6_combinationsToAnnounce, tmp8_processingCard, tmp3_error, tmp9_transitions, tmp10_transitionFailsafeRunning);
|
|
14948
14948
|
}
|
|
14949
14949
|
};
|
|
14950
|
-
protoOf(ClientLifecycleReducer).
|
|
14950
|
+
protoOf(ClientLifecycleReducer).kc9 = function (messages) {
|
|
14951
14951
|
// Inline function 'kotlin.collections.filter' call
|
|
14952
14952
|
// Inline function 'kotlin.collections.filterTo' call
|
|
14953
14953
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -14960,7 +14960,7 @@
|
|
|
14960
14960
|
}
|
|
14961
14961
|
return updateMessagesAsNotShown(destination, this.bc9_1);
|
|
14962
14962
|
};
|
|
14963
|
-
protoOf(ClientLifecycleReducer).
|
|
14963
|
+
protoOf(ClientLifecycleReducer).lc9 = function (messages) {
|
|
14964
14964
|
// Inline function 'kotlin.collections.filter' call
|
|
14965
14965
|
// Inline function 'kotlin.collections.filterTo' call
|
|
14966
14966
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -15033,7 +15033,7 @@
|
|
|
15033
15033
|
return destination;
|
|
15034
15034
|
}
|
|
15035
15035
|
function Companion_3() {
|
|
15036
|
-
this.
|
|
15036
|
+
this.mc9_1 = 'ClientMechanicLifecycleReducer';
|
|
15037
15037
|
}
|
|
15038
15038
|
var Companion_instance_14;
|
|
15039
15039
|
function Companion_getInstance_3() {
|
|
@@ -15042,7 +15042,7 @@
|
|
|
15042
15042
|
function ClientMechanicLifecycleReducer$onStart$lambda(this$0) {
|
|
15043
15043
|
return function (it) {
|
|
15044
15044
|
var tmp;
|
|
15045
|
-
if (this$0.
|
|
15045
|
+
if (this$0.pc9_1.pay()) {
|
|
15046
15046
|
tmp = Companion_instance_2.u6y(Companion_instance_3.p6x(PlayerConnectionState_LIVE_getInstance()));
|
|
15047
15047
|
} else {
|
|
15048
15048
|
tmp = Companion_instance_2.u6y(null);
|
|
@@ -15052,27 +15052,27 @@
|
|
|
15052
15052
|
}
|
|
15053
15053
|
function ClientLifecycleReducer$gameFinishedMessagesReducer$ref(p0) {
|
|
15054
15054
|
var l = function (_this__u8e3s4) {
|
|
15055
|
-
return p0.
|
|
15055
|
+
return p0.kc9(_this__u8e3s4);
|
|
15056
15056
|
};
|
|
15057
15057
|
l.callableName = 'gameFinishedMessagesReducer';
|
|
15058
15058
|
return l;
|
|
15059
15059
|
}
|
|
15060
15060
|
function ClientLifecycleReducer$roundFinishedMessagesReducer$ref(p0) {
|
|
15061
15061
|
var l = function (_this__u8e3s4) {
|
|
15062
|
-
return p0.
|
|
15062
|
+
return p0.lc9(_this__u8e3s4);
|
|
15063
15063
|
};
|
|
15064
15064
|
l.callableName = 'roundFinishedMessagesReducer';
|
|
15065
15065
|
return l;
|
|
15066
15066
|
}
|
|
15067
15067
|
function ClientMechanicLifecycleReducer(clintConfig, logger, tableLifecycleReducer, randomPoolProvider, clientLifecycleReducer, clientCombinationsReducer) {
|
|
15068
15068
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
|
|
15069
|
-
this.
|
|
15070
|
-
this.
|
|
15071
|
-
this.
|
|
15072
|
-
this.
|
|
15069
|
+
this.pc9_1 = clintConfig;
|
|
15070
|
+
this.qc9_1 = logger;
|
|
15071
|
+
this.rc9_1 = clientLifecycleReducer;
|
|
15072
|
+
this.sc9_1 = clientCombinationsReducer;
|
|
15073
15073
|
}
|
|
15074
15074
|
protoOf(ClientMechanicLifecycleReducer).bac = function (state, action) {
|
|
15075
|
-
this.
|
|
15075
|
+
this.qc9_1.d('ClientMechanicLifecycleReducer', 'onStart ' + get_versionOrDefault(GameEngineConfig_instance), action);
|
|
15076
15076
|
var clientState = get_clientPayloadOrNull(state.payload);
|
|
15077
15077
|
var tmp0_$this = this.cac_1;
|
|
15078
15078
|
var tmp1_tableId = action.l9w_1;
|
|
@@ -15085,8 +15085,8 @@
|
|
|
15085
15085
|
var newTable = tmp0_$this.jad(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ClientMechanicLifecycleReducer$onStart$lambda(this));
|
|
15086
15086
|
var tmp;
|
|
15087
15087
|
if (clientState == null) {
|
|
15088
|
-
this.
|
|
15089
|
-
tmp = Companion_instance_15.
|
|
15088
|
+
this.qc9_1.w(VOID, 'ClientPayload is not onStart, should be init via InitClientStateAction');
|
|
15089
|
+
tmp = Companion_instance_15.tc9(this.pc9_1);
|
|
15090
15090
|
} else {
|
|
15091
15091
|
tmp = clientState;
|
|
15092
15092
|
}
|
|
@@ -15098,20 +15098,20 @@
|
|
|
15098
15098
|
this.dac_1.m5y(action.previousGameId);
|
|
15099
15099
|
var newTable = this.cac_1.kad(state.m7f(), action.gameId);
|
|
15100
15100
|
var tmp = get_clientPayload_0(state);
|
|
15101
|
-
var newPayload = this.
|
|
15101
|
+
var newPayload = this.rc9_1.cc9(tmp, ClientLifecycleReducer$gameFinishedMessagesReducer$ref(this.rc9_1));
|
|
15102
15102
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
15103
15103
|
return state.t9u(newTable, newPayload, tmp0_gameLifecycleState);
|
|
15104
15104
|
};
|
|
15105
15105
|
protoOf(ClientMechanicLifecycleReducer).zab = function (state, action) {
|
|
15106
|
-
this.
|
|
15106
|
+
this.qc9_1.d('ClientMechanicLifecycleReducer', 'onContinue ' + get_versionOrDefault(GameEngineConfig_instance), action);
|
|
15107
15107
|
var externalClientState = get_clientPayloadOrNull(action.payload);
|
|
15108
15108
|
var currentClientState = get_clientPayloadOrNull(state.payload);
|
|
15109
15109
|
var clientState = externalClientState == null ? currentClientState : externalClientState;
|
|
15110
15110
|
var tmp;
|
|
15111
15111
|
if (clientState == null) {
|
|
15112
|
-
tmp = Companion_instance_15.
|
|
15112
|
+
tmp = Companion_instance_15.tc9(this.pc9_1);
|
|
15113
15113
|
} else {
|
|
15114
|
-
tmp = this.
|
|
15114
|
+
tmp = this.rc9_1.ec9(clientState);
|
|
15115
15115
|
}
|
|
15116
15116
|
var resetPayload = tmp;
|
|
15117
15117
|
var tmp_0 = get_currentPlayer(action.table).playerId;
|
|
@@ -15131,13 +15131,11 @@
|
|
|
15131
15131
|
}
|
|
15132
15132
|
tmp_1 = tmp$ret$0;
|
|
15133
15133
|
}
|
|
15134
|
-
var tmp2_elvis_lhs = this.
|
|
15135
|
-
var
|
|
15136
|
-
var
|
|
15137
|
-
var
|
|
15138
|
-
|
|
15139
|
-
var tmp6_tableOrNull = action.table;
|
|
15140
|
-
return state.t9u(tmp6_tableOrNull, newPayload, tmp5_gameLifecycleState, null);
|
|
15134
|
+
var tmp2_elvis_lhs = this.sc9_1.zc8(tmp_0, tmp_1);
|
|
15135
|
+
var newPayload = resetPayload.cc5(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_elvis_lhs == null ? resetPayload.bb1_1 : tmp2_elvis_lhs);
|
|
15136
|
+
var tmp3_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
15137
|
+
var tmp4_tableOrNull = action.table;
|
|
15138
|
+
return state.t9u(tmp4_tableOrNull, newPayload, tmp3_gameLifecycleState, null);
|
|
15141
15139
|
};
|
|
15142
15140
|
protoOf(ClientMechanicLifecycleReducer).yab = function (state, action) {
|
|
15143
15141
|
var tmp0_safe_receiver = state.tableOrNull;
|
|
@@ -15148,7 +15146,7 @@
|
|
|
15148
15146
|
// Inline function 'kotlin.apply' call
|
|
15149
15147
|
this.dac_1.m5y(tmp1_safe_receiver);
|
|
15150
15148
|
}
|
|
15151
|
-
var newPayload = this.
|
|
15149
|
+
var newPayload = this.rc9_1.ec9(get_clientPayload_0(state));
|
|
15152
15150
|
var tmp2_gameLifecycleState = GameLifecycleState_FINISHING_getInstance();
|
|
15153
15151
|
var tmp3_terminationState = new TerminationState(action.x9w_1, action.z9w_1);
|
|
15154
15152
|
return state.t9u(VOID, newPayload, tmp2_gameLifecycleState, tmp3_terminationState);
|
|
@@ -15161,7 +15159,7 @@
|
|
|
15161
15159
|
};
|
|
15162
15160
|
protoOf(ClientMechanicLifecycleReducer).wab = function (state, action) {
|
|
15163
15161
|
var tmp = get_clientPayload_0(state);
|
|
15164
|
-
var newPayload = this.
|
|
15162
|
+
var newPayload = this.rc9_1.cc9(tmp, ClientLifecycleReducer$roundFinishedMessagesReducer$ref(this.rc9_1));
|
|
15165
15163
|
var newTable = this.cac_1.eac(state.m7f());
|
|
15166
15164
|
return state.t9u(newTable, newPayload);
|
|
15167
15165
|
};
|
|
@@ -15180,7 +15178,7 @@
|
|
|
15180
15178
|
tmp = null;
|
|
15181
15179
|
} else {
|
|
15182
15180
|
// Inline function 'kotlin.let' call
|
|
15183
|
-
tmp = this.
|
|
15181
|
+
tmp = this.rc9_1.ec9(tmp2_safe_receiver).cc5(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, action.s9y_1);
|
|
15184
15182
|
}
|
|
15185
15183
|
var newPayload = tmp;
|
|
15186
15184
|
var tmp3_safe_receiver = state.y7e_1;
|
|
@@ -15210,7 +15208,7 @@
|
|
|
15210
15208
|
}
|
|
15211
15209
|
function ClientLifecycleReducer$roundFinishedMessagesReducer$ref_0(p0) {
|
|
15212
15210
|
var l = function (_this__u8e3s4) {
|
|
15213
|
-
return p0.
|
|
15211
|
+
return p0.lc9(_this__u8e3s4);
|
|
15214
15212
|
};
|
|
15215
15213
|
l.callableName = 'roundFinishedMessagesReducer';
|
|
15216
15214
|
return l;
|
|
@@ -15307,13 +15305,13 @@
|
|
|
15307
15305
|
tmp = state.t9u(VOID, get_clientPayload_0(state).cc5(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null));
|
|
15308
15306
|
} else {
|
|
15309
15307
|
if (tmp2 instanceof UIFocusedAction) {
|
|
15310
|
-
tmp = state.t9u(VOID, get_clientPayload_0(state).cc5(VOID, VOID, VOID, VOID, VOID, get_clientPayload_0(state).xb0_1.
|
|
15308
|
+
tmp = state.t9u(VOID, get_clientPayload_0(state).cc5(VOID, VOID, VOID, VOID, VOID, get_clientPayload_0(state).xb0_1.hc9(VOID, tmp2.jc1_1)));
|
|
15311
15309
|
} else {
|
|
15312
15310
|
if (tmp2 instanceof UICreatedAction) {
|
|
15313
|
-
tmp = state.t9u(VOID, get_clientPayload_0(state).cc5(VOID, VOID, VOID, VOID, VOID, get_clientPayload_0(state).xb0_1.
|
|
15311
|
+
tmp = state.t9u(VOID, get_clientPayload_0(state).cc5(VOID, VOID, VOID, VOID, VOID, get_clientPayload_0(state).xb0_1.hc9(tmp2.ic1_1)));
|
|
15314
15312
|
} else {
|
|
15315
15313
|
if (tmp2 instanceof InitClientStateAction) {
|
|
15316
|
-
tmp = state.t9u(VOID, Companion_instance_15.
|
|
15314
|
+
tmp = state.t9u(VOID, Companion_instance_15.tc9(tmp2.kc1_1));
|
|
15317
15315
|
} else {
|
|
15318
15316
|
if (tmp2 instanceof UpdateConfigAction) {
|
|
15319
15317
|
var tmp6_safe_receiver = tmp2.pc1_1;
|
|
@@ -16223,17 +16221,17 @@
|
|
|
16223
16221
|
protoOf(Companion_4).fcb = function (config, combinationsToAnnounce) {
|
|
16224
16222
|
return new ClientStatePayload(config, VOID, VOID, VOID, VOID, Companion_instance_16.g99(), VOID, VOID, VOID, combinationsToAnnounce);
|
|
16225
16223
|
};
|
|
16226
|
-
protoOf(Companion_4).
|
|
16224
|
+
protoOf(Companion_4).tc9 = function (config, combinationsToAnnounce, $super) {
|
|
16227
16225
|
combinationsToAnnounce = combinationsToAnnounce === VOID ? null : combinationsToAnnounce;
|
|
16228
16226
|
return $super === VOID ? this.fcb(config, combinationsToAnnounce) : $super.fcb.call(this, config, combinationsToAnnounce);
|
|
16229
16227
|
};
|
|
16230
16228
|
protoOf(Companion_4).dc9 = function (config, uiState, isSceneActive, messages, bufferedActions, error) {
|
|
16231
16229
|
return new ClientStatePayload(config, messages, VOID, VOID, bufferedActions, uiState, isSceneActive, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, error);
|
|
16232
16230
|
};
|
|
16233
|
-
protoOf(Companion_4).
|
|
16231
|
+
protoOf(Companion_4).ic9 = function (config, uiState, isSceneActive, messages, bufferedActions, interceptedActions, combinationsToAnnounce, processingCard, error, transitions, transitionFailsafeRunning) {
|
|
16234
16232
|
return new ClientStatePayload(config, messages, VOID, interceptedActions, bufferedActions, uiState, isSceneActive, VOID, VOID, combinationsToAnnounce, VOID, VOID, processingCard, transitions, transitionFailsafeRunning, error);
|
|
16235
16233
|
};
|
|
16236
|
-
protoOf(Companion_4).
|
|
16234
|
+
protoOf(Companion_4).jc9 = function (config, uiState, isSceneActive) {
|
|
16237
16235
|
return new ClientStatePayload(config, VOID, VOID, VOID, VOID, uiState, isSceneActive);
|
|
16238
16236
|
};
|
|
16239
16237
|
var Companion_instance_15;
|
|
@@ -16452,23 +16450,23 @@
|
|
|
16452
16450
|
return Companion_instance_16;
|
|
16453
16451
|
}
|
|
16454
16452
|
function UIState(created, focused) {
|
|
16455
|
-
this.
|
|
16456
|
-
this.
|
|
16453
|
+
this.fc9_1 = created;
|
|
16454
|
+
this.gc9_1 = focused;
|
|
16457
16455
|
}
|
|
16458
16456
|
protoOf(UIState).hcb = function (created, focused) {
|
|
16459
16457
|
return new UIState(created, focused);
|
|
16460
16458
|
};
|
|
16461
|
-
protoOf(UIState).
|
|
16462
|
-
created = created === VOID ? this.
|
|
16463
|
-
focused = focused === VOID ? this.
|
|
16459
|
+
protoOf(UIState).hc9 = function (created, focused, $super) {
|
|
16460
|
+
created = created === VOID ? this.fc9_1 : created;
|
|
16461
|
+
focused = focused === VOID ? this.gc9_1 : focused;
|
|
16464
16462
|
return $super === VOID ? this.hcb(created, focused) : $super.hcb.call(this, created, focused);
|
|
16465
16463
|
};
|
|
16466
16464
|
protoOf(UIState).toString = function () {
|
|
16467
|
-
return 'UIState(created=' + this.
|
|
16465
|
+
return 'UIState(created=' + this.fc9_1 + ', focused=' + this.gc9_1 + ')';
|
|
16468
16466
|
};
|
|
16469
16467
|
protoOf(UIState).hashCode = function () {
|
|
16470
|
-
var result = getBooleanHashCode(this.
|
|
16471
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
16468
|
+
var result = getBooleanHashCode(this.fc9_1);
|
|
16469
|
+
result = imul(result, 31) + getBooleanHashCode(this.gc9_1) | 0;
|
|
16472
16470
|
return result;
|
|
16473
16471
|
};
|
|
16474
16472
|
protoOf(UIState).equals = function (other) {
|
|
@@ -16476,9 +16474,9 @@
|
|
|
16476
16474
|
return true;
|
|
16477
16475
|
if (!(other instanceof UIState))
|
|
16478
16476
|
return false;
|
|
16479
|
-
if (!(this.
|
|
16477
|
+
if (!(this.fc9_1 === other.fc9_1))
|
|
16480
16478
|
return false;
|
|
16481
|
-
if (!(this.
|
|
16479
|
+
if (!(this.gc9_1 === other.gc9_1))
|
|
16482
16480
|
return false;
|
|
16483
16481
|
return true;
|
|
16484
16482
|
};
|