raspberry_games_server_game_logic 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-core.js +1 -1
- package/Logic_Debertz-engine.js +84 -81
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.js +710 -710
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +2 -2
- package/package.json +1 -1
package/Logic_Debertz-core.js
CHANGED
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
|
|
387
387
|
//endregion
|
|
388
388
|
function GameEngineConfig() {
|
|
389
|
-
this.version = '1.8.
|
|
389
|
+
this.version = '1.8.385';
|
|
390
390
|
}
|
|
391
391
|
protoOf(GameEngineConfig).y3v = function () {
|
|
392
392
|
return this.version;
|
package/Logic_Debertz-engine.js
CHANGED
|
@@ -1273,21 +1273,21 @@
|
|
|
1273
1273
|
tmp = types;
|
|
1274
1274
|
}
|
|
1275
1275
|
types = tmp;
|
|
1276
|
-
return $super === VOID ? this.
|
|
1276
|
+
return $super === VOID ? this.e9d(loggerKey, types) : $super.e9d.call(this, loggerKey, types);
|
|
1277
1277
|
}
|
|
1278
1278
|
initMetadataForInterface(FileLoggerOutput, 'FileLoggerOutput', VOID, VOID, [LoggerOutput, LoggerEnabledTrigger]);
|
|
1279
1279
|
initMetadataForClass(FileLoggerOutputImpl, 'FileLoggerOutputImpl', VOID, VOID, [FileLoggerOutput]);
|
|
1280
1280
|
function filterLivePlayers(store, playerIds, includeBots, $super) {
|
|
1281
1281
|
includeBots = includeBots === VOID ? false : includeBots;
|
|
1282
|
-
return $super === VOID ? this.
|
|
1282
|
+
return $super === VOID ? this.f9d(store, playerIds, includeBots) : $super.f9d.call(this, store, playerIds, includeBots);
|
|
1283
1283
|
}
|
|
1284
1284
|
function filterLiveDuringGamePlayers(store, playerIds, includeBots, $super) {
|
|
1285
1285
|
includeBots = includeBots === VOID ? false : includeBots;
|
|
1286
|
-
return $super === VOID ? this.
|
|
1286
|
+
return $super === VOID ? this.g9d(store, playerIds, includeBots) : $super.g9d.call(this, store, playerIds, includeBots);
|
|
1287
1287
|
}
|
|
1288
1288
|
function createConfig(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league, $super) {
|
|
1289
1289
|
league = league === VOID ? null : league;
|
|
1290
|
-
return $super === VOID ? this.
|
|
1290
|
+
return $super === VOID ? this.h9d(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) : $super.h9d.call(this, mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league);
|
|
1291
1291
|
}
|
|
1292
1292
|
initMetadataForInterface(GameHelper, 'GameHelper');
|
|
1293
1293
|
initMetadataForClass(GameHelperImpl, 'GameHelperImpl', VOID, VOID, [GameHelper]);
|
|
@@ -1300,7 +1300,7 @@
|
|
|
1300
1300
|
tmp = existingNicknames;
|
|
1301
1301
|
}
|
|
1302
1302
|
existingNicknames = tmp;
|
|
1303
|
-
return $super === VOID ? this.
|
|
1303
|
+
return $super === VOID ? this.j9d(playerId, existingNicknames) : $super.j9d.call(this, playerId, existingNicknames);
|
|
1304
1304
|
}
|
|
1305
1305
|
initMetadataForInterface(GameResources, 'GameResources');
|
|
1306
1306
|
initMetadataForCompanion(Companion_166);
|
|
@@ -55366,8 +55366,9 @@
|
|
|
55366
55366
|
};
|
|
55367
55367
|
function Companion_165() {
|
|
55368
55368
|
this.a9d_1 = 1000;
|
|
55369
|
+
this.b9d_1 = 'FileLoggerOutput';
|
|
55369
55370
|
}
|
|
55370
|
-
protoOf(Companion_165).
|
|
55371
|
+
protoOf(Companion_165).c9d = function (payload) {
|
|
55371
55372
|
var tmp;
|
|
55372
55373
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
55373
55374
|
tmp = payload.id;
|
|
@@ -55389,13 +55390,13 @@
|
|
|
55389
55390
|
return Companion_instance_170;
|
|
55390
55391
|
}
|
|
55391
55392
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
55392
|
-
this.
|
|
55393
|
+
this.d9d_1 = function_0;
|
|
55393
55394
|
}
|
|
55394
55395
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).l28 = function (value, $completion) {
|
|
55395
|
-
return this.
|
|
55396
|
+
return this.d9d_1(value, $completion);
|
|
55396
55397
|
};
|
|
55397
55398
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).a3 = function () {
|
|
55398
|
-
return this.
|
|
55399
|
+
return this.d9d_1;
|
|
55399
55400
|
};
|
|
55400
55401
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
55401
55402
|
var tmp;
|
|
@@ -55445,7 +55446,7 @@
|
|
|
55445
55446
|
protoOf(FileLoggerOutputImpl).d1l = function () {
|
|
55446
55447
|
return this.r9c_1;
|
|
55447
55448
|
};
|
|
55448
|
-
protoOf(FileLoggerOutputImpl).
|
|
55449
|
+
protoOf(FileLoggerOutputImpl).e9d = function (loggerKey, types) {
|
|
55449
55450
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
55450
55451
|
this.s9c_1;
|
|
55451
55452
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
@@ -55467,6 +55468,7 @@
|
|
|
55467
55468
|
return new FileLoggerOutputImpl$observe$$inlined$filter$1(this_1, types);
|
|
55468
55469
|
};
|
|
55469
55470
|
protoOf(FileLoggerOutputImpl).c93 = function (loggerKey) {
|
|
55471
|
+
this.d('FileLoggerOutput', 'destroy logger ' + toString(loggerKey));
|
|
55470
55472
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
55471
55473
|
this.s9c_1;
|
|
55472
55474
|
var tmp0_safe_receiver = this.t9c_1.b2(loggerKey);
|
|
@@ -55494,6 +55496,7 @@
|
|
|
55494
55496
|
var updatedModel = tmp.z9c(VOID, controller, job);
|
|
55495
55497
|
// Inline function 'kotlin.collections.set' call
|
|
55496
55498
|
this.t9c_1.e2(loggerKey, updatedModel);
|
|
55499
|
+
this.d('FileLoggerOutput', 'create logger ' + toString(loggerKey));
|
|
55497
55500
|
};
|
|
55498
55501
|
protoOf(FileLoggerOutputImpl).h2 = function () {
|
|
55499
55502
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
@@ -56090,9 +56093,9 @@
|
|
|
56090
56093
|
}
|
|
56091
56094
|
}
|
|
56092
56095
|
function GameHelperImpl(logger) {
|
|
56093
|
-
this.
|
|
56096
|
+
this.i9d_1 = logger;
|
|
56094
56097
|
}
|
|
56095
|
-
protoOf(GameHelperImpl).
|
|
56098
|
+
protoOf(GameHelperImpl).f9d = function (store, playerIds, includeBots) {
|
|
56096
56099
|
var state = store.state;
|
|
56097
56100
|
var tmp;
|
|
56098
56101
|
if (!state.n6n()) {
|
|
@@ -56138,7 +56141,7 @@
|
|
|
56138
56141
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
56139
56142
|
return copyToArray(destination_1);
|
|
56140
56143
|
};
|
|
56141
|
-
protoOf(GameHelperImpl).
|
|
56144
|
+
protoOf(GameHelperImpl).g9d = function (store, playerIds, includeBots) {
|
|
56142
56145
|
var state = store.state;
|
|
56143
56146
|
var tmp;
|
|
56144
56147
|
if (!state.n6n()) {
|
|
@@ -56309,10 +56312,10 @@
|
|
|
56309
56312
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
56310
56313
|
return copyToArray(destination);
|
|
56311
56314
|
};
|
|
56312
|
-
protoOf(GameHelperImpl).
|
|
56315
|
+
protoOf(GameHelperImpl).h9d = function (mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) {
|
|
56313
56316
|
var roomMode = mapToRoomMode(mode);
|
|
56314
56317
|
var isEnableChoosePartnerScreen = (transition == null || transition.isEnableChoosePartnerScreen) && roomMode.isEnableChoosePartnerScreen;
|
|
56315
|
-
this.
|
|
56318
|
+
this.i9d_1.v(VOID, 'createConfig: ' + ('mode = ' + roomMode.toString() + ', ') + ('transition = ' + toString_0(transition) + ', ') + ('isPrivate = ' + isPrivate + ', ') + ('dealerStrategy = ' + dealerStrategy + ', ') + ('league = ' + league + ', ') + ('isEnableChoosePartnerScreen = ' + isEnableChoosePartnerScreen + ' '));
|
|
56316
56319
|
var options = Companion_instance_154.getServerOptions(isEnableChat, isBotsEnabled, isEnableChoosePartnerScreen);
|
|
56317
56320
|
var playersMode = this.mapPlayers(players);
|
|
56318
56321
|
var pointsMode = this.mapPoints(points);
|
|
@@ -56747,40 +56750,40 @@
|
|
|
56747
56750
|
function getRandomAvatarData_0($this) {
|
|
56748
56751
|
var avatarSetNumber = Default_getInstance().ng(get_entries_6().o());
|
|
56749
56752
|
var avatarSet = get_entries_6().p(avatarSetNumber);
|
|
56750
|
-
return new AvatarData(Default_getInstance().ng(avatarSet.
|
|
56753
|
+
return new AvatarData(Default_getInstance().ng(avatarSet.m9d()), avatarSet);
|
|
56751
56754
|
}
|
|
56752
56755
|
function getAvatarUrlByIndex($this, data) {
|
|
56753
56756
|
return mapToPattern($this, data);
|
|
56754
56757
|
}
|
|
56755
56758
|
function getNicknameByIndex($this, data) {
|
|
56756
|
-
return data.
|
|
56759
|
+
return data.o9d_1.p9d(data.n9d_1);
|
|
56757
56760
|
}
|
|
56758
56761
|
function mapToPattern($this, data) {
|
|
56759
|
-
return 'debertz://raspberry.games/' + data.
|
|
56762
|
+
return 'debertz://raspberry.games/' + data.o9d_1.p2_1 + '/' + data.n9d_1;
|
|
56760
56763
|
}
|
|
56761
56764
|
function Companion_166() {
|
|
56762
56765
|
Companion_instance_171 = this;
|
|
56763
|
-
this.
|
|
56766
|
+
this.q9d_1 = 'debertz://raspberry.games';
|
|
56764
56767
|
var tmp = this;
|
|
56765
56768
|
// Inline function 'kotlin.arrayOf' call
|
|
56766
56769
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
56767
56770
|
// Inline function 'kotlin.js.asDynamic' call
|
|
56768
|
-
tmp.
|
|
56771
|
+
tmp.r9d_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
|
|
56769
56772
|
var tmp_0 = this;
|
|
56770
56773
|
// Inline function 'kotlin.arrayOf' call
|
|
56771
56774
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
56772
56775
|
// Inline function 'kotlin.js.asDynamic' call
|
|
56773
|
-
tmp_0.
|
|
56776
|
+
tmp_0.s9d_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'];
|
|
56774
56777
|
var tmp_1 = this;
|
|
56775
56778
|
// Inline function 'kotlin.arrayOf' call
|
|
56776
56779
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
56777
56780
|
// Inline function 'kotlin.js.asDynamic' call
|
|
56778
|
-
tmp_1.
|
|
56781
|
+
tmp_1.t9d_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
|
|
56779
56782
|
var tmp_2 = this;
|
|
56780
56783
|
// Inline function 'kotlin.arrayOf' call
|
|
56781
56784
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
56782
56785
|
// Inline function 'kotlin.js.asDynamic' call
|
|
56783
|
-
tmp_2.
|
|
56786
|
+
tmp_2.u9d_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'];
|
|
56784
56787
|
}
|
|
56785
56788
|
var Companion_instance_171;
|
|
56786
56789
|
function Companion_getInstance_173() {
|
|
@@ -56791,14 +56794,14 @@
|
|
|
56791
56794
|
function AvatarSet(name, ordinal) {
|
|
56792
56795
|
Enum.call(this, name, ordinal);
|
|
56793
56796
|
}
|
|
56794
|
-
protoOf(AvatarSet).
|
|
56797
|
+
protoOf(AvatarSet).m9d = function () {
|
|
56795
56798
|
var tmp;
|
|
56796
56799
|
switch (this.p2_1) {
|
|
56797
56800
|
case 0:
|
|
56798
|
-
tmp = Companion_getInstance_173().
|
|
56801
|
+
tmp = Companion_getInstance_173().s9d_1.length;
|
|
56799
56802
|
break;
|
|
56800
56803
|
case 1:
|
|
56801
|
-
tmp = Companion_getInstance_173().
|
|
56804
|
+
tmp = Companion_getInstance_173().u9d_1.length;
|
|
56802
56805
|
break;
|
|
56803
56806
|
default:
|
|
56804
56807
|
noWhenBranchMatchedException();
|
|
@@ -56806,14 +56809,14 @@
|
|
|
56806
56809
|
}
|
|
56807
56810
|
return tmp;
|
|
56808
56811
|
};
|
|
56809
|
-
protoOf(AvatarSet).
|
|
56812
|
+
protoOf(AvatarSet).p9d = function (index) {
|
|
56810
56813
|
var tmp;
|
|
56811
56814
|
switch (this.p2_1) {
|
|
56812
56815
|
case 0:
|
|
56813
|
-
tmp = Companion_getInstance_173().
|
|
56816
|
+
tmp = Companion_getInstance_173().s9d_1[index];
|
|
56814
56817
|
break;
|
|
56815
56818
|
case 1:
|
|
56816
|
-
tmp = Companion_getInstance_173().
|
|
56819
|
+
tmp = Companion_getInstance_173().u9d_1[index];
|
|
56817
56820
|
break;
|
|
56818
56821
|
default:
|
|
56819
56822
|
noWhenBranchMatchedException();
|
|
@@ -56822,8 +56825,8 @@
|
|
|
56822
56825
|
return tmp;
|
|
56823
56826
|
};
|
|
56824
56827
|
function AvatarData(index, avatarSet) {
|
|
56825
|
-
this.
|
|
56826
|
-
this.
|
|
56828
|
+
this.n9d_1 = index;
|
|
56829
|
+
this.o9d_1 = avatarSet;
|
|
56827
56830
|
}
|
|
56828
56831
|
function AvatarSet_ORIGIN_getInstance() {
|
|
56829
56832
|
AvatarSet_initEntries();
|
|
@@ -56836,7 +56839,7 @@
|
|
|
56836
56839
|
function GameResourcesImpl() {
|
|
56837
56840
|
Companion_getInstance_173();
|
|
56838
56841
|
}
|
|
56839
|
-
protoOf(GameResourcesImpl).
|
|
56842
|
+
protoOf(GameResourcesImpl).j9d = function (playerId, existingNicknames) {
|
|
56840
56843
|
return createUser(this, playerId, existingNicknames);
|
|
56841
56844
|
};
|
|
56842
56845
|
protoOf(GameResourcesImpl).createBotUsers = function (playerIds) {
|
|
@@ -56877,45 +56880,45 @@
|
|
|
56877
56880
|
}
|
|
56878
56881
|
var WARN;
|
|
56879
56882
|
function LoggerCallbacksWrapperLoggerOutput(loggerCallback) {
|
|
56880
|
-
this.
|
|
56883
|
+
this.v9d_1 = loggerCallback;
|
|
56881
56884
|
}
|
|
56882
56885
|
protoOf(LoggerCallbacksWrapperLoggerOutput).x1k = function (tag, message, payload) {
|
|
56883
|
-
this.
|
|
56886
|
+
this.v9d_1('debug', tag, message, null, payload);
|
|
56884
56887
|
};
|
|
56885
56888
|
protoOf(LoggerCallbacksWrapperLoggerOutput).y1k = function (tag, message, exception, payload) {
|
|
56886
|
-
this.
|
|
56889
|
+
this.v9d_1('error', tag, generateMsg(message, exception), exception, payload);
|
|
56887
56890
|
};
|
|
56888
56891
|
protoOf(LoggerCallbacksWrapperLoggerOutput).b1l = function (tag, message, payload) {
|
|
56889
|
-
this.
|
|
56892
|
+
this.v9d_1('debug', tag, message, null, payload);
|
|
56890
56893
|
};
|
|
56891
56894
|
protoOf(LoggerCallbacksWrapperLoggerOutput).a1l = function (tag, message, exception, payload) {
|
|
56892
|
-
this.
|
|
56895
|
+
this.v9d_1('debug', tag, generateMsg(message, exception), exception, payload);
|
|
56893
56896
|
};
|
|
56894
56897
|
protoOf(LoggerCallbacksWrapperLoggerOutput).z1k = function (tag, message, exception, payload) {
|
|
56895
|
-
this.
|
|
56898
|
+
this.v9d_1('warn', tag, generateMsg(message, exception), exception, payload);
|
|
56896
56899
|
};
|
|
56897
56900
|
function ParserHelper() {
|
|
56898
56901
|
}
|
|
56899
56902
|
function ParserHelperImpl(json, encoderDecoderProvider) {
|
|
56900
|
-
this.
|
|
56901
|
-
this.
|
|
56903
|
+
this.w9d_1 = json;
|
|
56904
|
+
this.x9d_1 = encoderDecoderProvider;
|
|
56902
56905
|
}
|
|
56903
56906
|
protoOf(ParserHelperImpl).encodeFromClientEvent = function (action) {
|
|
56904
|
-
return this.
|
|
56907
|
+
return this.x9d_1.j8i(mapToDto_20(action));
|
|
56905
56908
|
};
|
|
56906
56909
|
protoOf(ParserHelperImpl).decodeFromClientEvent = function (fromPlayerId, json) {
|
|
56907
|
-
return mapFromDto_16(this.
|
|
56910
|
+
return mapFromDto_16(this.x9d_1.n8i(json), fromPlayerId);
|
|
56908
56911
|
};
|
|
56909
56912
|
protoOf(ParserHelperImpl).encodeToClientEvent = function (action) {
|
|
56910
|
-
return this.
|
|
56913
|
+
return this.x9d_1.l8i(mapToDto_74(action));
|
|
56911
56914
|
};
|
|
56912
56915
|
protoOf(ParserHelperImpl).decodeToClientEventToMechanicActions = function (playerId, engine, json) {
|
|
56913
56916
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
56914
|
-
var this_0 = mapFromClientDtoListWithPayload(this.
|
|
56917
|
+
var this_0 = mapFromClientDtoListWithPayload(this.x9d_1.o8i(json), playerId, engine);
|
|
56915
56918
|
return copyToArray(this_0);
|
|
56916
56919
|
};
|
|
56917
56920
|
protoOf(ParserHelperImpl).encodeGameRound = function (round) {
|
|
56918
|
-
var tmp0 = this.
|
|
56921
|
+
var tmp0 = this.w9d_1;
|
|
56919
56922
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
56920
56923
|
var value = mapToDto_31(round);
|
|
56921
56924
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -56926,7 +56929,7 @@
|
|
|
56926
56929
|
return tmp0.ep(tmp$ret$1, value);
|
|
56927
56930
|
};
|
|
56928
56931
|
protoOf(ParserHelperImpl).encodeGameRoundItems = function (round) {
|
|
56929
|
-
var tmp0 = this.
|
|
56932
|
+
var tmp0 = this.w9d_1;
|
|
56930
56933
|
// Inline function 'kotlin.collections.map' call
|
|
56931
56934
|
var this_0 = round.items;
|
|
56932
56935
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -56948,7 +56951,7 @@
|
|
|
56948
56951
|
return tmp0.ep(tmp$ret$4, destination);
|
|
56949
56952
|
};
|
|
56950
56953
|
protoOf(ParserHelperImpl).encodeGameMetadata = function (metadata) {
|
|
56951
|
-
var tmp0 = this.
|
|
56954
|
+
var tmp0 = this.w9d_1;
|
|
56952
56955
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
56953
56956
|
var value = mapToDto_33(metadata);
|
|
56954
56957
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -56959,7 +56962,7 @@
|
|
|
56959
56962
|
return tmp0.ep(tmp$ret$1, value);
|
|
56960
56963
|
};
|
|
56961
56964
|
protoOf(ParserHelperImpl).encodeRoomConfig = function (config) {
|
|
56962
|
-
var tmp0 = this.
|
|
56965
|
+
var tmp0 = this.w9d_1;
|
|
56963
56966
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
56964
56967
|
var value = mapToDto_59(config);
|
|
56965
56968
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -56970,7 +56973,7 @@
|
|
|
56970
56973
|
return tmp0.ep(tmp$ret$1, value);
|
|
56971
56974
|
};
|
|
56972
56975
|
protoOf(ParserHelperImpl).encodeGameToRoomTransition = function (transition) {
|
|
56973
|
-
var tmp0 = this.
|
|
56976
|
+
var tmp0 = this.w9d_1;
|
|
56974
56977
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
56975
56978
|
var value = mapToDto_95(transition);
|
|
56976
56979
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -56982,7 +56985,7 @@
|
|
|
56982
56985
|
};
|
|
56983
56986
|
protoOf(ParserHelperImpl).decodeGameToRoomTransition = function (json) {
|
|
56984
56987
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
56985
|
-
var this_0 = this.
|
|
56988
|
+
var this_0 = this.w9d_1;
|
|
56986
56989
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
56987
56990
|
var this_1 = this_0.ds();
|
|
56988
56991
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -56993,7 +56996,7 @@
|
|
|
56993
56996
|
};
|
|
56994
56997
|
protoOf(ParserHelperImpl).decodeTableStateWithActions = function (json) {
|
|
56995
56998
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
56996
|
-
var this_0 = this.
|
|
56999
|
+
var this_0 = this.w9d_1;
|
|
56997
57000
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
56998
57001
|
var this_1 = this_0.ds();
|
|
56999
57002
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -57003,7 +57006,7 @@
|
|
|
57003
57006
|
return mapFromDto_97(tmp$ret$2);
|
|
57004
57007
|
};
|
|
57005
57008
|
protoOf(ParserHelperImpl).encodeTableStateWithActions = function (table) {
|
|
57006
|
-
var tmp0 = this.
|
|
57009
|
+
var tmp0 = this.w9d_1;
|
|
57007
57010
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
57008
57011
|
var value = mapToDto_126(table);
|
|
57009
57012
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -57014,11 +57017,11 @@
|
|
|
57014
57017
|
return tmp0.ep(tmp$ret$1, value);
|
|
57015
57018
|
};
|
|
57016
57019
|
protoOf(ParserHelperImpl).decodeTableLite = function (json) {
|
|
57017
|
-
return mapFromDto_63(this.
|
|
57020
|
+
return mapFromDto_63(this.x9d_1.m8i(json));
|
|
57018
57021
|
};
|
|
57019
57022
|
protoOf(ParserHelperImpl).decodeFullGameHistoryToTableLite = function (json, round) {
|
|
57020
57023
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
57021
|
-
var this_0 = this.
|
|
57024
|
+
var this_0 = this.w9d_1;
|
|
57022
57025
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
57023
57026
|
var this_1 = this_0.ds();
|
|
57024
57027
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -57031,16 +57034,16 @@
|
|
|
57031
57034
|
function RatingHelper() {
|
|
57032
57035
|
}
|
|
57033
57036
|
function RatingHelperImpl(userRatingInteractor) {
|
|
57034
|
-
this.
|
|
57037
|
+
this.y9d_1 = userRatingInteractor;
|
|
57035
57038
|
}
|
|
57036
57039
|
protoOf(RatingHelperImpl).isValidRatingForLeague = function (league, rating) {
|
|
57037
|
-
return this.
|
|
57040
|
+
return this.y9d_1.j8p(league, rating);
|
|
57038
57041
|
};
|
|
57039
57042
|
protoOf(RatingHelperImpl).mapRatingToLeague = function (rating) {
|
|
57040
|
-
return this.
|
|
57043
|
+
return this.y9d_1.l8p(rating);
|
|
57041
57044
|
};
|
|
57042
57045
|
protoOf(RatingHelperImpl).getLeaguesConfig = function () {
|
|
57043
|
-
return this.
|
|
57046
|
+
return this.y9d_1.k8p();
|
|
57044
57047
|
};
|
|
57045
57048
|
function engineHelpersModule() {
|
|
57046
57049
|
return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
|
|
@@ -57145,14 +57148,14 @@
|
|
|
57145
57148
|
return new GameResourcesImpl();
|
|
57146
57149
|
}
|
|
57147
57150
|
function _get_logger__rkp4sl_3($this) {
|
|
57148
|
-
var tmp0 = $this.
|
|
57151
|
+
var tmp0 = $this.a9e_1;
|
|
57149
57152
|
var tmp = KProperty1;
|
|
57150
57153
|
// Inline function 'kotlin.getValue' call
|
|
57151
57154
|
getPropertyCallableRef('logger', 1, tmp, EngineHelpersFactory$_get_logger_$ref_np7wt5(), null);
|
|
57152
57155
|
return tmp0.w();
|
|
57153
57156
|
}
|
|
57154
57157
|
function _get_di__ndbzja($this) {
|
|
57155
|
-
var tmp0 = $this.
|
|
57158
|
+
var tmp0 = $this.b9e_1;
|
|
57156
57159
|
var tmp = KProperty1;
|
|
57157
57160
|
// Inline function 'kotlin.getValue' call
|
|
57158
57161
|
getPropertyCallableRef('di', 1, tmp, EngineHelpersFactory$_get_di_$ref_w4qz4i(), null);
|
|
@@ -57161,11 +57164,11 @@
|
|
|
57161
57164
|
function EngineHelpersFactory$logger$delegate$lambda(this$0) {
|
|
57162
57165
|
return function () {
|
|
57163
57166
|
var tmp;
|
|
57164
|
-
if (this$0.
|
|
57167
|
+
if (this$0.z9d_1 == null) {
|
|
57165
57168
|
tmp = null;
|
|
57166
57169
|
} else {
|
|
57167
57170
|
// Inline function 'kotlin.let' call
|
|
57168
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
57171
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.z9d_1)]));
|
|
57169
57172
|
}
|
|
57170
57173
|
var tmp1_elvis_lhs = tmp;
|
|
57171
57174
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -57255,11 +57258,11 @@
|
|
|
57255
57258
|
}
|
|
57256
57259
|
function EngineHelpersFactory(loggerCallback) {
|
|
57257
57260
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
57258
|
-
this.
|
|
57261
|
+
this.z9d_1 = loggerCallback;
|
|
57259
57262
|
var tmp = this;
|
|
57260
|
-
tmp.
|
|
57263
|
+
tmp.a9e_1 = lazy(EngineHelpersFactory$logger$delegate$lambda(this));
|
|
57261
57264
|
var tmp_0 = this;
|
|
57262
|
-
tmp_0.
|
|
57265
|
+
tmp_0.b9e_1 = lazy(EngineHelpersFactory$di$delegate$lambda(this));
|
|
57263
57266
|
var tmp_1 = this;
|
|
57264
57267
|
// Inline function 'org.kodein.di.instance' call
|
|
57265
57268
|
var this_0 = _get_di__ndbzja(this);
|
|
@@ -57268,7 +57271,7 @@
|
|
|
57268
57271
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
57269
57272
|
var tmp_3 = Instance(this_0, tmp$ret$0, null);
|
|
57270
57273
|
var tmp_4 = KProperty1;
|
|
57271
|
-
tmp_1.
|
|
57274
|
+
tmp_1.c9e_1 = tmp_3.u64(this, getPropertyCallableRef('ratingHelper', 1, tmp_4, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks(), null));
|
|
57272
57275
|
var tmp_5 = this;
|
|
57273
57276
|
// Inline function 'org.kodein.di.instance' call
|
|
57274
57277
|
var this_1 = _get_di__ndbzja(this);
|
|
@@ -57277,7 +57280,7 @@
|
|
|
57277
57280
|
var tmp$ret$2 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
57278
57281
|
var tmp_7 = Instance(this_1, tmp$ret$2, null);
|
|
57279
57282
|
var tmp_8 = KProperty1;
|
|
57280
|
-
tmp_5.
|
|
57283
|
+
tmp_5.d9e_1 = tmp_7.u64(this, getPropertyCallableRef('parserHelper', 1, tmp_8, EngineHelpersFactory$_get_parserHelper_$ref_egvg46(), null));
|
|
57281
57284
|
var tmp_9 = this;
|
|
57282
57285
|
// Inline function 'org.kodein.di.instance' call
|
|
57283
57286
|
var this_2 = _get_di__ndbzja(this);
|
|
@@ -57286,7 +57289,7 @@
|
|
|
57286
57289
|
var tmp$ret$4 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
57287
57290
|
var tmp_11 = Instance(this_2, tmp$ret$4, null);
|
|
57288
57291
|
var tmp_12 = KProperty1;
|
|
57289
|
-
tmp_9.
|
|
57292
|
+
tmp_9.e9e_1 = tmp_11.u64(this, getPropertyCallableRef('gameHelper', 1, tmp_12, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93(), null));
|
|
57290
57293
|
var tmp_13 = this;
|
|
57291
57294
|
// Inline function 'org.kodein.di.instance' call
|
|
57292
57295
|
var this_3 = _get_di__ndbzja(this);
|
|
@@ -57295,31 +57298,31 @@
|
|
|
57295
57298
|
var tmp$ret$6 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
57296
57299
|
var tmp_15 = Instance(this_3, tmp$ret$6, null);
|
|
57297
57300
|
var tmp_16 = KProperty1;
|
|
57298
|
-
tmp_13.
|
|
57301
|
+
tmp_13.f9e_1 = tmp_15.u64(this, getPropertyCallableRef('gameResources', 1, tmp_16, EngineHelpersFactory$_get_gameResources_$ref_kynd2o(), null));
|
|
57299
57302
|
}
|
|
57300
|
-
protoOf(EngineHelpersFactory).
|
|
57301
|
-
var tmp0 = this.
|
|
57303
|
+
protoOf(EngineHelpersFactory).g9e = function () {
|
|
57304
|
+
var tmp0 = this.c9e_1;
|
|
57302
57305
|
var tmp = KProperty1;
|
|
57303
57306
|
// Inline function 'kotlin.getValue' call
|
|
57304
57307
|
getPropertyCallableRef('ratingHelper', 1, tmp, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks_0(), null);
|
|
57305
57308
|
return tmp0.w();
|
|
57306
57309
|
};
|
|
57307
|
-
protoOf(EngineHelpersFactory).
|
|
57308
|
-
var tmp0 = this.
|
|
57310
|
+
protoOf(EngineHelpersFactory).h9e = function () {
|
|
57311
|
+
var tmp0 = this.d9e_1;
|
|
57309
57312
|
var tmp = KProperty1;
|
|
57310
57313
|
// Inline function 'kotlin.getValue' call
|
|
57311
57314
|
getPropertyCallableRef('parserHelper', 1, tmp, EngineHelpersFactory$_get_parserHelper_$ref_egvg46_0(), null);
|
|
57312
57315
|
return tmp0.w();
|
|
57313
57316
|
};
|
|
57314
|
-
protoOf(EngineHelpersFactory).
|
|
57315
|
-
var tmp0 = this.
|
|
57317
|
+
protoOf(EngineHelpersFactory).i9e = function () {
|
|
57318
|
+
var tmp0 = this.e9e_1;
|
|
57316
57319
|
var tmp = KProperty1;
|
|
57317
57320
|
// Inline function 'kotlin.getValue' call
|
|
57318
57321
|
getPropertyCallableRef('gameHelper', 1, tmp, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93_0(), null);
|
|
57319
57322
|
return tmp0.w();
|
|
57320
57323
|
};
|
|
57321
|
-
protoOf(EngineHelpersFactory).
|
|
57322
|
-
var tmp0 = this.
|
|
57324
|
+
protoOf(EngineHelpersFactory).j9e = function () {
|
|
57325
|
+
var tmp0 = this.f9e_1;
|
|
57323
57326
|
var tmp = KProperty1;
|
|
57324
57327
|
// Inline function 'kotlin.getValue' call
|
|
57325
57328
|
getPropertyCallableRef('gameResources', 1, tmp, EngineHelpersFactory$_get_gameResources_$ref_kynd2o_0(), null);
|
|
@@ -58033,10 +58036,10 @@
|
|
|
58033
58036
|
protoOf(LoggerCallbacksWrapperLoggerOutput).i = i;
|
|
58034
58037
|
protoOf(LoggerCallbacksWrapperLoggerOutput).v = v;
|
|
58035
58038
|
protoOf(LoggerCallbacksWrapperLoggerOutput).w = w;
|
|
58036
|
-
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).
|
|
58037
|
-
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).
|
|
58038
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).
|
|
58039
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).
|
|
58039
|
+
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).g9e);
|
|
58040
|
+
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).h9e);
|
|
58041
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).i9e);
|
|
58042
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).j9e);
|
|
58040
58043
|
//endregion
|
|
58041
58044
|
//region block: init
|
|
58042
58045
|
Companion_instance_5 = new Companion_0();
|