game_client_logic_deb 1.8.72 → 1.8.76
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/Kosi-Kaverit-kaverit.js +75 -75
- package/Kosi-Kodein-kodein-di.js +618 -618
- package/Kotlin-DateTime-library-kotlinx-datetime.js +143 -143
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-core.js +1733 -2678
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +12477 -12181
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +131 -48
- package/Logic_Debertz-game_client.js +4439 -4435
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +2060 -1973
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/{88b0986a7186d029-atomicfu-js-ir.js → kotlinx-atomicfu.js} +29 -29
- package/kotlinx-atomicfu.js.map +1 -0
- package/{kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js → kotlinx-coroutines-core.js} +2719 -2682
- package/kotlinx-coroutines-core.js.map +1 -0
- package/kotlinx-io-kotlinx-io-core.js +292 -292
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +1885 -1885
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1405 -1405
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +1184 -0
- package/raspberry-cardgame-lib-core.js.map +1 -0
- package/uuid.js +32 -32
- package/88b0986a7186d029-atomicfu-js-ir.js.map +0 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +0 -1
|
@@ -1,4 +1,47 @@
|
|
|
1
1
|
type Nullable<T> = T | null | undefined
|
|
2
|
+
export declare namespace io.raspberryapps.cardgame.core {
|
|
3
|
+
const CoreConfig: {
|
|
4
|
+
get version(): string;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export declare namespace io.raspberryapps.card_game.core.utils.logger {
|
|
8
|
+
interface LoggerEnabledTrigger extends io.raspberryapps.card_game.core.utils.logger.RaspberryLogger {
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
d(tag: Nullable<string>, message: string, payload: Nullable<any>): void;
|
|
11
|
+
e(tag: Nullable<string>, message: Nullable<string>, exception: Nullable<Error>, payload: Nullable<any>): void;
|
|
12
|
+
w(tag: Nullable<string>, message: string, payload: Nullable<any>): void;
|
|
13
|
+
readonly __doNotUseOrImplementIt: {
|
|
14
|
+
readonly "io.raspberryapps.card_game.core.utils.logger.LoggerEnabledTrigger": unique symbol;
|
|
15
|
+
} & io.raspberryapps.card_game.core.utils.logger.RaspberryLogger["__doNotUseOrImplementIt"];
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export declare namespace io.raspberryapps.card_game.core.utils.logger {
|
|
19
|
+
interface LoggerPayload {
|
|
20
|
+
readonly __doNotUseOrImplementIt: {
|
|
21
|
+
readonly "io.raspberryapps.card_game.core.utils.logger.LoggerPayload": unique symbol;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export declare namespace io.raspberryapps.card_game.core.utils.logger {
|
|
26
|
+
interface RaspberryLogger extends io.raspberryapps.card_game.core.utils.logger.output.LoggerOutput {
|
|
27
|
+
d(tag: Nullable<string>, message: string, payload: Nullable<any>): void;
|
|
28
|
+
e(tag: Nullable<string>, message: Nullable<string>, exception: Nullable<Error>, payload: Nullable<any>): void;
|
|
29
|
+
w(tag: Nullable<string>, message: string, payload: Nullable<any>): void;
|
|
30
|
+
readonly __doNotUseOrImplementIt: {
|
|
31
|
+
readonly "io.raspberryapps.card_game.core.utils.logger.RaspberryLogger": unique symbol;
|
|
32
|
+
} & io.raspberryapps.card_game.core.utils.logger.output.LoggerOutput["__doNotUseOrImplementIt"];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export declare namespace io.raspberryapps.card_game.core.utils.logger.output {
|
|
36
|
+
interface LoggerOutput {
|
|
37
|
+
d(tag: Nullable<string> | undefined, message: string, payload?: Nullable<any>): void;
|
|
38
|
+
e(tag?: Nullable<string>, message?: Nullable<string>, exception?: Nullable<Error>, payload?: Nullable<any>): void;
|
|
39
|
+
w(tag: Nullable<string> | undefined, message: string, payload?: Nullable<any>): void;
|
|
40
|
+
readonly __doNotUseOrImplementIt: {
|
|
41
|
+
readonly "io.raspberryapps.card_game.core.utils.logger.output.LoggerOutput": unique symbol;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
2
45
|
export declare namespace com.logic {
|
|
3
46
|
const GameEngineConfig: {
|
|
4
47
|
get version(): string;
|
|
@@ -350,23 +393,6 @@ export declare namespace com.logic.redux.store.definitions {
|
|
|
350
393
|
};
|
|
351
394
|
}
|
|
352
395
|
}
|
|
353
|
-
export declare namespace com.logic.utils.logger.game {
|
|
354
|
-
interface GameLogger extends com.logic.utils.logger.outputs.LoggerOutput {
|
|
355
|
-
d(tag: Nullable<string>, message: string, payload: Nullable<any>): void;
|
|
356
|
-
e(tag: Nullable<string>, message: Nullable<string>, exception: Nullable<Error>, payload: Nullable<any>): void;
|
|
357
|
-
w(tag: Nullable<string>, message: string, payload: Nullable<any>): void;
|
|
358
|
-
readonly __doNotUseOrImplementIt: {
|
|
359
|
-
readonly "com.logic.utils.logger.game.GameLogger": unique symbol;
|
|
360
|
-
} & com.logic.utils.logger.outputs.LoggerOutput["__doNotUseOrImplementIt"];
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
export declare namespace com.logic.utils.logger.game {
|
|
364
|
-
interface LoggerPayload {
|
|
365
|
-
readonly __doNotUseOrImplementIt: {
|
|
366
|
-
readonly "com.logic.utils.logger.game.LoggerPayload": unique symbol;
|
|
367
|
-
};
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
396
|
export declare namespace com.logic.utils.logger.outputs {
|
|
371
397
|
abstract class LogType {
|
|
372
398
|
private constructor();
|
|
@@ -391,28 +417,7 @@ export declare namespace com.logic.utils.logger.outputs {
|
|
|
391
417
|
}
|
|
392
418
|
}
|
|
393
419
|
export declare namespace com.logic.utils.logger.outputs {
|
|
394
|
-
interface
|
|
395
|
-
enabled: boolean;
|
|
396
|
-
d(tag: Nullable<string>, message: string, payload: Nullable<any>): void;
|
|
397
|
-
e(tag: Nullable<string>, message: Nullable<string>, exception: Nullable<Error>, payload: Nullable<any>): void;
|
|
398
|
-
w(tag: Nullable<string>, message: string, payload: Nullable<any>): void;
|
|
399
|
-
readonly __doNotUseOrImplementIt: {
|
|
400
|
-
readonly "com.logic.utils.logger.outputs.LoggerEnabledTrigger": unique symbol;
|
|
401
|
-
} & com.logic.utils.logger.game.GameLogger["__doNotUseOrImplementIt"];
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
export declare namespace com.logic.utils.logger.outputs {
|
|
405
|
-
interface LoggerOutput {
|
|
406
|
-
d(tag: Nullable<string> | undefined, message: string, payload?: Nullable<any>): void;
|
|
407
|
-
e(tag?: Nullable<string>, message?: Nullable<string>, exception?: Nullable<Error>, payload?: Nullable<any>): void;
|
|
408
|
-
w(tag: Nullable<string> | undefined, message: string, payload?: Nullable<any>): void;
|
|
409
|
-
readonly __doNotUseOrImplementIt: {
|
|
410
|
-
readonly "com.logic.utils.logger.outputs.LoggerOutput": unique symbol;
|
|
411
|
-
};
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
export declare namespace com.logic.utils.logger.outputs {
|
|
415
|
-
interface ObservableLoggerOutput extends com.logic.utils.logger.outputs.LoggerOutput, com.logic.utils.logger.outputs.LoggerEnabledTrigger {
|
|
420
|
+
interface ObservableLoggerOutput extends io.raspberryapps.card_game.core.utils.logger.output.LoggerOutput, io.raspberryapps.card_game.core.utils.logger.LoggerEnabledTrigger {
|
|
416
421
|
observe(types?: Array<com.logic.utils.logger.outputs.LogType>): any/* kotlinx.coroutines.flow.Flow<com.logic.utils.logger.outputs.LoggerOutputDataDto> */;
|
|
417
422
|
d(tag: Nullable<string>, message: string, payload: Nullable<any>): void;
|
|
418
423
|
e(tag: Nullable<string>, message: Nullable<string>, exception: Nullable<Error>, payload: Nullable<any>): void;
|
|
@@ -420,7 +425,7 @@ export declare namespace com.logic.utils.logger.outputs {
|
|
|
420
425
|
enabled: boolean;
|
|
421
426
|
readonly __doNotUseOrImplementIt: {
|
|
422
427
|
readonly "com.logic.utils.logger.outputs.ObservableLoggerOutput": unique symbol;
|
|
423
|
-
} &
|
|
428
|
+
} & io.raspberryapps.card_game.core.utils.logger.output.LoggerOutput["__doNotUseOrImplementIt"] & io.raspberryapps.card_game.core.utils.logger.LoggerEnabledTrigger["__doNotUseOrImplementIt"];
|
|
424
429
|
}
|
|
425
430
|
class LoggerOutputDataDto {
|
|
426
431
|
constructor(type: com.logic.utils.logger.outputs.LogType, tag: Nullable<string>, message: Nullable<string>, stackTrace: Nullable<string>);
|
|
@@ -578,7 +583,7 @@ export declare namespace com.debertz.logic.data.models.table {
|
|
|
578
583
|
get users(): Array<com.logic.data.models.player.GameUserInfo>;
|
|
579
584
|
get isCardDeckExist(): boolean;
|
|
580
585
|
get requireCardDeck(): any/* com.debertz.logic.data.models.table.cards.CardDeck */;
|
|
581
|
-
get currentTrump(): Nullable<any>/* Nullable<
|
|
586
|
+
get currentTrump(): Nullable<any>/* Nullable<io.raspberryapps.card_game.core.data.models.cards.Suit> */;
|
|
582
587
|
get isGameFinished(): boolean;
|
|
583
588
|
toString(): string;
|
|
584
589
|
copy(id?: string, version?: string, createdAt?: any/* kotlinx.datetime.Instant */, config?: com.debertz.logic.data.models.table.config.Config, players?: any/* kotlin.collections.List<com.debertz.logic.data.models.player.DebertzPlayer> */, sceneInfo?: any/* com.debertz.logic.data.models.table.scene.SceneInfo */, cardsOnTable?: any/* kotlin.collections.List<com.debertz.logic.data.models.table.bribes.CardOnTable> */, bribes?: any/* kotlin.collections.List<com.debertz.logic.data.models.table.cards.Bribe> */, cardDeck?: Nullable<any>/* Nullable<com.debertz.logic.data.models.table.cards.CardDeck> */, gameInfo?: any/* com.debertz.logic.data.models.table.GameInfo */, gameHistory?: com.debertz.logic.data.models.table.history.GameHistory): com.debertz.logic.data.models.table.DebertzTable;
|
|
@@ -590,7 +595,7 @@ export declare namespace com.debertz.logic.data.models.table {
|
|
|
590
595
|
}
|
|
591
596
|
}
|
|
592
597
|
export declare namespace com.debertz.logic.data.models.table {
|
|
593
|
-
class TableLoggerPayload implements
|
|
598
|
+
class TableLoggerPayload implements io.raspberryapps.card_game.core.utils.logger.LoggerPayload {
|
|
594
599
|
constructor(id: string, gameId: string, players: Array<com.debertz.logic.data.models.table.PlayerLoggerPayload>);
|
|
595
600
|
get id(): string;
|
|
596
601
|
get gameId(): string;
|
|
@@ -599,9 +604,9 @@ export declare namespace com.debertz.logic.data.models.table {
|
|
|
599
604
|
hashCode(): number;
|
|
600
605
|
toString(): string;
|
|
601
606
|
copy(id?: string, gameId?: string, players?: Array<com.debertz.logic.data.models.table.PlayerLoggerPayload>): com.debertz.logic.data.models.table.TableLoggerPayload;
|
|
602
|
-
readonly __doNotUseOrImplementIt:
|
|
607
|
+
readonly __doNotUseOrImplementIt: io.raspberryapps.card_game.core.utils.logger.LoggerPayload["__doNotUseOrImplementIt"];
|
|
603
608
|
}
|
|
604
|
-
class PlayerLoggerPayload implements
|
|
609
|
+
class PlayerLoggerPayload implements io.raspberryapps.card_game.core.utils.logger.LoggerPayload {
|
|
605
610
|
constructor(playerId: string, connectionState: Nullable<com.logic.data.models.player.PlayerConnectionState>);
|
|
606
611
|
get playerId(): string;
|
|
607
612
|
get connectionState(): Nullable<com.logic.data.models.player.PlayerConnectionState>;
|
|
@@ -609,7 +614,84 @@ export declare namespace com.debertz.logic.data.models.table {
|
|
|
609
614
|
copy(playerId?: string, connectionState?: Nullable<com.logic.data.models.player.PlayerConnectionState>): com.debertz.logic.data.models.table.PlayerLoggerPayload;
|
|
610
615
|
hashCode(): number;
|
|
611
616
|
equals(other: Nullable<any>): boolean;
|
|
612
|
-
readonly __doNotUseOrImplementIt:
|
|
617
|
+
readonly __doNotUseOrImplementIt: io.raspberryapps.card_game.core.utils.logger.LoggerPayload["__doNotUseOrImplementIt"];
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
export declare namespace com.debertz.logic.data.models.table.combinations {
|
|
621
|
+
class Combination /* implements com.debertz.logic.data.models.table.combinations.CombinationContract */ {
|
|
622
|
+
constructor(id: string, type: com.debertz.logic.data.models.table.combinations.CombinationType, cards: Nullable<any>/* Nullable<kotlin.collections.List<io.raspberryapps.card_game.core.data.models.cards.GameCard>> */);
|
|
623
|
+
copy(id?: string, type?: com.debertz.logic.data.models.table.combinations.CombinationType, cards?: Nullable<any>/* Nullable<kotlin.collections.List<io.raspberryapps.card_game.core.data.models.cards.GameCard>> */): com.debertz.logic.data.models.table.combinations.Combination;
|
|
624
|
+
toString(): string;
|
|
625
|
+
hashCode(): number;
|
|
626
|
+
equals(other: Nullable<any>): boolean;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
export declare namespace com.debertz.logic.data.models.table.combinations {
|
|
630
|
+
abstract class CombinationType {
|
|
631
|
+
private constructor();
|
|
632
|
+
static get BELA(): com.debertz.logic.data.models.table.combinations.CombinationType & {
|
|
633
|
+
get name(): "BELA";
|
|
634
|
+
get ordinal(): 0;
|
|
635
|
+
};
|
|
636
|
+
static get THREE_IN_ROW(): com.debertz.logic.data.models.table.combinations.CombinationType & {
|
|
637
|
+
get name(): "THREE_IN_ROW";
|
|
638
|
+
get ordinal(): 1;
|
|
639
|
+
};
|
|
640
|
+
static get FOUR_IN_ROW(): com.debertz.logic.data.models.table.combinations.CombinationType & {
|
|
641
|
+
get name(): "FOUR_IN_ROW";
|
|
642
|
+
get ordinal(): 2;
|
|
643
|
+
};
|
|
644
|
+
static get SEVEN_IN_ROW(): com.debertz.logic.data.models.table.combinations.CombinationType & {
|
|
645
|
+
get name(): "SEVEN_IN_ROW";
|
|
646
|
+
get ordinal(): 3;
|
|
647
|
+
};
|
|
648
|
+
static get SEVEN_TRUMP(): com.debertz.logic.data.models.table.combinations.CombinationType & {
|
|
649
|
+
get name(): "SEVEN_TRUMP";
|
|
650
|
+
get ordinal(): 4;
|
|
651
|
+
};
|
|
652
|
+
static get FOUR_SEVENS(): com.debertz.logic.data.models.table.combinations.CombinationType & {
|
|
653
|
+
get name(): "FOUR_SEVENS";
|
|
654
|
+
get ordinal(): 5;
|
|
655
|
+
};
|
|
656
|
+
static get FINE_NO_BRIBES(): com.debertz.logic.data.models.table.combinations.CombinationType & {
|
|
657
|
+
get name(): "FINE_NO_BRIBES";
|
|
658
|
+
get ordinal(): 6;
|
|
659
|
+
};
|
|
660
|
+
static get FINE_THIRD_FAILED_CONTRACT(): com.debertz.logic.data.models.table.combinations.CombinationType & {
|
|
661
|
+
get name(): "FINE_THIRD_FAILED_CONTRACT";
|
|
662
|
+
get ordinal(): 7;
|
|
663
|
+
};
|
|
664
|
+
static get BONUS_LAST_BRIBE(): com.debertz.logic.data.models.table.combinations.CombinationType & {
|
|
665
|
+
get name(): "BONUS_LAST_BRIBE";
|
|
666
|
+
get ordinal(): 8;
|
|
667
|
+
};
|
|
668
|
+
static get BONUS_FAILED_CONTRACT(): com.debertz.logic.data.models.table.combinations.CombinationType & {
|
|
669
|
+
get name(): "BONUS_FAILED_CONTRACT";
|
|
670
|
+
get ordinal(): 9;
|
|
671
|
+
};
|
|
672
|
+
static get BONUS_CONTROVERSIAL_CONTRACT(): com.debertz.logic.data.models.table.combinations.CombinationType & {
|
|
673
|
+
get name(): "BONUS_CONTROVERSIAL_CONTRACT";
|
|
674
|
+
get ordinal(): 10;
|
|
675
|
+
};
|
|
676
|
+
static values(): Array<com.debertz.logic.data.models.table.combinations.CombinationType>;
|
|
677
|
+
static valueOf(value: string): com.debertz.logic.data.models.table.combinations.CombinationType;
|
|
678
|
+
get name(): "BELA" | "THREE_IN_ROW" | "FOUR_IN_ROW" | "SEVEN_IN_ROW" | "SEVEN_TRUMP" | "FOUR_SEVENS" | "FINE_NO_BRIBES" | "FINE_THIRD_FAILED_CONTRACT" | "BONUS_LAST_BRIBE" | "BONUS_FAILED_CONTRACT" | "BONUS_CONTROVERSIAL_CONTRACT";
|
|
679
|
+
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
680
|
+
static get Companion(): {
|
|
681
|
+
getSupportedInRowCardsCombinations(): any/* kotlin.collections.Set<number> */;
|
|
682
|
+
} & any/* kotlinx.serialization.internal.SerializerFactory */;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
export declare namespace com.debertz.logic.data.models.table.combinations {
|
|
686
|
+
class PlayerCombinations implements com.logic.data.models.player.PlayerIdContract {
|
|
687
|
+
constructor(playerId: string, combinations: Array<com.debertz.logic.data.models.table.combinations.Combination>);
|
|
688
|
+
get playerId(): string;
|
|
689
|
+
get combinations(): Array<com.debertz.logic.data.models.table.combinations.Combination>;
|
|
690
|
+
equals(other: Nullable<any>): boolean;
|
|
691
|
+
hashCode(): number;
|
|
692
|
+
copy(playerId?: string, combinations?: Array<com.debertz.logic.data.models.table.combinations.Combination>): com.debertz.logic.data.models.table.combinations.PlayerCombinations;
|
|
693
|
+
toString(): string;
|
|
694
|
+
readonly __doNotUseOrImplementIt: com.logic.data.models.player.PlayerIdContract["__doNotUseOrImplementIt"];
|
|
613
695
|
}
|
|
614
696
|
}
|
|
615
697
|
export declare namespace com.debertz.logic.data.models.table.config {
|
|
@@ -919,6 +1001,7 @@ export declare namespace com.debertz.logic.redux.actions.game {
|
|
|
919
1001
|
get gameWinners(): Nullable<Array<string>>;
|
|
920
1002
|
get luckyFactors(): Nullable<Array<com.logic.data.models.player.PlayerLuckyFactor>>;
|
|
921
1003
|
get gameHistory(): com.debertz.logic.data.models.table.history.GameHistory;
|
|
1004
|
+
get roundContractStateName(): string;
|
|
922
1005
|
get isGameFinished(): boolean;
|
|
923
1006
|
toString(): string;
|
|
924
1007
|
equals(other: Nullable<any>): boolean;
|
|
@@ -1241,7 +1324,7 @@ export declare namespace com.debertz.logic.client.redux.state {
|
|
|
1241
1324
|
}
|
|
1242
1325
|
}
|
|
1243
1326
|
export declare namespace com.debertz.logic.client.utils {
|
|
1244
|
-
interface ShowErrorLoggerOutput extends
|
|
1327
|
+
interface ShowErrorLoggerOutput extends io.raspberryapps.card_game.core.utils.logger.output.LoggerOutput {
|
|
1245
1328
|
skipWarnings: boolean;
|
|
1246
1329
|
gameClientProvider: Nullable<() => any/* com.debertz.logic.client.GameClient */>;
|
|
1247
1330
|
d(tag: Nullable<string>, message: string, payload: Nullable<any>): void;
|
|
@@ -1249,7 +1332,7 @@ export declare namespace com.debertz.logic.client.utils {
|
|
|
1249
1332
|
w(tag: Nullable<string>, message: string, payload: Nullable<any>): void;
|
|
1250
1333
|
readonly __doNotUseOrImplementIt: {
|
|
1251
1334
|
readonly "com.debertz.logic.client.utils.ShowErrorLoggerOutput": unique symbol;
|
|
1252
|
-
} &
|
|
1335
|
+
} & io.raspberryapps.card_game.core.utils.logger.output.LoggerOutput["__doNotUseOrImplementIt"];
|
|
1253
1336
|
}
|
|
1254
1337
|
}
|
|
1255
1338
|
export declare interface GameClientEngineController {
|
|
@@ -1262,4 +1345,4 @@ export declare interface GameClientEngineController {
|
|
|
1262
1345
|
};
|
|
1263
1346
|
}
|
|
1264
1347
|
export declare function createGameClientController(loggerCallback: (p0: string, p1: Nullable<string>, p2: string, p3: Nullable<Error>, p4: Nullable<any>) => void): GameClientEngineController;
|
|
1265
|
-
export as namespace
|
|
1348
|
+
export as namespace io_raspberryapps_game_engine_game_client;
|