client_plugin_logic_deb 1.8.246 → 1.8.247
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.
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
return tmp;
|
|
378
378
|
}
|
|
379
379
|
initMetadataForInterface(AbstractWithOffsetBuilder, 'AbstractWithOffsetBuilder', VOID, VOID, [WithUtcOffset]);
|
|
380
|
-
initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder,
|
|
380
|
+
initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithUtcOffset, WithDate, WithTime]);
|
|
381
381
|
initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
|
|
382
382
|
initMetadataForClass(DateTimeComponentsFormat, 'DateTimeComponentsFormat', VOID, AbstractDateTimeFormat);
|
|
383
383
|
initMetadataForClass(TwoDigitNumber, 'TwoDigitNumber');
|
|
@@ -1805,7 +1805,7 @@ export declare interface ParserHelper {
|
|
|
1805
1805
|
encodeGameMetadata(metadata: games.jass.logic.data.models.table.history.GameHistoryMetadata): string;
|
|
1806
1806
|
encodeRoomConfig(config: models.RoomConfig): string;
|
|
1807
1807
|
decodeTableLite(json: string): games.jass.logic.data.models.table.JassTableLite;
|
|
1808
|
-
decodeFullGameHistoryToTableLite(json: string): games.jass.logic.data.models.table.JassTableLite;
|
|
1808
|
+
decodeFullGameHistoryToTableLite(json: string, round: Nullable<number>): games.jass.logic.data.models.table.JassTableLite;
|
|
1809
1809
|
readonly __doNotUseOrImplementIt: {
|
|
1810
1810
|
readonly ParserHelper: unique symbol;
|
|
1811
1811
|
};
|
package/Logic_Debertz-core.js
CHANGED
|
@@ -416,7 +416,7 @@
|
|
|
416
416
|
initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
|
|
417
417
|
//endregion
|
|
418
418
|
function GameEngineConfig() {
|
|
419
|
-
this.version = '1.8.
|
|
419
|
+
this.version = '1.8.247';
|
|
420
420
|
}
|
|
421
421
|
protoOf(GameEngineConfig).i33 = function () {
|
|
422
422
|
return this.version;
|
package/Logic_Debertz-engine.js
CHANGED
|
@@ -200,6 +200,7 @@
|
|
|
200
200
|
var mapFromDto_1 = kotlin_io_raspberryapps_game_engine_core.$_$.a1;
|
|
201
201
|
var ExpectantAction = kotlin_io_raspberryapps_game_engine_core.$_$.v2;
|
|
202
202
|
var Companion_getInstance_3 = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.c;
|
|
203
|
+
var getOrNull = kotlin_kotlin.$_$.z7;
|
|
203
204
|
var first_0 = kotlin_kotlin.$_$.w7;
|
|
204
205
|
var contains = kotlin_kotlin.$_$.t6;
|
|
205
206
|
var _Duration___get_inWholeMilliseconds__impl__msfiry = kotlin_kotlin.$_$.p2;
|
|
@@ -264,7 +265,6 @@
|
|
|
264
265
|
var DealerReducer = kotlin_io_raspberryapps_cardgame_core.$_$.d1;
|
|
265
266
|
var CombinationsCheckerProvider = kotlin_io_raspberryapps_cardgame_core.$_$.b1;
|
|
266
267
|
var CombinationsCheckerProviderImpl = kotlin_io_raspberryapps_cardgame_core.$_$.a1;
|
|
267
|
-
var getOrNull = kotlin_kotlin.$_$.z7;
|
|
268
268
|
var toList_0 = kotlin_kotlin.$_$.s9;
|
|
269
269
|
var plus_0 = kotlin_kotlin.$_$.a9;
|
|
270
270
|
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.y;
|
|
@@ -2459,7 +2459,7 @@
|
|
|
2459
2459
|
tmp = 0;
|
|
2460
2460
|
break;
|
|
2461
2461
|
case 1:
|
|
2462
|
-
tmp =
|
|
2462
|
+
tmp = 1100;
|
|
2463
2463
|
break;
|
|
2464
2464
|
case 2:
|
|
2465
2465
|
tmp = 1500;
|
|
@@ -2524,7 +2524,7 @@
|
|
|
2524
2524
|
var tmp$ret$0 = new LeagueInfo(element.getMinRating(), element.isEnabled());
|
|
2525
2525
|
result.j2(element, tmp$ret$0);
|
|
2526
2526
|
}
|
|
2527
|
-
return new LeaguesConfig(
|
|
2527
|
+
return new LeaguesConfig(1000, result);
|
|
2528
2528
|
};
|
|
2529
2529
|
var Companion_instance_10;
|
|
2530
2530
|
function Companion_getInstance_12() {
|
|
@@ -4299,10 +4299,10 @@
|
|
|
4299
4299
|
var tmp = _this__u8e3s4.payload;
|
|
4300
4300
|
return tmp instanceof UserProfilePayload ? tmp : null;
|
|
4301
4301
|
}
|
|
4302
|
-
function getUserProfilePayloadOrDefault(_this__u8e3s4) {
|
|
4302
|
+
function getUserProfilePayloadOrDefault(_this__u8e3s4, leaguesConfig) {
|
|
4303
4303
|
var tmp = _this__u8e3s4.payload;
|
|
4304
4304
|
var tmp0_elvis_lhs = tmp instanceof UserProfilePayload ? tmp : null;
|
|
4305
|
-
return tmp0_elvis_lhs == null ? new UserProfilePayload(VOID,
|
|
4305
|
+
return tmp0_elvis_lhs == null ? new UserProfilePayload(VOID, leaguesConfig.initialRating, 0) : tmp0_elvis_lhs;
|
|
4306
4306
|
}
|
|
4307
4307
|
function Achievements(oldRating, newRating) {
|
|
4308
4308
|
this.oldRating = oldRating;
|
|
@@ -18616,8 +18616,8 @@
|
|
|
18616
18616
|
}
|
|
18617
18617
|
return new FullGameHistory(tmp9_gameId, tmp3_config, destination, tmp2_winners, tmp7_live, tmp8_metadata, tmp1_createdAt, tmp5_expiredAt, tmp6_isFinished, destination_0);
|
|
18618
18618
|
}
|
|
18619
|
-
function mapToTableLite(_this__u8e3s4) {
|
|
18620
|
-
var lastRound = lastOrNull(_this__u8e3s4.w81_1);
|
|
18619
|
+
function mapToTableLite(_this__u8e3s4, round) {
|
|
18620
|
+
var lastRound = round == null ? lastOrNull(_this__u8e3s4.w81_1) : getOrNull(_this__u8e3s4.w81_1, round);
|
|
18621
18621
|
// Inline function 'kotlin.collections.map' call
|
|
18622
18622
|
var this_0 = _this__u8e3s4.p81_1;
|
|
18623
18623
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -45702,12 +45702,13 @@
|
|
|
45702
45702
|
}
|
|
45703
45703
|
return sortedWith(results, new PlayerRatingOutputOrderComparator(destination));
|
|
45704
45704
|
};
|
|
45705
|
-
function mapToRatingInput(_this__u8e3s4, isWinner, isBot, finalGamePoints) {
|
|
45705
|
+
function mapToRatingInput(_this__u8e3s4, isWinner, isBot, finalGamePoints, leaguesConfig) {
|
|
45706
45706
|
isBot = isBot === VOID ? false : isBot;
|
|
45707
|
-
|
|
45707
|
+
leaguesConfig = leaguesConfig === VOID ? Companion_instance_10.defaultConfig() : leaguesConfig;
|
|
45708
|
+
var userStatsPayload = getUserProfilePayloadOrDefault(_this__u8e3s4.s73_1, leaguesConfig);
|
|
45708
45709
|
var tmp1_playerId = _this__u8e3s4.playerId;
|
|
45709
45710
|
var tmp0_elvis_lhs = userStatsPayload.rating;
|
|
45710
|
-
var tmp2_rating = tmp0_elvis_lhs == null ?
|
|
45711
|
+
var tmp2_rating = tmp0_elvis_lhs == null ? leaguesConfig.initialRating : tmp0_elvis_lhs;
|
|
45711
45712
|
var tmp3_playedGamesCount = userStatsPayload.playedGamesCount;
|
|
45712
45713
|
return new PlayerRatingInput(tmp1_playerId, tmp2_rating, finalGamePoints, isWinner, isBot, tmp3_playedGamesCount);
|
|
45713
45714
|
}
|
|
@@ -57994,7 +57995,7 @@
|
|
|
57994
57995
|
protoOf(ParserHelperImpl).decodeTableLite = function (json) {
|
|
57995
57996
|
return mapFromDto_84(this.z9o_1.x8x(json));
|
|
57996
57997
|
};
|
|
57997
|
-
protoOf(ParserHelperImpl).decodeFullGameHistoryToTableLite = function (json) {
|
|
57998
|
+
protoOf(ParserHelperImpl).decodeFullGameHistoryToTableLite = function (json, round) {
|
|
57998
57999
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
57999
58000
|
var this_0 = this.y9o_1;
|
|
58000
58001
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -58004,7 +58005,7 @@
|
|
|
58004
58005
|
var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
|
|
58005
58006
|
var tmp$ret$2 = this_0.q49(tmp$ret$1, json);
|
|
58006
58007
|
var fullGameHistory = mapFromDto_30(tmp$ret$2);
|
|
58007
|
-
return mapToTableLite(fullGameHistory);
|
|
58008
|
+
return mapToTableLite(fullGameHistory, round);
|
|
58008
58009
|
};
|
|
58009
58010
|
function RatingHelper() {
|
|
58010
58011
|
}
|