game_client_logic_deb 1.4.28 → 1.4.29
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
package/Logic_Debertz-engine.js
CHANGED
|
@@ -713,10 +713,11 @@
|
|
|
713
713
|
setMetadataFor(SuitChoiceFromClientAction, 'SuitChoiceFromClientAction', classMeta, FromClientAction, [FromClientAction, PlayerAnswerFromClientAction], undefined, undefined, []);
|
|
714
714
|
setMetadataFor(CardFromClientAction, 'CardFromClientAction', classMeta, FromClientAction, [FromClientAction, PlayerAnswerFromClientAction], undefined, undefined, []);
|
|
715
715
|
setMetadataFor(MessageFromClientAction, 'MessageFromClientAction', classMeta, FromClientAction, undefined, undefined, undefined, []);
|
|
716
|
+
setMetadataFor(Companion_97, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
|
|
716
717
|
setMetadataFor(ActionDeliveryPayload, 'ActionDeliveryPayload', classMeta, undefined, undefined, undefined, undefined, []);
|
|
717
|
-
setMetadataFor(
|
|
718
|
-
setMetadataFor(ActionDeliveryType, 'ActionDeliveryType', classMeta, Enum, undefined, undefined, {0:
|
|
719
|
-
setMetadataFor(
|
|
718
|
+
setMetadataFor(Companion_98, 'Companion', objectMeta, undefined, [SerializerFactory], undefined, undefined, []);
|
|
719
|
+
setMetadataFor(ActionDeliveryType, 'ActionDeliveryType', classMeta, Enum, undefined, undefined, {0: Companion_getInstance_106}, []);
|
|
720
|
+
setMetadataFor(Companion_99, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
|
|
720
721
|
setMetadataFor(ToClientActionMapperPayloadProvider, 'ToClientActionMapperPayloadProvider', classMeta, undefined, undefined, undefined, undefined, []);
|
|
721
722
|
setMetadataFor(ToClientAction, 'ToClientAction', classMeta, undefined, [Action], undefined, undefined, []);
|
|
722
723
|
setMetadataFor(CombinationChoiceToClientAction, 'CombinationChoiceToClientAction', classMeta, ToClientAction, undefined, undefined, undefined, []);
|
|
@@ -10818,7 +10819,7 @@
|
|
|
10818
10819
|
return new PlayerConnectionChangedToClientActionDto(_this__u8e3s4.u3e_1, _this__u8e3s4.v3e_1, _this__u8e3s4.w3e_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.toString());
|
|
10819
10820
|
}
|
|
10820
10821
|
function mapFromDto_40(_this__u8e3s4, payload) {
|
|
10821
|
-
var tmp0_deliveryPayload =
|
|
10822
|
+
var tmp0_deliveryPayload = Companion_getInstance_107().y3e(payload);
|
|
10822
10823
|
var tmp1_version = _this__u8e3s4.x35_1;
|
|
10823
10824
|
var tmp2_config = mapFromDto_10(_this__u8e3s4.w35_1);
|
|
10824
10825
|
var tmp3_gameCreatorPlayerId = _this__u8e3s4.y35_1;
|
|
@@ -10842,37 +10843,37 @@
|
|
|
10842
10843
|
return new StartGameToClientAction(tmp0_deliveryPayload, tmp2_config, tmp1_version, tmp3_gameCreatorPlayerId, tmp4_users);
|
|
10843
10844
|
}
|
|
10844
10845
|
function mapFromDto_41(_this__u8e3s4, payload) {
|
|
10845
|
-
return new ContinueGameToClientAction(
|
|
10846
|
+
return new ContinueGameToClientAction(Companion_getInstance_107().y3e(payload), mapFromDto_38(_this__u8e3s4.z33_1), _this__u8e3s4.a34_1, _this__u8e3s4.b34_1);
|
|
10846
10847
|
}
|
|
10847
10848
|
function mapFromDto_42(_this__u8e3s4, payload) {
|
|
10848
|
-
return new FinishingGameToClientAction(
|
|
10849
|
+
return new FinishingGameToClientAction(Companion_getInstance_107().y3e(payload), _this__u8e3s4.h34_1);
|
|
10849
10850
|
}
|
|
10850
10851
|
function mapFromDto_43(_this__u8e3s4, payload) {
|
|
10851
|
-
return new FinishGameToClientAction(
|
|
10852
|
+
return new FinishGameToClientAction(Companion_getInstance_107().y3e(payload), _this__u8e3s4.e34_1);
|
|
10852
10853
|
}
|
|
10853
10854
|
function mapFromDto_44(_this__u8e3s4, payload) {
|
|
10854
|
-
return new RestartGameToClientAction(
|
|
10855
|
+
return new RestartGameToClientAction(Companion_getInstance_107().y3e(payload), _this__u8e3s4.h35_1);
|
|
10855
10856
|
}
|
|
10856
10857
|
function mapFromDto_45(_this__u8e3s4, payload) {
|
|
10857
|
-
var tmp =
|
|
10858
|
+
var tmp = Companion_getInstance_107().y3e(payload);
|
|
10858
10859
|
var tmp0_safe_receiver = _this__u8e3s4.r35_1;
|
|
10859
10860
|
var tmp_0 = tmp0_safe_receiver == null ? null : mapFromDto_60(tmp0_safe_receiver);
|
|
10860
10861
|
var tmp1_safe_receiver = _this__u8e3s4.s35_1;
|
|
10861
10862
|
return new SceneToClientAction(tmp, _this__u8e3s4.p35_1, _this__u8e3s4.q35_1, tmp_0, tmp1_safe_receiver == null ? null : mapFromDto_58(tmp1_safe_receiver));
|
|
10862
10863
|
}
|
|
10863
10864
|
function mapFromDto_46(_this__u8e3s4, payload) {
|
|
10864
|
-
var tmp =
|
|
10865
|
+
var tmp = Companion_getInstance_107().y3e(payload);
|
|
10865
10866
|
var tmp0_safe_receiver = _this__u8e3s4.m35_1;
|
|
10866
10867
|
return new SceneActToClientAction(tmp, _this__u8e3s4.k35_1, _this__u8e3s4.l35_1, tmp0_safe_receiver == null ? null : mapFromDto_58(tmp0_safe_receiver));
|
|
10867
10868
|
}
|
|
10868
10869
|
function mapFromDto_47(_this__u8e3s4, payload) {
|
|
10869
|
-
return new TeamsDataToClientAction(
|
|
10870
|
+
return new TeamsDataToClientAction(Companion_getInstance_107().y3e(payload), _this__u8e3s4.i36_1, _this__u8e3s4.j36_1);
|
|
10870
10871
|
}
|
|
10871
10872
|
function mapFromDto_48(_this__u8e3s4, payload) {
|
|
10872
|
-
return new PlayerReadyToClientAction(
|
|
10873
|
+
return new PlayerReadyToClientAction(Companion_getInstance_107().y3e(payload), _this__u8e3s4.y34_1);
|
|
10873
10874
|
}
|
|
10874
10875
|
function mapFromDto_49(_this__u8e3s4, payload) {
|
|
10875
|
-
var tmp0_deliveryPayload =
|
|
10876
|
+
var tmp0_deliveryPayload = Companion_getInstance_107().y3e(payload);
|
|
10876
10877
|
var tmp1_suit = _this__u8e3s4.d36_1;
|
|
10877
10878
|
var tmp2_playerId = _this__u8e3s4.c36_1;
|
|
10878
10879
|
var tmp3_nextTurnPlayerId = _this__u8e3s4.e36_1;
|
|
@@ -10880,10 +10881,10 @@
|
|
|
10880
10881
|
return new SuitChoiceToClientAction(tmp0_deliveryPayload, tmp2_playerId, tmp1_suit, tmp3_nextTurnPlayerId, tmp4_restartParty);
|
|
10881
10882
|
}
|
|
10882
10883
|
function mapFromDto_50(_this__u8e3s4, payload) {
|
|
10883
|
-
return new TrumpToClientAction(
|
|
10884
|
+
return new TrumpToClientAction(Companion_getInstance_107().y3e(payload), _this__u8e3s4.m36_1);
|
|
10884
10885
|
}
|
|
10885
10886
|
function mapFromDto_51(_this__u8e3s4, payload) {
|
|
10886
|
-
var tmp =
|
|
10887
|
+
var tmp = Companion_getInstance_107().y3e(payload);
|
|
10887
10888
|
var tmp$ret$2;
|
|
10888
10889
|
// Inline function 'kotlin.collections.map' call
|
|
10889
10890
|
var tmp0_map = _this__u8e3s4.w33_1;
|
|
@@ -10903,7 +10904,7 @@
|
|
|
10903
10904
|
return new CombinationChoiceToClientAction(tmp, _this__u8e3s4.u33_1, _this__u8e3s4.v33_1, tmp$ret$2);
|
|
10904
10905
|
}
|
|
10905
10906
|
function mapFromDto_52(_this__u8e3s4, payload) {
|
|
10906
|
-
var tmp =
|
|
10907
|
+
var tmp = Companion_getInstance_107().y3e(payload);
|
|
10907
10908
|
var tmp_0 = mapFromDto(_this__u8e3s4.c35_1);
|
|
10908
10909
|
var tmp0_safe_receiver = _this__u8e3s4.e35_1;
|
|
10909
10910
|
var tmp_1;
|
|
@@ -10930,10 +10931,10 @@
|
|
|
10930
10931
|
return new PutCardToClientAction(tmp, _this__u8e3s4.b35_1, tmp_0, _this__u8e3s4.d35_1, tmp_1);
|
|
10931
10932
|
}
|
|
10932
10933
|
function mapFromDto_53(_this__u8e3s4, payload) {
|
|
10933
|
-
return new PickUpBribeToClientAction(
|
|
10934
|
+
return new PickUpBribeToClientAction(Companion_getInstance_107().y3e(payload), _this__u8e3s4.o34_1, _this__u8e3s4.p34_1);
|
|
10934
10935
|
}
|
|
10935
10936
|
function mapFromDto_54(_this__u8e3s4, payload) {
|
|
10936
|
-
var tmp =
|
|
10937
|
+
var tmp = Companion_getInstance_107().y3e(payload);
|
|
10937
10938
|
var tmp$ret$2;
|
|
10938
10939
|
// Inline function 'kotlin.collections.map' call
|
|
10939
10940
|
var tmp0_map = _this__u8e3s4.p36_1;
|
|
@@ -10953,10 +10954,10 @@
|
|
|
10953
10954
|
return new WinnerCombinationsToClientAction(tmp, tmp$ret$2);
|
|
10954
10955
|
}
|
|
10955
10956
|
function mapFromDto_55(_this__u8e3s4, payload) {
|
|
10956
|
-
return new MessageToClientAction(
|
|
10957
|
+
return new MessageToClientAction(Companion_getInstance_107().y3e(payload), mapFromDto_20(_this__u8e3s4.l34_1, true));
|
|
10957
10958
|
}
|
|
10958
10959
|
function mapFromDto_56(_this__u8e3s4, payload) {
|
|
10959
|
-
var tmp =
|
|
10960
|
+
var tmp = Companion_getInstance_107().y3e(payload);
|
|
10960
10961
|
var tmp0_elvis_lhs = _this__u8e3s4.u34_1;
|
|
10961
10962
|
var tmp_0 = tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
|
|
10962
10963
|
var tmp1_safe_receiver = _this__u8e3s4.v34_1;
|
|
@@ -27101,7 +27102,29 @@
|
|
|
27101
27102
|
};
|
|
27102
27103
|
function PlayerAnswerFromClientAction() {
|
|
27103
27104
|
}
|
|
27105
|
+
function Companion_97() {
|
|
27106
|
+
Companion_instance_97 = this;
|
|
27107
|
+
}
|
|
27108
|
+
Companion_97.prototype.user = function (roomId, sendToPlayerId) {
|
|
27109
|
+
var tmp$ret$2;
|
|
27110
|
+
// Inline function 'kotlin.arrayOf' call
|
|
27111
|
+
var tmp$ret$1;
|
|
27112
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
27113
|
+
var tmp$ret$0;
|
|
27114
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
27115
|
+
tmp$ret$0 = [sendToPlayerId];
|
|
27116
|
+
tmp$ret$1 = tmp$ret$0;
|
|
27117
|
+
tmp$ret$2 = tmp$ret$1;
|
|
27118
|
+
return new ActionDeliveryPayload(roomId, tmp$ret$2, ActionDeliveryType_USER_getInstance());
|
|
27119
|
+
};
|
|
27120
|
+
var Companion_instance_97;
|
|
27121
|
+
function Companion_getInstance_105() {
|
|
27122
|
+
if (Companion_instance_97 == null)
|
|
27123
|
+
new Companion_97();
|
|
27124
|
+
return Companion_instance_97;
|
|
27125
|
+
}
|
|
27104
27126
|
function ActionDeliveryPayload(roomId, sendToPlayerIds, deliveryType) {
|
|
27127
|
+
Companion_getInstance_105();
|
|
27105
27128
|
this.roomId = roomId;
|
|
27106
27129
|
this.sendToPlayerIds = sendToPlayerIds;
|
|
27107
27130
|
this.deliveryType = deliveryType;
|
|
@@ -27171,24 +27194,24 @@
|
|
|
27171
27194
|
var ActionDeliveryType_ROOM_ALL_instance;
|
|
27172
27195
|
var ActionDeliveryType_ROOM_EXCEPT_CURRENT_instance;
|
|
27173
27196
|
var ActionDeliveryType_USER_instance;
|
|
27174
|
-
function
|
|
27175
|
-
|
|
27197
|
+
function Companion_98() {
|
|
27198
|
+
Companion_instance_98 = this;
|
|
27176
27199
|
var tmp = this;
|
|
27177
27200
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
27178
27201
|
tmp.u3v_1 = lazy_0(tmp_0, ActionDeliveryType$Companion$$cachedSerializer$delegate$_anonymous__pd351u);
|
|
27179
27202
|
}
|
|
27180
|
-
|
|
27203
|
+
Companion_98.prototype.serializer = function () {
|
|
27181
27204
|
return this.u3v_1.j1();
|
|
27182
27205
|
};
|
|
27183
|
-
|
|
27206
|
+
Companion_98.prototype.b1l = function (typeParamsSerializers) {
|
|
27184
27207
|
return this.serializer();
|
|
27185
27208
|
};
|
|
27186
|
-
var
|
|
27187
|
-
function
|
|
27209
|
+
var Companion_instance_98;
|
|
27210
|
+
function Companion_getInstance_106() {
|
|
27188
27211
|
ActionDeliveryType_initEntries();
|
|
27189
|
-
if (
|
|
27190
|
-
new
|
|
27191
|
-
return
|
|
27212
|
+
if (Companion_instance_98 == null)
|
|
27213
|
+
new Companion_98();
|
|
27214
|
+
return Companion_instance_98;
|
|
27192
27215
|
}
|
|
27193
27216
|
function values_9() {
|
|
27194
27217
|
return [ActionDeliveryType_ROOM_ALL_getInstance(), ActionDeliveryType_ROOM_EXCEPT_CURRENT_getInstance(), ActionDeliveryType_USER_getInstance()];
|
|
@@ -27215,7 +27238,7 @@
|
|
|
27215
27238
|
ActionDeliveryType_ROOM_ALL_instance = new ActionDeliveryType('ROOM_ALL', 0);
|
|
27216
27239
|
ActionDeliveryType_ROOM_EXCEPT_CURRENT_instance = new ActionDeliveryType('ROOM_EXCEPT_CURRENT', 1);
|
|
27217
27240
|
ActionDeliveryType_USER_instance = new ActionDeliveryType('USER', 2);
|
|
27218
|
-
|
|
27241
|
+
Companion_getInstance_106();
|
|
27219
27242
|
}
|
|
27220
27243
|
function ActionDeliveryType(name, ordinal) {
|
|
27221
27244
|
Enum.call(this, name, ordinal);
|
|
@@ -27479,14 +27502,14 @@
|
|
|
27479
27502
|
return sortWithItem(tmp$ret$2, $sendToPlayerId);
|
|
27480
27503
|
};
|
|
27481
27504
|
}
|
|
27482
|
-
function
|
|
27483
|
-
|
|
27505
|
+
function Companion_99() {
|
|
27506
|
+
Companion_instance_99 = this;
|
|
27484
27507
|
}
|
|
27485
|
-
|
|
27508
|
+
Companion_99.prototype.x3v = function (sendToPlayerId, table) {
|
|
27486
27509
|
var tmp = getGameCreator(table.players).w2c();
|
|
27487
27510
|
return new ToClientActionMapperPayloadProvider(sendToPlayerId, tmp, table.id, ToClientActionMapperPayloadProvider$Companion$fromTable$lambda(table, sendToPlayerId));
|
|
27488
27511
|
};
|
|
27489
|
-
|
|
27512
|
+
Companion_99.prototype.y3e = function (_this__u8e3s4) {
|
|
27490
27513
|
var tmp$ret$2;
|
|
27491
27514
|
// Inline function 'kotlin.arrayOf' call
|
|
27492
27515
|
var tmp0_arrayOf = [_this__u8e3s4.y3v_1];
|
|
@@ -27499,14 +27522,14 @@
|
|
|
27499
27522
|
tmp$ret$2 = tmp$ret$1;
|
|
27500
27523
|
return new ActionDeliveryPayload(_this__u8e3s4.a3w_1, tmp$ret$2, ActionDeliveryType_USER_getInstance());
|
|
27501
27524
|
};
|
|
27502
|
-
var
|
|
27503
|
-
function
|
|
27504
|
-
if (
|
|
27505
|
-
new
|
|
27506
|
-
return
|
|
27525
|
+
var Companion_instance_99;
|
|
27526
|
+
function Companion_getInstance_107() {
|
|
27527
|
+
if (Companion_instance_99 == null)
|
|
27528
|
+
new Companion_99();
|
|
27529
|
+
return Companion_instance_99;
|
|
27507
27530
|
}
|
|
27508
27531
|
function ToClientActionMapperPayloadProvider(playerId, gameCreatorPlayerId, roomId, playersOrder) {
|
|
27509
|
-
|
|
27532
|
+
Companion_getInstance_107();
|
|
27510
27533
|
this.y3v_1 = playerId;
|
|
27511
27534
|
this.z3v_1 = gameCreatorPlayerId;
|
|
27512
27535
|
this.a3w_1 = roomId;
|
|
@@ -34136,7 +34159,7 @@
|
|
|
34136
34159
|
return _get_encoderDecoderProvider__qqgrji(this).m3p(mapToDto_40(action));
|
|
34137
34160
|
};
|
|
34138
34161
|
ParserHelperImpl.prototype.decodeToClientEvent = function (playerId, table, json) {
|
|
34139
|
-
return mapFromDto_39(_get_encoderDecoderProvider__qqgrji(this).o3p(json),
|
|
34162
|
+
return mapFromDto_39(_get_encoderDecoderProvider__qqgrji(this).o3p(json), Companion_getInstance_107().x3v(playerId, table));
|
|
34140
34163
|
};
|
|
34141
34164
|
ParserHelperImpl.prototype.decodeToClientEventToMechanicAction = function (playerId, engine, json) {
|
|
34142
34165
|
return mapFromClientDtoWithPayload(_get_encoderDecoderProvider__qqgrji(this).o3p(json), playerId, engine);
|
|
@@ -34535,6 +34558,10 @@
|
|
|
34535
34558
|
var $com$debertz$logic$redux$actions$client = $com$debertz$logic$redux$actions.client || ($com$debertz$logic$redux$actions.client = {});
|
|
34536
34559
|
var $com$debertz$logic$redux$actions$client$to = $com$debertz$logic$redux$actions$client.to || ($com$debertz$logic$redux$actions$client.to = {});
|
|
34537
34560
|
$com$debertz$logic$redux$actions$client$to.ActionDeliveryPayload = ActionDeliveryPayload;
|
|
34561
|
+
Object.defineProperty($com$debertz$logic$redux$actions$client$to.ActionDeliveryPayload, 'Companion', {
|
|
34562
|
+
configurable: true,
|
|
34563
|
+
get: Companion_getInstance_105
|
|
34564
|
+
});
|
|
34538
34565
|
$com$debertz$logic$redux$actions$client$to.ActionDeliveryType = ActionDeliveryType;
|
|
34539
34566
|
$com$debertz$logic$redux$actions$client$to.ActionDeliveryType.values = values_9;
|
|
34540
34567
|
$com$debertz$logic$redux$actions$client$to.ActionDeliveryType.valueOf = valueOf_3;
|
|
@@ -34552,7 +34579,7 @@
|
|
|
34552
34579
|
});
|
|
34553
34580
|
Object.defineProperty($com$debertz$logic$redux$actions$client$to.ActionDeliveryType, 'Companion', {
|
|
34554
34581
|
configurable: true,
|
|
34555
|
-
get:
|
|
34582
|
+
get: Companion_getInstance_106
|
|
34556
34583
|
});
|
|
34557
34584
|
var $com = _.com || (_.com = {});
|
|
34558
34585
|
var $com$debertz = $com.debertz || ($com.debertz = {});
|