client_plugin_logic_deb 1.8.384 → 1.8.385
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-client_plugin.js +1954 -1954
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +83 -80
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +5682 -5662
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +710 -710
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +7 -7
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
package/Logic_Debertz-core.js
CHANGED
|
@@ -424,7 +424,7 @@
|
|
|
424
424
|
initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
|
|
425
425
|
//endregion
|
|
426
426
|
function GameEngineConfig() {
|
|
427
|
-
this.version = '1.8.
|
|
427
|
+
this.version = '1.8.385';
|
|
428
428
|
}
|
|
429
429
|
protoOf(GameEngineConfig).e3y = function () {
|
|
430
430
|
return this.version;
|
package/Logic_Debertz-engine.js
CHANGED
|
@@ -1393,15 +1393,15 @@
|
|
|
1393
1393
|
initMetadataForClass(FileLoggerOutputImpl, 'FileLoggerOutputImpl', VOID, VOID, [FileLoggerOutput]);
|
|
1394
1394
|
function filterLivePlayers(store, playerIds, includeBots, $super) {
|
|
1395
1395
|
includeBots = includeBots === VOID ? false : includeBots;
|
|
1396
|
-
return $super === VOID ? this.
|
|
1396
|
+
return $super === VOID ? this.s9v(store, playerIds, includeBots) : $super.s9v.call(this, store, playerIds, includeBots);
|
|
1397
1397
|
}
|
|
1398
1398
|
function filterLiveDuringGamePlayers(store, playerIds, includeBots, $super) {
|
|
1399
1399
|
includeBots = includeBots === VOID ? false : includeBots;
|
|
1400
|
-
return $super === VOID ? this.
|
|
1400
|
+
return $super === VOID ? this.t9v(store, playerIds, includeBots) : $super.t9v.call(this, store, playerIds, includeBots);
|
|
1401
1401
|
}
|
|
1402
1402
|
function createConfig(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league, $super) {
|
|
1403
1403
|
league = league === VOID ? null : league;
|
|
1404
|
-
return $super === VOID ? this.
|
|
1404
|
+
return $super === VOID ? this.u9v(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) : $super.u9v.call(this, mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league);
|
|
1405
1405
|
}
|
|
1406
1406
|
initMetadataForInterface(GameHelper, 'GameHelper');
|
|
1407
1407
|
initMetadataForClass(GameHelperImpl, 'GameHelperImpl', VOID, VOID, [GameHelper]);
|
|
@@ -1414,7 +1414,7 @@
|
|
|
1414
1414
|
tmp = existingNicknames;
|
|
1415
1415
|
}
|
|
1416
1416
|
existingNicknames = tmp;
|
|
1417
|
-
return $super === VOID ? this.
|
|
1417
|
+
return $super === VOID ? this.w9v(playerId, existingNicknames) : $super.w9v.call(this, playerId, existingNicknames);
|
|
1418
1418
|
}
|
|
1419
1419
|
initMetadataForInterface(GameResources, 'GameResources');
|
|
1420
1420
|
initMetadataForCompanion(Companion_196);
|
|
@@ -61097,8 +61097,9 @@
|
|
|
61097
61097
|
};
|
|
61098
61098
|
function Companion_195() {
|
|
61099
61099
|
this.n9v_1 = 1000;
|
|
61100
|
+
this.o9v_1 = 'FileLoggerOutput';
|
|
61100
61101
|
}
|
|
61101
|
-
protoOf(Companion_195).
|
|
61102
|
+
protoOf(Companion_195).p9v = function (payload) {
|
|
61102
61103
|
var tmp;
|
|
61103
61104
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
61104
61105
|
tmp = payload.id;
|
|
@@ -61115,7 +61116,7 @@
|
|
|
61115
61116
|
}
|
|
61116
61117
|
return tmp;
|
|
61117
61118
|
};
|
|
61118
|
-
protoOf(Companion_195).
|
|
61119
|
+
protoOf(Companion_195).q9v = function (payload) {
|
|
61119
61120
|
var tmp;
|
|
61120
61121
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
61121
61122
|
tmp = first(payload.users).u6d_1;
|
|
@@ -61133,13 +61134,13 @@
|
|
|
61133
61134
|
return Companion_instance_200;
|
|
61134
61135
|
}
|
|
61135
61136
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
61136
|
-
this.
|
|
61137
|
+
this.r9v_1 = function_0;
|
|
61137
61138
|
}
|
|
61138
61139
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).g24 = function (value, $completion) {
|
|
61139
|
-
return this.
|
|
61140
|
+
return this.r9v_1(value, $completion);
|
|
61140
61141
|
};
|
|
61141
61142
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).a3 = function () {
|
|
61142
|
-
return this.
|
|
61143
|
+
return this.r9v_1;
|
|
61143
61144
|
};
|
|
61144
61145
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
61145
61146
|
var tmp;
|
|
@@ -61211,6 +61212,7 @@
|
|
|
61211
61212
|
return new FileLoggerOutputImpl$observe$$inlined$filter$1(this_1, types);
|
|
61212
61213
|
};
|
|
61213
61214
|
protoOf(FileLoggerOutputImpl).c9l = function (loggerKey) {
|
|
61215
|
+
this.d('FileLoggerOutput', 'destroy logger ' + toString(loggerKey));
|
|
61214
61216
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
61215
61217
|
this.f9v_1;
|
|
61216
61218
|
var tmp0_safe_receiver = this.g9v_1.b2(loggerKey);
|
|
@@ -61238,6 +61240,7 @@
|
|
|
61238
61240
|
var updatedModel = tmp.m9v(VOID, controller, job);
|
|
61239
61241
|
// Inline function 'kotlin.collections.set' call
|
|
61240
61242
|
this.g9v_1.l2(loggerKey, updatedModel);
|
|
61243
|
+
this.d('FileLoggerOutput', 'create logger ' + toString(loggerKey));
|
|
61241
61244
|
};
|
|
61242
61245
|
protoOf(FileLoggerOutputImpl).h2 = function () {
|
|
61243
61246
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
@@ -61832,9 +61835,9 @@
|
|
|
61832
61835
|
}
|
|
61833
61836
|
}
|
|
61834
61837
|
function GameHelperImpl(logger) {
|
|
61835
|
-
this.
|
|
61838
|
+
this.v9v_1 = logger;
|
|
61836
61839
|
}
|
|
61837
|
-
protoOf(GameHelperImpl).
|
|
61840
|
+
protoOf(GameHelperImpl).s9v = function (store, playerIds, includeBots) {
|
|
61838
61841
|
var state = store.state;
|
|
61839
61842
|
var tmp;
|
|
61840
61843
|
if (!state.t6w()) {
|
|
@@ -61880,7 +61883,7 @@
|
|
|
61880
61883
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
61881
61884
|
return copyToArray(destination_1);
|
|
61882
61885
|
};
|
|
61883
|
-
protoOf(GameHelperImpl).
|
|
61886
|
+
protoOf(GameHelperImpl).t9v = function (store, playerIds, includeBots) {
|
|
61884
61887
|
var state = store.state;
|
|
61885
61888
|
var tmp;
|
|
61886
61889
|
if (!state.t6w()) {
|
|
@@ -62051,10 +62054,10 @@
|
|
|
62051
62054
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
62052
62055
|
return copyToArray(destination);
|
|
62053
62056
|
};
|
|
62054
|
-
protoOf(GameHelperImpl).
|
|
62057
|
+
protoOf(GameHelperImpl).u9v = function (mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) {
|
|
62055
62058
|
var roomMode = mapToRoomMode(mode);
|
|
62056
62059
|
var isEnableChoosePartnerScreen = (transition == null || transition.isEnableChoosePartnerScreen) && roomMode.isEnableChoosePartnerScreen;
|
|
62057
|
-
this.
|
|
62060
|
+
this.v9v_1.v(VOID, 'createConfig: ' + ('mode = ' + roomMode.toString() + ', ') + ('transition = ' + toString_0(transition) + ', ') + ('isPrivate = ' + isPrivate + ', ') + ('dealerStrategy = ' + dealerStrategy + ', ') + ('league = ' + league + ', ') + ('isEnableChoosePartnerScreen = ' + isEnableChoosePartnerScreen + ' '));
|
|
62058
62061
|
var options = Companion_instance_184.getServerOptions(isEnableChat, isBotsEnabled, isEnableChoosePartnerScreen);
|
|
62059
62062
|
var playersMode = this.mapPlayers(players);
|
|
62060
62063
|
var pointsMode = this.mapPoints(points);
|
|
@@ -62489,40 +62492,40 @@
|
|
|
62489
62492
|
function getRandomAvatarData_0($this) {
|
|
62490
62493
|
var avatarSetNumber = Default_getInstance().ng(get_entries_6().o());
|
|
62491
62494
|
var avatarSet = get_entries_6().p(avatarSetNumber);
|
|
62492
|
-
return new AvatarData(Default_getInstance().ng(avatarSet.
|
|
62495
|
+
return new AvatarData(Default_getInstance().ng(avatarSet.z9v()), avatarSet);
|
|
62493
62496
|
}
|
|
62494
62497
|
function getAvatarUrlByIndex($this, data) {
|
|
62495
62498
|
return mapToPattern($this, data);
|
|
62496
62499
|
}
|
|
62497
62500
|
function getNicknameByIndex($this, data) {
|
|
62498
|
-
return data.
|
|
62501
|
+
return data.b9w_1.c9w(data.a9w_1);
|
|
62499
62502
|
}
|
|
62500
62503
|
function mapToPattern($this, data) {
|
|
62501
|
-
return 'debertz://raspberry.games/' + data.
|
|
62504
|
+
return 'debertz://raspberry.games/' + data.b9w_1.p2_1 + '/' + data.a9w_1;
|
|
62502
62505
|
}
|
|
62503
62506
|
function Companion_196() {
|
|
62504
62507
|
Companion_instance_201 = this;
|
|
62505
|
-
this.
|
|
62508
|
+
this.d9w_1 = 'debertz://raspberry.games';
|
|
62506
62509
|
var tmp = this;
|
|
62507
62510
|
// Inline function 'kotlin.arrayOf' call
|
|
62508
62511
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
62509
62512
|
// Inline function 'kotlin.js.asDynamic' call
|
|
62510
|
-
tmp.
|
|
62513
|
+
tmp.e9w_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
|
|
62511
62514
|
var tmp_0 = this;
|
|
62512
62515
|
// Inline function 'kotlin.arrayOf' call
|
|
62513
62516
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
62514
62517
|
// Inline function 'kotlin.js.asDynamic' call
|
|
62515
|
-
tmp_0.
|
|
62518
|
+
tmp_0.f9w_1 = ['\u0422\u0430\u043D\u044F', 'TheBest', '\u0425\u0430\u0440\u043A\u0456\u0432\u041C\u0456\u0441\u0442\u043E\u0413\u0435\u0440\u043E\u0439', '\u0412\u0430\u043B\u044F', '\u041C\u0430\u0440\u0433\u0430\u0440\u0438\u0442\u0430', 'Dasha', '\u0410\u0440\u0442\u0435\u043C', '\u041F\u0435\u0442\u0440\u043E\u0432\u0438\u0447', '\u041A\u0440\u0438\u0441', '\u041C\u0430\u0440\u0456\u0430\u043D\u0430', '\u0421\u0430\u043B\u0442\u0456\u0432\u043A\u0430', '\u042F\u043D\u0430', 'Alex', '\u041E\u0434\u0435\u0441\u0441\u0430\u041C\u0430\u043C\u0430', 'Vika', '\u0421\u0432\u0456\u0442\u043B\u0430\u043D\u0430'];
|
|
62516
62519
|
var tmp_1 = this;
|
|
62517
62520
|
// Inline function 'kotlin.arrayOf' call
|
|
62518
62521
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
62519
62522
|
// Inline function 'kotlin.js.asDynamic' call
|
|
62520
|
-
tmp_1.
|
|
62523
|
+
tmp_1.g9w_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
|
|
62521
62524
|
var tmp_2 = this;
|
|
62522
62525
|
// Inline function 'kotlin.arrayOf' call
|
|
62523
62526
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
62524
62527
|
// Inline function 'kotlin.js.asDynamic' call
|
|
62525
|
-
tmp_2.
|
|
62528
|
+
tmp_2.h9w_1 = ['\u0423\u0441\u0456\u043C\u0414\u043E\u0431\u0440\u0430', '\u0410\u043B\u0435\u043A\u0441', 'MOLOTOK', '\u041B\u042F\u041B\u042F', '\u0406\u0412\u0410\u041D', '\u041C\u0438\u043A\u0438\u0442\u0430', '\u0410\u043B\u0456\u0441\u0430', '\u041C\u0430\u043A\u0441\u0438\u043C', '\u0421\u043E\u043B\u043E\u043C\u0456\u044F', '\u0414\u0436\u0435\u0432\u0435\u043B\u0456\u043D\u0430', '\u041A\u0441\u044E\u0445\u0430', '\u0422\u0410\u0420\u0410\u0421', '\u041E\u043B\u044F', '\u0414\u043E\u0420\u043E\u0431\u043E\u0442\u0438', '\u0421\u043B\u0430\u0432\u0430\u0417\u0421\u0423!', '\u0426\u0430\u0440\u044C\u0414\u0435\u0431\u0430'];
|
|
62526
62529
|
}
|
|
62527
62530
|
var Companion_instance_201;
|
|
62528
62531
|
function Companion_getInstance_203() {
|
|
@@ -62533,14 +62536,14 @@
|
|
|
62533
62536
|
function AvatarSet(name, ordinal) {
|
|
62534
62537
|
Enum.call(this, name, ordinal);
|
|
62535
62538
|
}
|
|
62536
|
-
protoOf(AvatarSet).
|
|
62539
|
+
protoOf(AvatarSet).z9v = function () {
|
|
62537
62540
|
var tmp;
|
|
62538
62541
|
switch (this.p2_1) {
|
|
62539
62542
|
case 0:
|
|
62540
|
-
tmp = Companion_getInstance_203().
|
|
62543
|
+
tmp = Companion_getInstance_203().f9w_1.length;
|
|
62541
62544
|
break;
|
|
62542
62545
|
case 1:
|
|
62543
|
-
tmp = Companion_getInstance_203().
|
|
62546
|
+
tmp = Companion_getInstance_203().h9w_1.length;
|
|
62544
62547
|
break;
|
|
62545
62548
|
default:
|
|
62546
62549
|
noWhenBranchMatchedException();
|
|
@@ -62548,14 +62551,14 @@
|
|
|
62548
62551
|
}
|
|
62549
62552
|
return tmp;
|
|
62550
62553
|
};
|
|
62551
|
-
protoOf(AvatarSet).
|
|
62554
|
+
protoOf(AvatarSet).c9w = function (index) {
|
|
62552
62555
|
var tmp;
|
|
62553
62556
|
switch (this.p2_1) {
|
|
62554
62557
|
case 0:
|
|
62555
|
-
tmp = Companion_getInstance_203().
|
|
62558
|
+
tmp = Companion_getInstance_203().f9w_1[index];
|
|
62556
62559
|
break;
|
|
62557
62560
|
case 1:
|
|
62558
|
-
tmp = Companion_getInstance_203().
|
|
62561
|
+
tmp = Companion_getInstance_203().h9w_1[index];
|
|
62559
62562
|
break;
|
|
62560
62563
|
default:
|
|
62561
62564
|
noWhenBranchMatchedException();
|
|
@@ -62564,8 +62567,8 @@
|
|
|
62564
62567
|
return tmp;
|
|
62565
62568
|
};
|
|
62566
62569
|
function AvatarData(index, avatarSet) {
|
|
62567
|
-
this.
|
|
62568
|
-
this.
|
|
62570
|
+
this.a9w_1 = index;
|
|
62571
|
+
this.b9w_1 = avatarSet;
|
|
62569
62572
|
}
|
|
62570
62573
|
function AvatarSet_ORIGIN_getInstance() {
|
|
62571
62574
|
AvatarSet_initEntries();
|
|
@@ -62578,7 +62581,7 @@
|
|
|
62578
62581
|
function GameResourcesImpl() {
|
|
62579
62582
|
Companion_getInstance_203();
|
|
62580
62583
|
}
|
|
62581
|
-
protoOf(GameResourcesImpl).
|
|
62584
|
+
protoOf(GameResourcesImpl).w9v = function (playerId, existingNicknames) {
|
|
62582
62585
|
return createUser(this, playerId, existingNicknames);
|
|
62583
62586
|
};
|
|
62584
62587
|
protoOf(GameResourcesImpl).createBotUsers = function (playerIds) {
|
|
@@ -62619,45 +62622,45 @@
|
|
|
62619
62622
|
}
|
|
62620
62623
|
var WARN;
|
|
62621
62624
|
function LoggerCallbacksWrapperLoggerOutput(loggerCallback) {
|
|
62622
|
-
this.
|
|
62625
|
+
this.i9w_1 = loggerCallback;
|
|
62623
62626
|
}
|
|
62624
62627
|
protoOf(LoggerCallbacksWrapperLoggerOutput).l51 = function (tag, message, payload) {
|
|
62625
|
-
this.
|
|
62628
|
+
this.i9w_1('debug', tag, message, null, payload);
|
|
62626
62629
|
};
|
|
62627
62630
|
protoOf(LoggerCallbacksWrapperLoggerOutput).m51 = function (tag, message, exception, payload) {
|
|
62628
|
-
this.
|
|
62631
|
+
this.i9w_1('error', tag, generateMsg(message, exception), exception, payload);
|
|
62629
62632
|
};
|
|
62630
62633
|
protoOf(LoggerCallbacksWrapperLoggerOutput).p51 = function (tag, message, payload) {
|
|
62631
|
-
this.
|
|
62634
|
+
this.i9w_1('debug', tag, message, null, payload);
|
|
62632
62635
|
};
|
|
62633
62636
|
protoOf(LoggerCallbacksWrapperLoggerOutput).o51 = function (tag, message, exception, payload) {
|
|
62634
|
-
this.
|
|
62637
|
+
this.i9w_1('debug', tag, generateMsg(message, exception), exception, payload);
|
|
62635
62638
|
};
|
|
62636
62639
|
protoOf(LoggerCallbacksWrapperLoggerOutput).n51 = function (tag, message, exception, payload) {
|
|
62637
|
-
this.
|
|
62640
|
+
this.i9w_1('warn', tag, generateMsg(message, exception), exception, payload);
|
|
62638
62641
|
};
|
|
62639
62642
|
function ParserHelper() {
|
|
62640
62643
|
}
|
|
62641
62644
|
function ParserHelperImpl(json, encoderDecoderProvider) {
|
|
62642
|
-
this.
|
|
62643
|
-
this.
|
|
62645
|
+
this.j9w_1 = json;
|
|
62646
|
+
this.k9w_1 = encoderDecoderProvider;
|
|
62644
62647
|
}
|
|
62645
62648
|
protoOf(ParserHelperImpl).encodeFromClientEvent = function (action) {
|
|
62646
|
-
return this.
|
|
62649
|
+
return this.k9w_1.k92(mapToDto_23(action));
|
|
62647
62650
|
};
|
|
62648
62651
|
protoOf(ParserHelperImpl).decodeFromClientEvent = function (fromPlayerId, json) {
|
|
62649
|
-
return mapFromDto_21(this.
|
|
62652
|
+
return mapFromDto_21(this.k9w_1.o92(json), fromPlayerId);
|
|
62650
62653
|
};
|
|
62651
62654
|
protoOf(ParserHelperImpl).encodeToClientEvent = function (action) {
|
|
62652
|
-
return this.
|
|
62655
|
+
return this.k9w_1.m92(mapToDto_100(action));
|
|
62653
62656
|
};
|
|
62654
62657
|
protoOf(ParserHelperImpl).decodeToClientEventToMechanicActions = function (playerId, engine, json) {
|
|
62655
62658
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
62656
|
-
var this_0 = mapFromClientDtoListWithPayload(this.
|
|
62659
|
+
var this_0 = mapFromClientDtoListWithPayload(this.k9w_1.p92(json), playerId, engine);
|
|
62657
62660
|
return copyToArray(this_0);
|
|
62658
62661
|
};
|
|
62659
62662
|
protoOf(ParserHelperImpl).encodeGameRound = function (round) {
|
|
62660
|
-
var tmp0 = this.
|
|
62663
|
+
var tmp0 = this.j9w_1;
|
|
62661
62664
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
62662
62665
|
var value = mapToDto_35(round);
|
|
62663
62666
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -62668,7 +62671,7 @@
|
|
|
62668
62671
|
return tmp0.ep(tmp$ret$1, value);
|
|
62669
62672
|
};
|
|
62670
62673
|
protoOf(ParserHelperImpl).encodeGameRoundItems = function (round) {
|
|
62671
|
-
var tmp0 = this.
|
|
62674
|
+
var tmp0 = this.j9w_1;
|
|
62672
62675
|
// Inline function 'kotlin.collections.map' call
|
|
62673
62676
|
var this_0 = round.items;
|
|
62674
62677
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -62690,7 +62693,7 @@
|
|
|
62690
62693
|
return tmp0.ep(tmp$ret$4, destination);
|
|
62691
62694
|
};
|
|
62692
62695
|
protoOf(ParserHelperImpl).encodeGameMetadata = function (metadata) {
|
|
62693
|
-
var tmp0 = this.
|
|
62696
|
+
var tmp0 = this.j9w_1;
|
|
62694
62697
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
62695
62698
|
var value = mapToDto_36(metadata);
|
|
62696
62699
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -62701,7 +62704,7 @@
|
|
|
62701
62704
|
return tmp0.ep(tmp$ret$1, value);
|
|
62702
62705
|
};
|
|
62703
62706
|
protoOf(ParserHelperImpl).encodeRoomConfig = function (config) {
|
|
62704
|
-
var tmp0 = this.
|
|
62707
|
+
var tmp0 = this.j9w_1;
|
|
62705
62708
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
62706
62709
|
var value = mapToDto_84(config);
|
|
62707
62710
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -62712,7 +62715,7 @@
|
|
|
62712
62715
|
return tmp0.ep(tmp$ret$1, value);
|
|
62713
62716
|
};
|
|
62714
62717
|
protoOf(ParserHelperImpl).encodeGameToRoomTransition = function (transition) {
|
|
62715
|
-
var tmp0 = this.
|
|
62718
|
+
var tmp0 = this.j9w_1;
|
|
62716
62719
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
62717
62720
|
var value = mapToDto_121(transition);
|
|
62718
62721
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -62724,7 +62727,7 @@
|
|
|
62724
62727
|
};
|
|
62725
62728
|
protoOf(ParserHelperImpl).decodeGameToRoomTransition = function (json) {
|
|
62726
62729
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
62727
|
-
var this_0 = this.
|
|
62730
|
+
var this_0 = this.j9w_1;
|
|
62728
62731
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
62729
62732
|
var this_1 = this_0.ds();
|
|
62730
62733
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -62735,7 +62738,7 @@
|
|
|
62735
62738
|
};
|
|
62736
62739
|
protoOf(ParserHelperImpl).decodeTableStateWithActions = function (json) {
|
|
62737
62740
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
62738
|
-
var this_0 = this.
|
|
62741
|
+
var this_0 = this.j9w_1;
|
|
62739
62742
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
62740
62743
|
var this_1 = this_0.ds();
|
|
62741
62744
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -62745,7 +62748,7 @@
|
|
|
62745
62748
|
return mapFromDto_124(tmp$ret$2);
|
|
62746
62749
|
};
|
|
62747
62750
|
protoOf(ParserHelperImpl).encodeTableStateWithActions = function (table) {
|
|
62748
|
-
var tmp0 = this.
|
|
62751
|
+
var tmp0 = this.j9w_1;
|
|
62749
62752
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
62750
62753
|
var value = mapToDto_153(table);
|
|
62751
62754
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -62756,11 +62759,11 @@
|
|
|
62756
62759
|
return tmp0.ep(tmp$ret$1, value);
|
|
62757
62760
|
};
|
|
62758
62761
|
protoOf(ParserHelperImpl).decodeTableLite = function (json) {
|
|
62759
|
-
return mapFromDto_89(this.
|
|
62762
|
+
return mapFromDto_89(this.k9w_1.n92(json));
|
|
62760
62763
|
};
|
|
62761
62764
|
protoOf(ParserHelperImpl).decodeFullGameHistoryToTableLite = function (json, round) {
|
|
62762
62765
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
62763
|
-
var this_0 = this.
|
|
62766
|
+
var this_0 = this.j9w_1;
|
|
62764
62767
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
62765
62768
|
var this_1 = this_0.ds();
|
|
62766
62769
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -62773,16 +62776,16 @@
|
|
|
62773
62776
|
function RatingHelper() {
|
|
62774
62777
|
}
|
|
62775
62778
|
function RatingHelperImpl(userRatingInteractor) {
|
|
62776
|
-
this.
|
|
62779
|
+
this.l9w_1 = userRatingInteractor;
|
|
62777
62780
|
}
|
|
62778
62781
|
protoOf(RatingHelperImpl).isValidRatingForLeague = function (league, rating) {
|
|
62779
|
-
return this.
|
|
62782
|
+
return this.l9w_1.s99(league, rating);
|
|
62780
62783
|
};
|
|
62781
62784
|
protoOf(RatingHelperImpl).mapRatingToLeague = function (rating) {
|
|
62782
|
-
return this.
|
|
62785
|
+
return this.l9w_1.u99(rating);
|
|
62783
62786
|
};
|
|
62784
62787
|
protoOf(RatingHelperImpl).getLeaguesConfig = function () {
|
|
62785
|
-
return this.
|
|
62788
|
+
return this.l9w_1.t99();
|
|
62786
62789
|
};
|
|
62787
62790
|
function engineHelpersModule() {
|
|
62788
62791
|
return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
|
|
@@ -62887,14 +62890,14 @@
|
|
|
62887
62890
|
return new GameResourcesImpl();
|
|
62888
62891
|
}
|
|
62889
62892
|
function _get_logger__rkp4sl_3($this) {
|
|
62890
|
-
var tmp0 = $this.
|
|
62893
|
+
var tmp0 = $this.n9w_1;
|
|
62891
62894
|
var tmp = KProperty1;
|
|
62892
62895
|
// Inline function 'kotlin.getValue' call
|
|
62893
62896
|
getPropertyCallableRef('logger', 1, tmp, EngineHelpersFactory$_get_logger_$ref_np7wt5(), null);
|
|
62894
62897
|
return tmp0.w();
|
|
62895
62898
|
}
|
|
62896
62899
|
function _get_di__ndbzja($this) {
|
|
62897
|
-
var tmp0 = $this.
|
|
62900
|
+
var tmp0 = $this.o9w_1;
|
|
62898
62901
|
var tmp = KProperty1;
|
|
62899
62902
|
// Inline function 'kotlin.getValue' call
|
|
62900
62903
|
getPropertyCallableRef('di', 1, tmp, EngineHelpersFactory$_get_di_$ref_w4qz4i(), null);
|
|
@@ -62903,11 +62906,11 @@
|
|
|
62903
62906
|
function EngineHelpersFactory$logger$delegate$lambda(this$0) {
|
|
62904
62907
|
return function () {
|
|
62905
62908
|
var tmp;
|
|
62906
|
-
if (this$0.
|
|
62909
|
+
if (this$0.m9w_1 == null) {
|
|
62907
62910
|
tmp = null;
|
|
62908
62911
|
} else {
|
|
62909
62912
|
// Inline function 'kotlin.let' call
|
|
62910
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
62913
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.m9w_1)]));
|
|
62911
62914
|
}
|
|
62912
62915
|
var tmp1_elvis_lhs = tmp;
|
|
62913
62916
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -62997,11 +63000,11 @@
|
|
|
62997
63000
|
}
|
|
62998
63001
|
function EngineHelpersFactory(loggerCallback) {
|
|
62999
63002
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
63000
|
-
this.
|
|
63003
|
+
this.m9w_1 = loggerCallback;
|
|
63001
63004
|
var tmp = this;
|
|
63002
|
-
tmp.
|
|
63005
|
+
tmp.n9w_1 = lazy(EngineHelpersFactory$logger$delegate$lambda(this));
|
|
63003
63006
|
var tmp_0 = this;
|
|
63004
|
-
tmp_0.
|
|
63007
|
+
tmp_0.o9w_1 = lazy(EngineHelpersFactory$di$delegate$lambda(this));
|
|
63005
63008
|
var tmp_1 = this;
|
|
63006
63009
|
// Inline function 'org.kodein.di.instance' call
|
|
63007
63010
|
var this_0 = _get_di__ndbzja(this);
|
|
@@ -63010,7 +63013,7 @@
|
|
|
63010
63013
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
63011
63014
|
var tmp_3 = Instance(this_0, tmp$ret$0, null);
|
|
63012
63015
|
var tmp_4 = KProperty1;
|
|
63013
|
-
tmp_1.
|
|
63016
|
+
tmp_1.p9w_1 = tmp_3.c1h(this, getPropertyCallableRef('ratingHelper', 1, tmp_4, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks(), null));
|
|
63014
63017
|
var tmp_5 = this;
|
|
63015
63018
|
// Inline function 'org.kodein.di.instance' call
|
|
63016
63019
|
var this_1 = _get_di__ndbzja(this);
|
|
@@ -63019,7 +63022,7 @@
|
|
|
63019
63022
|
var tmp$ret$2 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
63020
63023
|
var tmp_7 = Instance(this_1, tmp$ret$2, null);
|
|
63021
63024
|
var tmp_8 = KProperty1;
|
|
63022
|
-
tmp_5.
|
|
63025
|
+
tmp_5.q9w_1 = tmp_7.c1h(this, getPropertyCallableRef('parserHelper', 1, tmp_8, EngineHelpersFactory$_get_parserHelper_$ref_egvg46(), null));
|
|
63023
63026
|
var tmp_9 = this;
|
|
63024
63027
|
// Inline function 'org.kodein.di.instance' call
|
|
63025
63028
|
var this_2 = _get_di__ndbzja(this);
|
|
@@ -63028,7 +63031,7 @@
|
|
|
63028
63031
|
var tmp$ret$4 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
63029
63032
|
var tmp_11 = Instance(this_2, tmp$ret$4, null);
|
|
63030
63033
|
var tmp_12 = KProperty1;
|
|
63031
|
-
tmp_9.
|
|
63034
|
+
tmp_9.r9w_1 = tmp_11.c1h(this, getPropertyCallableRef('gameHelper', 1, tmp_12, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93(), null));
|
|
63032
63035
|
var tmp_13 = this;
|
|
63033
63036
|
// Inline function 'org.kodein.di.instance' call
|
|
63034
63037
|
var this_3 = _get_di__ndbzja(this);
|
|
@@ -63037,31 +63040,31 @@
|
|
|
63037
63040
|
var tmp$ret$6 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
63038
63041
|
var tmp_15 = Instance(this_3, tmp$ret$6, null);
|
|
63039
63042
|
var tmp_16 = KProperty1;
|
|
63040
|
-
tmp_13.
|
|
63043
|
+
tmp_13.s9w_1 = tmp_15.c1h(this, getPropertyCallableRef('gameResources', 1, tmp_16, EngineHelpersFactory$_get_gameResources_$ref_kynd2o(), null));
|
|
63041
63044
|
}
|
|
63042
|
-
protoOf(EngineHelpersFactory).
|
|
63043
|
-
var tmp0 = this.
|
|
63045
|
+
protoOf(EngineHelpersFactory).t9w = function () {
|
|
63046
|
+
var tmp0 = this.p9w_1;
|
|
63044
63047
|
var tmp = KProperty1;
|
|
63045
63048
|
// Inline function 'kotlin.getValue' call
|
|
63046
63049
|
getPropertyCallableRef('ratingHelper', 1, tmp, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks_0(), null);
|
|
63047
63050
|
return tmp0.w();
|
|
63048
63051
|
};
|
|
63049
|
-
protoOf(EngineHelpersFactory).
|
|
63050
|
-
var tmp0 = this.
|
|
63052
|
+
protoOf(EngineHelpersFactory).u9w = function () {
|
|
63053
|
+
var tmp0 = this.q9w_1;
|
|
63051
63054
|
var tmp = KProperty1;
|
|
63052
63055
|
// Inline function 'kotlin.getValue' call
|
|
63053
63056
|
getPropertyCallableRef('parserHelper', 1, tmp, EngineHelpersFactory$_get_parserHelper_$ref_egvg46_0(), null);
|
|
63054
63057
|
return tmp0.w();
|
|
63055
63058
|
};
|
|
63056
|
-
protoOf(EngineHelpersFactory).
|
|
63057
|
-
var tmp0 = this.
|
|
63059
|
+
protoOf(EngineHelpersFactory).v9w = function () {
|
|
63060
|
+
var tmp0 = this.r9w_1;
|
|
63058
63061
|
var tmp = KProperty1;
|
|
63059
63062
|
// Inline function 'kotlin.getValue' call
|
|
63060
63063
|
getPropertyCallableRef('gameHelper', 1, tmp, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93_0(), null);
|
|
63061
63064
|
return tmp0.w();
|
|
63062
63065
|
};
|
|
63063
|
-
protoOf(EngineHelpersFactory).
|
|
63064
|
-
var tmp0 = this.
|
|
63066
|
+
protoOf(EngineHelpersFactory).w9w = function () {
|
|
63067
|
+
var tmp0 = this.s9w_1;
|
|
63065
63068
|
var tmp = KProperty1;
|
|
63066
63069
|
// Inline function 'kotlin.getValue' call
|
|
63067
63070
|
getPropertyCallableRef('gameResources', 1, tmp, EngineHelpersFactory$_get_gameResources_$ref_kynd2o_0(), null);
|
|
@@ -63823,10 +63826,10 @@
|
|
|
63823
63826
|
protoOf(LoggerCallbacksWrapperLoggerOutput).i = i;
|
|
63824
63827
|
protoOf(LoggerCallbacksWrapperLoggerOutput).v = v;
|
|
63825
63828
|
protoOf(LoggerCallbacksWrapperLoggerOutput).w = w;
|
|
63826
|
-
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).
|
|
63827
|
-
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).
|
|
63828
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).
|
|
63829
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).
|
|
63829
|
+
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).t9w);
|
|
63830
|
+
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).u9w);
|
|
63831
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).v9w);
|
|
63832
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).w9w);
|
|
63830
63833
|
//endregion
|
|
63831
63834
|
//region block: init
|
|
63832
63835
|
Companion_instance_5 = new Companion_0();
|