game_client_logic_deb 1.8.147 → 1.8.185
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 +80 -80
- package/Kosi-Kodein-kodein-di.js +651 -651
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +5674 -321
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-core.js +2007 -1712
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +19790 -15503
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +383 -93
- package/Logic_Debertz-game_client.js +5036 -4822
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4016 -2922
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +35 -35
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +3755 -2723
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +302 -302
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2161 -2132
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1529 -1515
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +713 -0
- package/ktor-ktor-client-content-negotiation.js.map +1 -0
- package/ktor-ktor-client-core.js +7207 -0
- package/ktor-ktor-client-core.js.map +1 -0
- package/ktor-ktor-client-js.js +15 -0
- package/ktor-ktor-client-js.js.map +1 -0
- package/ktor-ktor-client-logging.js +1506 -0
- package/ktor-ktor-client-logging.js.map +1 -0
- package/ktor-ktor-events.js +97 -0
- package/ktor-ktor-events.js.map +1 -0
- package/ktor-ktor-http.js +3263 -0
- package/ktor-ktor-http.js.map +1 -0
- package/ktor-ktor-io.js +6469 -0
- package/ktor-ktor-io.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.js +67 -0
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx.js +847 -0
- package/ktor-ktor-serialization-kotlinx.js.map +1 -0
- package/ktor-ktor-serialization.js +369 -0
- package/ktor-ktor-serialization.js.map +1 -0
- package/ktor-ktor-utils.js +2659 -0
- package/ktor-ktor-utils.js.map +1 -0
- package/ktor-ktor-websocket-serialization.js +15 -0
- package/ktor-ktor-websocket-serialization.js.map +1 -0
- package/ktor-ktor-websockets.js +466 -0
- package/ktor-ktor-websockets.js.map +1 -0
- package/package.json +5 -2
- package/raspberry-cardgame-lib-core.js +742 -560
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +408 -0
- package/raspberry-cardgame-lib-logger.js.map +1 -0
- package/raspberry-cardgame-lib-random.js +2756 -0
- package/raspberry-cardgame-lib-random.js.map +1 -0
- package/secure-random-secure-random.js +163 -5
- package/secure-random-secure-random.js.map +1 -1
- package/uuid.js +36 -36
- package/uuid.js.map +1 -1
|
@@ -6,6 +6,12 @@ export declare namespace kotlin.collections {
|
|
|
6
6
|
readonly "kotlin.collections.KtList": unique symbol;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
+
interface KtSet<E> /* extends kotlin.collections.Collection<E> */ {
|
|
10
|
+
asJsReadonlySetView(): ReadonlySet<E>;
|
|
11
|
+
readonly __doNotUseOrImplementIt: {
|
|
12
|
+
readonly "kotlin.collections.KtSet": unique symbol;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
9
15
|
interface KtMap<K, V> {
|
|
10
16
|
asJsReadonlyMapView(): ReadonlyMap<K, V>;
|
|
11
17
|
readonly __doNotUseOrImplementIt: {
|
|
@@ -13,34 +19,29 @@ export declare namespace kotlin.collections {
|
|
|
13
19
|
};
|
|
14
20
|
}
|
|
15
21
|
}
|
|
16
|
-
export declare namespace
|
|
17
|
-
|
|
18
|
-
get version(): string;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export declare namespace io.raspberryapps.card_game.core.utils.logger {
|
|
22
|
-
interface LoggerEnabledTrigger extends io.raspberryapps.card_game.core.utils.logger.RaspberryLogger {
|
|
22
|
+
export declare namespace games.raspberry.logger {
|
|
23
|
+
interface LoggerEnabledTrigger extends games.raspberry.logger.RaspberryLogger {
|
|
23
24
|
enabled: boolean;
|
|
24
25
|
readonly __doNotUseOrImplementIt: {
|
|
25
|
-
readonly "
|
|
26
|
-
} &
|
|
26
|
+
readonly "games.raspberry.logger.LoggerEnabledTrigger": unique symbol;
|
|
27
|
+
} & games.raspberry.logger.RaspberryLogger["__doNotUseOrImplementIt"];
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
|
-
export declare namespace
|
|
30
|
+
export declare namespace games.raspberry.logger {
|
|
30
31
|
interface LoggerPayload {
|
|
31
32
|
readonly __doNotUseOrImplementIt: {
|
|
32
|
-
readonly "
|
|
33
|
+
readonly "games.raspberry.logger.LoggerPayload": unique symbol;
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
|
-
export declare namespace
|
|
37
|
-
interface RaspberryLogger extends
|
|
37
|
+
export declare namespace games.raspberry.logger {
|
|
38
|
+
interface RaspberryLogger extends games.raspberry.logger.output.LoggerOutput {
|
|
38
39
|
readonly __doNotUseOrImplementIt: {
|
|
39
|
-
readonly "
|
|
40
|
-
} &
|
|
40
|
+
readonly "games.raspberry.logger.RaspberryLogger": unique symbol;
|
|
41
|
+
} & games.raspberry.logger.output.LoggerOutput["__doNotUseOrImplementIt"];
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
|
-
export declare namespace
|
|
44
|
+
export declare namespace games.raspberry.logger.output {
|
|
44
45
|
interface LoggerOutput {
|
|
45
46
|
d(tag: Nullable<string> | undefined, message: string, payload?: Nullable<any>): void;
|
|
46
47
|
e(tag?: Nullable<string>, message?: Nullable<string>, exception?: Nullable<Error>, payload?: Nullable<any>): void;
|
|
@@ -48,9 +49,93 @@ export declare namespace io.raspberryapps.card_game.core.utils.logger.output {
|
|
|
48
49
|
v(tag?: Nullable<string>, message?: Nullable<string>, exception?: Nullable<Error>, payload?: Nullable<any>): void;
|
|
49
50
|
i(tag: Nullable<string> | undefined, message: string, payload?: Nullable<any>): void;
|
|
50
51
|
readonly __doNotUseOrImplementIt: {
|
|
51
|
-
readonly "
|
|
52
|
+
readonly "games.raspberry.logger.output.LoggerOutput": unique symbol;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export declare namespace games.raspberry.card_game.random.data.models {
|
|
57
|
+
class CardDecksRequestUserData {
|
|
58
|
+
constructor(id: string, count: number);
|
|
59
|
+
get id(): string;
|
|
60
|
+
get count(): number;
|
|
61
|
+
copy(id?: string, count?: number): games.raspberry.card_game.random.data.models.CardDecksRequestUserData;
|
|
62
|
+
toString(): string;
|
|
63
|
+
hashCode(): number;
|
|
64
|
+
equals(other: Nullable<any>): boolean;
|
|
65
|
+
}
|
|
66
|
+
class CardDeckRequestUserData {
|
|
67
|
+
constructor(players: kotlin.collections.KtList<games.raspberry.card_game.random.data.models.UserInfoData>, gameId: string);
|
|
68
|
+
get players(): kotlin.collections.KtList<games.raspberry.card_game.random.data.models.UserInfoData>;
|
|
69
|
+
get gameId(): string;
|
|
70
|
+
copy(players?: kotlin.collections.KtList<games.raspberry.card_game.random.data.models.UserInfoData>, gameId?: string): games.raspberry.card_game.random.data.models.CardDeckRequestUserData;
|
|
71
|
+
toString(): string;
|
|
72
|
+
hashCode(): number;
|
|
73
|
+
equals(other: Nullable<any>): boolean;
|
|
74
|
+
}
|
|
75
|
+
class UserInfoData {
|
|
76
|
+
constructor(id: string, name: string);
|
|
77
|
+
get id(): string;
|
|
78
|
+
get name(): string;
|
|
79
|
+
copy(id?: string, name?: string): games.raspberry.card_game.random.data.models.UserInfoData;
|
|
80
|
+
toString(): string;
|
|
81
|
+
hashCode(): number;
|
|
82
|
+
equals(other: Nullable<any>): boolean;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
export declare namespace games.raspberry.card_game.random.data.models {
|
|
86
|
+
class GameCardDecksRecord {
|
|
87
|
+
constructor(id: string, signature: Nullable<string>, userData: games.raspberry.card_game.random.data.models.CardDeckRequestUserData, rounds?: kotlin.collections.KtList<games.raspberry.card_game.random.data.models.GameCardDeckData>);
|
|
88
|
+
get id(): string;
|
|
89
|
+
get signature(): Nullable<string>;
|
|
90
|
+
get userData(): games.raspberry.card_game.random.data.models.CardDeckRequestUserData;
|
|
91
|
+
get rounds(): kotlin.collections.KtList<games.raspberry.card_game.random.data.models.GameCardDeckData>;
|
|
92
|
+
copy(id?: string, signature?: Nullable<string>, userData?: games.raspberry.card_game.random.data.models.CardDeckRequestUserData, rounds?: kotlin.collections.KtList<games.raspberry.card_game.random.data.models.GameCardDeckData>): games.raspberry.card_game.random.data.models.GameCardDecksRecord;
|
|
93
|
+
toString(): string;
|
|
94
|
+
hashCode(): number;
|
|
95
|
+
equals(other: Nullable<any>): boolean;
|
|
96
|
+
static get Companion(): {
|
|
97
|
+
firstRound(id: string, signature: Nullable<string>, newCardDeckData: games.raspberry.card_game.random.data.models.GameCardDeckData, userData: games.raspberry.card_game.random.data.models.CardDeckRequestUserData): games.raspberry.card_game.random.data.models.GameCardDecksRecord;
|
|
98
|
+
newRound(gameCardDecksRecord: games.raspberry.card_game.random.data.models.GameCardDecksRecord, newCardDeckData: games.raspberry.card_game.random.data.models.GameCardDeckData): games.raspberry.card_game.random.data.models.GameCardDecksRecord;
|
|
52
99
|
};
|
|
53
100
|
}
|
|
101
|
+
class GameCardDeckData {
|
|
102
|
+
constructor(cardDeckIndex: number, cards: kotlin.collections.KtList<number>);
|
|
103
|
+
get cardDeckIndex(): number;
|
|
104
|
+
get cards(): kotlin.collections.KtList<number>;
|
|
105
|
+
copy(cardDeckIndex?: number, cards?: kotlin.collections.KtList<number>): games.raspberry.card_game.random.data.models.GameCardDeckData;
|
|
106
|
+
toString(): string;
|
|
107
|
+
hashCode(): number;
|
|
108
|
+
equals(other: Nullable<any>): boolean;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
export declare namespace games.raspberry.card_game.random.data.models {
|
|
112
|
+
class HttpConfig {
|
|
113
|
+
constructor(baseUrl: string, timeoutMillis?: number);
|
|
114
|
+
get baseUrl(): string;
|
|
115
|
+
get timeoutMillis(): number;
|
|
116
|
+
copy(baseUrl?: string, timeoutMillis?: number): games.raspberry.card_game.random.data.models.HttpConfig;
|
|
117
|
+
toString(): string;
|
|
118
|
+
hashCode(): number;
|
|
119
|
+
equals(other: Nullable<any>): boolean;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
export declare namespace games.raspberry.card_game.random.data.models {
|
|
123
|
+
class RandomOrgConfig {
|
|
124
|
+
constructor(apiKey?: string, poolSize?: number, thresholdForUsedPool?: number, httpConfig?: games.raspberry.card_game.random.data.models.HttpConfig);
|
|
125
|
+
get apiKey(): string;
|
|
126
|
+
get poolSize(): number;
|
|
127
|
+
get thresholdForUsedPool(): number;
|
|
128
|
+
get httpConfig(): games.raspberry.card_game.random.data.models.HttpConfig;
|
|
129
|
+
copy(apiKey?: string, poolSize?: number, thresholdForUsedPool?: number, httpConfig?: games.raspberry.card_game.random.data.models.HttpConfig): games.raspberry.card_game.random.data.models.RandomOrgConfig;
|
|
130
|
+
toString(): string;
|
|
131
|
+
hashCode(): number;
|
|
132
|
+
equals(other: Nullable<any>): boolean;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
export declare namespace io.raspberryapps.cardgame.core {
|
|
136
|
+
const CoreConfig: {
|
|
137
|
+
get version(): string;
|
|
138
|
+
};
|
|
54
139
|
}
|
|
55
140
|
export declare namespace com.logic {
|
|
56
141
|
const GameEngineConfig: {
|
|
@@ -359,20 +444,22 @@ export declare namespace com.logic.utils.logger.outputs {
|
|
|
359
444
|
}
|
|
360
445
|
}
|
|
361
446
|
export declare namespace com.logic.utils.logger.outputs {
|
|
362
|
-
interface ObservableLoggerOutput extends
|
|
447
|
+
interface ObservableLoggerOutput extends games.raspberry.logger.output.LoggerOutput, games.raspberry.logger.LoggerEnabledTrigger {
|
|
448
|
+
payloadToKeyMapper: (p0: Nullable<any>) => Nullable<string>;
|
|
363
449
|
observe(types?: Array<com.logic.utils.logger.outputs.LogType>): any/* kotlinx.coroutines.flow.Flow<com.logic.utils.logger.outputs.LoggerOutputDataDto> */;
|
|
364
450
|
readonly __doNotUseOrImplementIt: {
|
|
365
451
|
readonly "com.logic.utils.logger.outputs.ObservableLoggerOutput": unique symbol;
|
|
366
|
-
} &
|
|
452
|
+
} & games.raspberry.logger.output.LoggerOutput["__doNotUseOrImplementIt"] & games.raspberry.logger.LoggerEnabledTrigger["__doNotUseOrImplementIt"];
|
|
367
453
|
}
|
|
368
454
|
class LoggerOutputDataDto {
|
|
369
|
-
constructor(type: com.logic.utils.logger.outputs.LogType, tag: Nullable<string>, message: Nullable<string>, stackTrace: Nullable<string>);
|
|
455
|
+
constructor(type: com.logic.utils.logger.outputs.LogType, key: Nullable<string>, tag: Nullable<string>, message: Nullable<string>, stackTrace: Nullable<string>);
|
|
370
456
|
get type(): com.logic.utils.logger.outputs.LogType;
|
|
457
|
+
get key(): Nullable<string>;
|
|
371
458
|
get tag(): Nullable<string>;
|
|
372
459
|
get message(): Nullable<string>;
|
|
373
460
|
get stackTrace(): Nullable<string>;
|
|
374
461
|
toMessageLog(): string;
|
|
375
|
-
copy(type?: com.logic.utils.logger.outputs.LogType, tag?: Nullable<string>, message?: Nullable<string>, stackTrace?: Nullable<string>): com.logic.utils.logger.outputs.LoggerOutputDataDto;
|
|
462
|
+
copy(type?: com.logic.utils.logger.outputs.LogType, key?: Nullable<string>, tag?: Nullable<string>, message?: Nullable<string>, stackTrace?: Nullable<string>): com.logic.utils.logger.outputs.LoggerOutputDataDto;
|
|
376
463
|
toString(): string;
|
|
377
464
|
hashCode(): number;
|
|
378
465
|
equals(other: Nullable<any>): boolean;
|
|
@@ -402,7 +489,7 @@ export declare namespace games.jass.logic.data.models {
|
|
|
402
489
|
copy(dealerStrategy?: games.jass.logic.domain.interactors.dealer.DealerStrategy, isBotsAreHappy?: boolean, cards?: Nullable<Array<number>>): games.jass.logic.data.models.DealerConfig;
|
|
403
490
|
toString(): string;
|
|
404
491
|
static get Companion(): {
|
|
405
|
-
getFromServerConfig(dealerStrategy?: string,
|
|
492
|
+
getFromServerConfig(dealerStrategy?: string, cardsJson?: Nullable<string>): games.jass.logic.data.models.DealerConfig;
|
|
406
493
|
fake(cards?: Array<number>): games.jass.logic.data.models.DealerConfig;
|
|
407
494
|
};
|
|
408
495
|
}
|
|
@@ -422,13 +509,14 @@ export declare namespace games.jass.logic.data.models {
|
|
|
422
509
|
}
|
|
423
510
|
export declare namespace games.jass.logic.data.models {
|
|
424
511
|
class EngineLogicConfig {
|
|
425
|
-
constructor(supportBackwardActions?: boolean, validateTestMode?: boolean, verboseGameHistory?: boolean, validateFromClientActionTags?: boolean, playerTimeoutFactorToFinishStep?: number);
|
|
512
|
+
constructor(supportBackwardActions?: boolean, validateTestMode?: boolean, verboseGameHistory?: boolean, gameHistoryAnalytics?: boolean, validateFromClientActionTags?: boolean, playerTimeoutFactorToFinishStep?: number);
|
|
426
513
|
get supportBackwardActions(): boolean;
|
|
427
514
|
get validateTestMode(): boolean;
|
|
428
515
|
get verboseGameHistory(): boolean;
|
|
516
|
+
get gameHistoryMetadata(): boolean;
|
|
429
517
|
get validateFromClientActionTags(): boolean;
|
|
430
518
|
get playerTimeoutFactorToFinishStep(): number;
|
|
431
|
-
copy(supportBackwardActions?: boolean, validateTestMode?: boolean, verboseGameHistory?: boolean, validateFromClientActionTags?: boolean, playerTimeoutFactorToFinishStep?: number): games.jass.logic.data.models.EngineLogicConfig;
|
|
519
|
+
copy(supportBackwardActions?: boolean, validateTestMode?: boolean, verboseGameHistory?: boolean, gameHistoryAnalytics?: boolean, validateFromClientActionTags?: boolean, playerTimeoutFactorToFinishStep?: number): games.jass.logic.data.models.EngineLogicConfig;
|
|
432
520
|
toString(): string;
|
|
433
521
|
hashCode(): number;
|
|
434
522
|
equals(other: Nullable<any>): boolean;
|
|
@@ -467,23 +555,175 @@ export declare namespace games.jass.logic.data.models {
|
|
|
467
555
|
}
|
|
468
556
|
export declare namespace games.jass.logic.data.models {
|
|
469
557
|
class GameSessionAnalytics {
|
|
470
|
-
constructor(duration: any/* kotlin.time.Duration */, gamesCount: number, roundsCountTotal: number, handsCount: number, playerAnalytics:
|
|
558
|
+
constructor(duration: any/* kotlin.time.Duration */, gamesCount: number, roundsCountTotal: number, handsCount: number, playerAnalytics: Array<games.jass.logic.data.models.player.analytics.PlayerAnalytics>);
|
|
471
559
|
get duration(): any/* kotlin.time.Duration */;
|
|
472
560
|
get gamesCount(): number;
|
|
473
561
|
get roundsCountTotal(): number;
|
|
474
562
|
get handsCount(): number;
|
|
475
|
-
get playerAnalytics():
|
|
563
|
+
get playerAnalytics(): Array<games.jass.logic.data.models.player.analytics.PlayerAnalytics>;
|
|
476
564
|
get allCombinationCounts(): Array<games.jass.logic.data.models.CombinationPair>;
|
|
477
|
-
|
|
565
|
+
get allCombinationsAnalytics(): games.jass.logic.data.models.player.analytics.CombinationsAnalytics;
|
|
566
|
+
equals(other: Nullable<any>): boolean;
|
|
567
|
+
hashCode(): number;
|
|
568
|
+
toString(): string;
|
|
569
|
+
copy(duration?: any/* kotlin.time.Duration */, gamesCount?: number, roundsCountTotal?: number, handsCount?: number, playerAnalytics?: Array<games.jass.logic.data.models.player.analytics.PlayerAnalytics>): games.jass.logic.data.models.GameSessionAnalytics;
|
|
570
|
+
}
|
|
571
|
+
class CombinationPair {
|
|
572
|
+
constructor(type: games.jass.logic.data.models.table.combinations.CombinationType, count: number);
|
|
573
|
+
get type(): games.jass.logic.data.models.table.combinations.CombinationType;
|
|
574
|
+
get count(): number;
|
|
575
|
+
copy(type?: games.jass.logic.data.models.table.combinations.CombinationType, count?: number): games.jass.logic.data.models.CombinationPair;
|
|
478
576
|
toString(): string;
|
|
479
577
|
hashCode(): number;
|
|
480
578
|
equals(other: Nullable<any>): boolean;
|
|
481
579
|
}
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
580
|
+
}
|
|
581
|
+
export declare namespace games.jass.logic.data.models.config {
|
|
582
|
+
class ServerReduxConfig {
|
|
583
|
+
constructor(finishGameIfAllBots?: boolean, waitForPlayerToReconnect?: boolean, waitForPlayerToReconnectTimeOutMillis?: number, closeIfBotsAtFinish?: boolean, botReplacesPlayerAfterTimeout?: boolean, enabledCombinedEvents?: boolean, delayToAskBotMillis?: number, combinedEventsPeriod?: number);
|
|
584
|
+
get finishGameIfAllBots(): boolean;
|
|
585
|
+
get waitForPlayerToReconnect(): boolean;
|
|
586
|
+
get waitForPlayerToReconnectTimeOutMillis(): number;
|
|
587
|
+
get closeIfBotsAtFinish(): boolean;
|
|
588
|
+
get botReplacesPlayerAfterTimeout(): boolean;
|
|
589
|
+
get enabledCombinedEvents(): boolean;
|
|
590
|
+
get delayToAskBotMillis(): number;
|
|
591
|
+
get combinedEventsPeriod(): number;
|
|
592
|
+
copy(finishGameIfAllBots?: boolean, waitForPlayerToReconnect?: boolean, waitForPlayerToReconnectTimeOutMillis?: number, closeIfBotsAtFinish?: boolean, botReplacesPlayerAfterTimeout?: boolean, enabledCombinedEvents?: boolean, delayToAskBotMillis?: number, combinedEventsPeriod?: number): games.jass.logic.data.models.config.ServerReduxConfig;
|
|
593
|
+
toString(): string;
|
|
594
|
+
hashCode(): number;
|
|
595
|
+
equals(other: Nullable<any>): boolean;
|
|
596
|
+
static get Companion(): {
|
|
597
|
+
get DELAY_TO_BUFFER_EVENTS_MILLIS(): number;
|
|
598
|
+
getServerEngineMode(finishGameIfAllBots: boolean, botReplacesPlayerAfterTimeout: boolean, closeIfBotsAtFinish: boolean, enabledCombinedEvents?: boolean, delayToAskBotMillis?: number): games.jass.logic.data.models.config.ServerReduxConfig;
|
|
599
|
+
};
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
export declare namespace games.jass.logic.data.models.dealer {
|
|
603
|
+
class RandomData {
|
|
604
|
+
constructor(signature: Nullable<string>, id: string, indexes: kotlin.collections.KtList<number>);
|
|
605
|
+
get signature(): Nullable<string>;
|
|
606
|
+
get id(): string;
|
|
607
|
+
get indexes(): kotlin.collections.KtList<number>;
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
export declare namespace games.jass.logic.data.models.messages.combinatios {
|
|
611
|
+
abstract class CombinationReason /* implements kotlin.Comparable<games.jass.logic.data.models.messages.combinatios.CombinationReason> */ {
|
|
612
|
+
private constructor();
|
|
613
|
+
static get WIN_SINGLE_COMBINATION(): games.jass.logic.data.models.messages.combinatios.CombinationReason & {
|
|
614
|
+
get name(): "WIN_SINGLE_COMBINATION";
|
|
615
|
+
get ordinal(): 0;
|
|
616
|
+
};
|
|
617
|
+
static get WIN_HIGHER_COMBINATION(): games.jass.logic.data.models.messages.combinatios.CombinationReason & {
|
|
618
|
+
get name(): "WIN_HIGHER_COMBINATION";
|
|
619
|
+
get ordinal(): 1;
|
|
620
|
+
};
|
|
621
|
+
static get WIN_HIGHER_CARD_COMBINATION(): games.jass.logic.data.models.messages.combinatios.CombinationReason & {
|
|
622
|
+
get name(): "WIN_HIGHER_CARD_COMBINATION";
|
|
623
|
+
get ordinal(): 2;
|
|
624
|
+
};
|
|
625
|
+
static get WIN_TRUMP_COMBINATION(): games.jass.logic.data.models.messages.combinatios.CombinationReason & {
|
|
626
|
+
get name(): "WIN_TRUMP_COMBINATION";
|
|
627
|
+
get ordinal(): 3;
|
|
628
|
+
};
|
|
629
|
+
static get WIN_HIGHER_PLAYER_NUMBER_COMBINATION(): games.jass.logic.data.models.messages.combinatios.CombinationReason & {
|
|
630
|
+
get name(): "WIN_HIGHER_PLAYER_NUMBER_COMBINATION";
|
|
631
|
+
get ordinal(): 4;
|
|
632
|
+
};
|
|
633
|
+
static get WIN_PARTNER_COMBINATION(): games.jass.logic.data.models.messages.combinatios.CombinationReason & {
|
|
634
|
+
get name(): "WIN_PARTNER_COMBINATION";
|
|
635
|
+
get ordinal(): 5;
|
|
636
|
+
};
|
|
637
|
+
static get REJECTED_NOT_TRUMP_SEVEN_IN_ROW_COMBINATION(): games.jass.logic.data.models.messages.combinatios.CombinationReason & {
|
|
638
|
+
get name(): "REJECTED_NOT_TRUMP_SEVEN_IN_ROW_COMBINATION";
|
|
639
|
+
get ordinal(): 6;
|
|
640
|
+
};
|
|
641
|
+
get name(): "WIN_SINGLE_COMBINATION" | "WIN_HIGHER_COMBINATION" | "WIN_HIGHER_CARD_COMBINATION" | "WIN_TRUMP_COMBINATION" | "WIN_HIGHER_PLAYER_NUMBER_COMBINATION" | "WIN_PARTNER_COMBINATION" | "REJECTED_NOT_TRUMP_SEVEN_IN_ROW_COMBINATION";
|
|
642
|
+
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
643
|
+
static values(): Array<games.jass.logic.data.models.messages.combinatios.CombinationReason>;
|
|
644
|
+
static valueOf(value: string): games.jass.logic.data.models.messages.combinatios.CombinationReason;
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
export declare namespace games.jass.logic.data.models.player {
|
|
648
|
+
class UserProfilePayload {
|
|
649
|
+
constructor(socketId?: Nullable<string>, rating?: Nullable<number>, playedGamesCount?: number);
|
|
650
|
+
get socketId(): Nullable<string>;
|
|
651
|
+
get rating(): Nullable<number>;
|
|
652
|
+
get playedGamesCount(): number;
|
|
653
|
+
copy(socketId?: Nullable<string>, rating?: Nullable<number>, playedGamesCount?: number): games.jass.logic.data.models.player.UserProfilePayload;
|
|
654
|
+
toString(): string;
|
|
655
|
+
hashCode(): number;
|
|
656
|
+
equals(other: Nullable<any>): boolean;
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
export declare namespace games.jass.logic.data.models.player.achievements {
|
|
660
|
+
class Achievements {
|
|
661
|
+
constructor(oldRating: number, newRating: number);
|
|
662
|
+
get oldRating(): number;
|
|
663
|
+
get newRating(): number;
|
|
664
|
+
copy(oldRating?: number, newRating?: number): games.jass.logic.data.models.player.achievements.Achievements;
|
|
665
|
+
toString(): string;
|
|
666
|
+
hashCode(): number;
|
|
667
|
+
equals(other: Nullable<any>): boolean;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
export declare namespace games.jass.logic.data.models.player.achievements {
|
|
671
|
+
class PlayerAchievements implements com.logic.data.models.player.PlayerIdContract {
|
|
672
|
+
constructor(playerId: string, oldRating: number, newRating: number);
|
|
673
|
+
get playerId(): string;
|
|
674
|
+
get oldRating(): number;
|
|
675
|
+
get newRating(): number;
|
|
676
|
+
copy(playerId?: string, oldRating?: number, newRating?: number): games.jass.logic.data.models.player.achievements.PlayerAchievements;
|
|
677
|
+
toString(): string;
|
|
678
|
+
hashCode(): number;
|
|
679
|
+
equals(other: Nullable<any>): boolean;
|
|
680
|
+
readonly __doNotUseOrImplementIt: com.logic.data.models.player.PlayerIdContract["__doNotUseOrImplementIt"];
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
export declare namespace games.jass.logic.data.models.player.analytics {
|
|
684
|
+
class CombinationsAnalytics {
|
|
685
|
+
constructor(combinations: Array<games.jass.logic.data.models.player.analytics.CombinationAnalytics>);
|
|
686
|
+
get combinations(): Array<games.jass.logic.data.models.player.analytics.CombinationAnalytics>;
|
|
687
|
+
equals(other: Nullable<any>): boolean;
|
|
688
|
+
hashCode(): number;
|
|
689
|
+
copy(combinations?: Array<games.jass.logic.data.models.player.analytics.CombinationAnalytics>): games.jass.logic.data.models.player.analytics.CombinationsAnalytics;
|
|
690
|
+
toString(): string;
|
|
691
|
+
}
|
|
692
|
+
class CombinationAnalytics {
|
|
693
|
+
constructor(type: games.jass.logic.data.models.table.combinations.CombinationType, count: number, acceptedCounts: number);
|
|
694
|
+
get type(): games.jass.logic.data.models.table.combinations.CombinationType;
|
|
485
695
|
get count(): number;
|
|
486
|
-
|
|
696
|
+
get acceptedCounts(): number;
|
|
697
|
+
copy(type?: games.jass.logic.data.models.table.combinations.CombinationType, count?: number, acceptedCounts?: number): games.jass.logic.data.models.player.analytics.CombinationAnalytics;
|
|
698
|
+
toString(): string;
|
|
699
|
+
hashCode(): number;
|
|
700
|
+
equals(other: Nullable<any>): boolean;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
export declare namespace games.jass.logic.data.models.player.analytics {
|
|
704
|
+
class PlayerAnalytics implements com.logic.data.models.player.PlayerIdContract {
|
|
705
|
+
constructor(playerId: string, factor: number, wasLiveDuringGame: boolean, liveDurationPercentage: Nullable<number>, combinationRecords: kotlin.collections.KtList<games.jass.logic.data.models.player.hand.CombinationRecord>);
|
|
706
|
+
get playerId(): string;
|
|
707
|
+
get factor(): number;
|
|
708
|
+
get wasLiveDuringGame(): boolean;
|
|
709
|
+
get liveDurationPercentage(): Nullable<number>;
|
|
710
|
+
get combinationRecords(): kotlin.collections.KtList<games.jass.logic.data.models.player.hand.CombinationRecord>;
|
|
711
|
+
get combinationCounts(): kotlin.collections.KtMap<games.jass.logic.data.models.table.combinations.CombinationType, number>;
|
|
712
|
+
get combinationsAnalytics(): games.jass.logic.data.models.player.analytics.CombinationsAnalytics;
|
|
713
|
+
toString(): string;
|
|
714
|
+
copy(playerId?: string, factor?: number, wasLiveDuringGame?: boolean, liveDurationPercentage?: Nullable<number>, combinationRecords?: kotlin.collections.KtList<games.jass.logic.data.models.player.hand.CombinationRecord>): games.jass.logic.data.models.player.analytics.PlayerAnalytics;
|
|
715
|
+
hashCode(): number;
|
|
716
|
+
equals(other: Nullable<any>): boolean;
|
|
717
|
+
readonly __doNotUseOrImplementIt: com.logic.data.models.player.PlayerIdContract["__doNotUseOrImplementIt"];
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
export declare namespace games.jass.logic.data.models.player.analytics {
|
|
721
|
+
class PlayerHistoryAnalytics /* implements games.jass.logic.data.models.table.history.PlayerHistoryItem */ {
|
|
722
|
+
constructor(playerId: string, liveDurationPercentage: Nullable<number>, combinations: Nullable<kotlin.collections.KtList<games.jass.logic.data.models.player.analytics.CombinationAnalytics>>, achievements: Nullable<games.jass.logic.data.models.player.achievements.Achievements>);
|
|
723
|
+
get liveDurationPercentage(): Nullable<number>;
|
|
724
|
+
get combinations(): Nullable<kotlin.collections.KtList<games.jass.logic.data.models.player.analytics.CombinationAnalytics>>;
|
|
725
|
+
get achievements(): Nullable<games.jass.logic.data.models.player.achievements.Achievements>;
|
|
726
|
+
copy(playerId?: string, liveDurationPercentage?: Nullable<number>, combinations?: Nullable<kotlin.collections.KtList<games.jass.logic.data.models.player.analytics.CombinationAnalytics>>, achievements?: Nullable<games.jass.logic.data.models.player.achievements.Achievements>): games.jass.logic.data.models.player.analytics.PlayerHistoryAnalytics;
|
|
487
727
|
toString(): string;
|
|
488
728
|
hashCode(): number;
|
|
489
729
|
equals(other: Nullable<any>): boolean;
|
|
@@ -529,28 +769,13 @@ export declare namespace games.jass.logic.data.models.player.hand {
|
|
|
529
769
|
get type(): games.jass.logic.data.models.table.combinations.CombinationType;
|
|
530
770
|
get state(): games.jass.logic.data.models.table.combinations.CombinationState;
|
|
531
771
|
get value(): number;
|
|
772
|
+
get isAccepted(): boolean;
|
|
532
773
|
copy(id?: string, type?: games.jass.logic.data.models.table.combinations.CombinationType, state?: games.jass.logic.data.models.table.combinations.CombinationState, value?: number): games.jass.logic.data.models.player.hand.CombinationRecord;
|
|
533
774
|
toString(): string;
|
|
534
775
|
hashCode(): number;
|
|
535
776
|
equals(other: Nullable<any>): boolean;
|
|
536
777
|
}
|
|
537
778
|
}
|
|
538
|
-
export declare namespace games.jass.logic.data.models.player.hand {
|
|
539
|
-
class PlayerAnalytics implements com.logic.data.models.player.PlayerIdContract {
|
|
540
|
-
constructor(playerId: string, factor: number, wasLiveDuringGame: boolean, liveDurationPercentage: Nullable<number>, combinationRecords: kotlin.collections.KtList<games.jass.logic.data.models.player.hand.CombinationRecord>);
|
|
541
|
-
get playerId(): string;
|
|
542
|
-
get factor(): number;
|
|
543
|
-
get wasLiveDuringGame(): boolean;
|
|
544
|
-
get liveDurationPercentage(): Nullable<number>;
|
|
545
|
-
get combinationRecords(): kotlin.collections.KtList<games.jass.logic.data.models.player.hand.CombinationRecord>;
|
|
546
|
-
get combinationCounts(): kotlin.collections.KtMap<games.jass.logic.data.models.table.combinations.CombinationType, number>;
|
|
547
|
-
copy(playerId?: string, factor?: number, wasLiveDuringGame?: boolean, liveDurationPercentage?: Nullable<number>, combinationRecords?: kotlin.collections.KtList<games.jass.logic.data.models.player.hand.CombinationRecord>): games.jass.logic.data.models.player.hand.PlayerAnalytics;
|
|
548
|
-
toString(): string;
|
|
549
|
-
hashCode(): number;
|
|
550
|
-
equals(other: Nullable<any>): boolean;
|
|
551
|
-
readonly __doNotUseOrImplementIt: com.logic.data.models.player.PlayerIdContract["__doNotUseOrImplementIt"];
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
779
|
export declare namespace games.jass.logic.data.models.player.state {
|
|
555
780
|
abstract class RoundContractState {
|
|
556
781
|
private constructor();
|
|
@@ -607,33 +832,34 @@ export declare namespace games.jass.logic.data.models.player.state {
|
|
|
607
832
|
}
|
|
608
833
|
export declare namespace games.jass.logic.data.models.rules {
|
|
609
834
|
class Rules {
|
|
610
|
-
constructor(needToPutHigherTrump: boolean,
|
|
835
|
+
constructor(needToPutHigherTrump: boolean, playerWhoChooseSuitGoFirst: boolean, winnerShuffleCards: boolean, playWithoutLiabilities: boolean, trumpCardGoToPlayerWhoShuffleCards: boolean, dealerInitialCardsCount: number, dealerFinalCardsCount: number, dealerCounterClockwise: boolean, contractTypes: Array<games.jass.logic.data.models.player.state.RoundContractType>, bidTypes: Array<games.jass.logic.data.models.player.bids.BidType>, combinationsWithFirstCard: Array<games.jass.logic.data.models.table.combinations.CombinationType>, protectBella: boolean, oneTryToProtectBella: boolean, enableFourSevensCombination: boolean, enableTrumpSevenCombination: boolean, enableTrumpSevenCombinationAfterDistribution: boolean, checkTrumpCombination: boolean, checkOnlyTrumpDebertz: boolean, distributePoints: boolean, enableFineAfterThirdFailedContract: boolean, fineAfterThirdFailedContract: number, enableFineIfNoBribes: boolean, fineIfNoBribes: number);
|
|
611
836
|
get needToPutHigherTrump(): boolean;
|
|
612
|
-
get distributePoints(): boolean;
|
|
613
|
-
get protectBella(): boolean;
|
|
614
|
-
get oneTryToProtectBella(): boolean;
|
|
615
|
-
get enableFourSevensCombination(): boolean;
|
|
616
|
-
get enableTrumpSevenCombination(): boolean;
|
|
617
|
-
get enableTrumpSevenCombinationAfterDistribution(): boolean;
|
|
618
837
|
get playerWhoChooseSuitGoFirst(): boolean;
|
|
619
838
|
get winnerShuffleCards(): boolean;
|
|
620
839
|
get playWithoutLiabilities(): boolean;
|
|
621
840
|
get trumpCardGoToPlayerWhoShuffleCards(): boolean;
|
|
622
|
-
get enableFineIfNoBribes(): boolean;
|
|
623
|
-
get fineIfNoBribes(): number;
|
|
624
|
-
get enableFineAfterThirdByte(): boolean;
|
|
625
|
-
get checkTrumpCombination(): boolean;
|
|
626
|
-
get checkOnlyTrumpDebertz(): boolean;
|
|
627
841
|
get dealerInitialCardsCount(): number;
|
|
628
842
|
get dealerFinalCardsCount(): number;
|
|
629
843
|
get dealerCounterClockwise(): boolean;
|
|
630
844
|
get contractTypes(): Array<games.jass.logic.data.models.player.state.RoundContractType>;
|
|
631
845
|
get bidTypes(): Array<games.jass.logic.data.models.player.bids.BidType>;
|
|
632
846
|
get combinationsWithFirstCard(): Array<games.jass.logic.data.models.table.combinations.CombinationType>;
|
|
847
|
+
get protectBella(): boolean;
|
|
848
|
+
get oneTryToProtectBella(): boolean;
|
|
849
|
+
get enableFourSevensCombination(): boolean;
|
|
850
|
+
get enableTrumpSevenCombination(): boolean;
|
|
851
|
+
get enableTrumpSevenCombinationAfterDistribution(): boolean;
|
|
852
|
+
get checkTrumpCombination(): boolean;
|
|
853
|
+
get checkOnlyTrumpDebertz(): boolean;
|
|
854
|
+
get distributePoints(): boolean;
|
|
855
|
+
get enableFineAfterThirdByte(): boolean;
|
|
856
|
+
get fineAfterThirdFailedContract(): number;
|
|
857
|
+
get enableFineIfNoBribes(): boolean;
|
|
858
|
+
get fineIfNoBribes(): number;
|
|
633
859
|
toString(): string;
|
|
634
860
|
equals(other: Nullable<any>): boolean;
|
|
635
861
|
hashCode(): number;
|
|
636
|
-
copy(needToPutHigherTrump?: boolean,
|
|
862
|
+
copy(needToPutHigherTrump?: boolean, playerWhoChooseSuitGoFirst?: boolean, winnerShuffleCards?: boolean, playWithoutLiabilities?: boolean, trumpCardGoToPlayerWhoShuffleCards?: boolean, dealerInitialCardsCount?: number, dealerFinalCardsCount?: number, dealerCounterClockwise?: boolean, contractTypes?: Array<games.jass.logic.data.models.player.state.RoundContractType>, bidTypes?: Array<games.jass.logic.data.models.player.bids.BidType>, combinationsWithFirstCard?: Array<games.jass.logic.data.models.table.combinations.CombinationType>, protectBella?: boolean, oneTryToProtectBella?: boolean, enableFourSevensCombination?: boolean, enableTrumpSevenCombination?: boolean, enableTrumpSevenCombinationAfterDistribution?: boolean, checkTrumpCombination?: boolean, checkOnlyTrumpDebertz?: boolean, distributePoints?: boolean, enableFineAfterThirdFailedContract?: boolean, fineAfterThirdFailedContract?: number, enableFineIfNoBribes?: boolean, fineIfNoBribes?: number): games.jass.logic.data.models.rules.Rules;
|
|
637
863
|
static get Companion(): {
|
|
638
864
|
get HAND_CARDS_INITIAL(): number;
|
|
639
865
|
get HAND_CARDS_FINAL(): number;
|
|
@@ -732,7 +958,7 @@ export declare namespace games.jass.logic.data.models.table {
|
|
|
732
958
|
}
|
|
733
959
|
}
|
|
734
960
|
export declare namespace games.jass.logic.data.models.table {
|
|
735
|
-
class TableLoggerPayload implements
|
|
961
|
+
class TableLoggerPayload implements games.raspberry.logger.LoggerPayload {
|
|
736
962
|
constructor(id: string, gameId: string, players: Array<games.jass.logic.data.models.table.PlayerLoggerPayload>);
|
|
737
963
|
get id(): string;
|
|
738
964
|
get gameId(): string;
|
|
@@ -741,9 +967,9 @@ export declare namespace games.jass.logic.data.models.table {
|
|
|
741
967
|
hashCode(): number;
|
|
742
968
|
toString(): string;
|
|
743
969
|
copy(id?: string, gameId?: string, players?: Array<games.jass.logic.data.models.table.PlayerLoggerPayload>): games.jass.logic.data.models.table.TableLoggerPayload;
|
|
744
|
-
readonly __doNotUseOrImplementIt:
|
|
970
|
+
readonly __doNotUseOrImplementIt: games.raspberry.logger.LoggerPayload["__doNotUseOrImplementIt"];
|
|
745
971
|
}
|
|
746
|
-
class PlayerLoggerPayload implements
|
|
972
|
+
class PlayerLoggerPayload implements games.raspberry.logger.LoggerPayload {
|
|
747
973
|
constructor(playerId: string, connectionState: Nullable<com.logic.data.models.player.PlayerConnectionState>);
|
|
748
974
|
get playerId(): string;
|
|
749
975
|
get connectionState(): Nullable<com.logic.data.models.player.PlayerConnectionState>;
|
|
@@ -751,14 +977,14 @@ export declare namespace games.jass.logic.data.models.table {
|
|
|
751
977
|
copy(playerId?: string, connectionState?: Nullable<com.logic.data.models.player.PlayerConnectionState>): games.jass.logic.data.models.table.PlayerLoggerPayload;
|
|
752
978
|
hashCode(): number;
|
|
753
979
|
equals(other: Nullable<any>): boolean;
|
|
754
|
-
readonly __doNotUseOrImplementIt:
|
|
980
|
+
readonly __doNotUseOrImplementIt: games.raspberry.logger.LoggerPayload["__doNotUseOrImplementIt"];
|
|
755
981
|
}
|
|
756
982
|
}
|
|
757
983
|
export declare namespace games.jass.logic.data.models.table.combinations {
|
|
758
984
|
class Combination /* implements games.jass.logic.data.models.table.combinations.CombinationContract */ {
|
|
759
|
-
constructor(id: string, type: games.jass.logic.data.models.table.combinations.CombinationType, cards: Nullable<kotlin.collections.KtList<any/* io.raspberryapps.card_game.core.data.models.cards.GameCard
|
|
760
|
-
copy(id?: string, type?: games.jass.logic.data.models.table.combinations.CombinationType, cards?: Nullable<kotlin.collections.KtList<any/* io.raspberryapps.card_game.core.data.models.cards.GameCard */>>): games.jass.logic.data.models.table.combinations.Combination;
|
|
985
|
+
constructor(id: string, type: games.jass.logic.data.models.table.combinations.CombinationType, cards: Nullable<kotlin.collections.KtList<any/* io.raspberryapps.card_game.core.data.models.cards.GameCard */>>, reasons: kotlin.collections.KtSet<games.jass.logic.data.models.messages.combinatios.CombinationReason>);
|
|
761
986
|
toString(): string;
|
|
987
|
+
copy(id?: string, type?: games.jass.logic.data.models.table.combinations.CombinationType, cards?: Nullable<kotlin.collections.KtList<any/* io.raspberryapps.card_game.core.data.models.cards.GameCard */>>, reasons?: kotlin.collections.KtSet<games.jass.logic.data.models.messages.combinatios.CombinationReason>): games.jass.logic.data.models.table.combinations.Combination;
|
|
762
988
|
hashCode(): number;
|
|
763
989
|
equals(other: Nullable<any>): boolean;
|
|
764
990
|
}
|
|
@@ -1041,23 +1267,39 @@ export declare namespace games.jass.logic.data.models.table.config {
|
|
|
1041
1267
|
}
|
|
1042
1268
|
export declare namespace games.jass.logic.data.models.table.history {
|
|
1043
1269
|
class GameHistory {
|
|
1044
|
-
constructor(gameId: string, createdAt: any/* kotlinx.datetime.Instant */, rounds: Array<games.jass.logic.data.models.table.history.RoundHistory>);
|
|
1270
|
+
constructor(gameId: string, createdAt: any/* kotlinx.datetime.Instant */, rounds: Array<games.jass.logic.data.models.table.history.RoundHistory>, gameWinners: Nullable<Array<string>>, metadata: Nullable<games.jass.logic.data.models.table.history.GameHistoryMetadata>);
|
|
1045
1271
|
get gameId(): string;
|
|
1046
1272
|
get createdAt(): any/* kotlinx.datetime.Instant */;
|
|
1047
1273
|
get rounds(): Array<games.jass.logic.data.models.table.history.RoundHistory>;
|
|
1274
|
+
get gameWinners(): Nullable<Array<string>>;
|
|
1275
|
+
get metadata(): Nullable<games.jass.logic.data.models.table.history.GameHistoryMetadata>;
|
|
1048
1276
|
get date(): string;
|
|
1049
1277
|
get lastRoundHistory(): games.jass.logic.data.models.table.history.RoundHistory;
|
|
1050
1278
|
get isFirstRound(): boolean;
|
|
1051
1279
|
get roundsCount(): number;
|
|
1280
|
+
toString(): string;
|
|
1052
1281
|
equals(other: Nullable<any>): boolean;
|
|
1053
1282
|
hashCode(): number;
|
|
1054
|
-
|
|
1055
|
-
copy(gameId?: string, createdAt?: any/* kotlinx.datetime.Instant */, rounds?: Array<games.jass.logic.data.models.table.history.RoundHistory>): games.jass.logic.data.models.table.history.GameHistory;
|
|
1283
|
+
copy(gameId?: string, createdAt?: any/* kotlinx.datetime.Instant */, rounds?: Array<games.jass.logic.data.models.table.history.RoundHistory>, gameWinners?: Nullable<Array<string>>, metadata?: Nullable<games.jass.logic.data.models.table.history.GameHistoryMetadata>): games.jass.logic.data.models.table.history.GameHistory;
|
|
1056
1284
|
static get Companion(): {
|
|
1057
1285
|
initial(gameId: string, createdAt?: any/* kotlinx.datetime.Instant */): games.jass.logic.data.models.table.history.GameHistory;
|
|
1058
1286
|
};
|
|
1059
1287
|
}
|
|
1060
1288
|
}
|
|
1289
|
+
export declare namespace games.jass.logic.data.models.table.history {
|
|
1290
|
+
class GameHistoryMetadata {
|
|
1291
|
+
constructor(randomData: Nullable<games.jass.logic.data.models.dealer.RandomData>, playersAnalytics: kotlin.collections.KtList<games.jass.logic.data.models.player.analytics.PlayerHistoryAnalytics>);
|
|
1292
|
+
get randomData(): Nullable<games.jass.logic.data.models.dealer.RandomData>;
|
|
1293
|
+
get playersAnalytics(): kotlin.collections.KtList<games.jass.logic.data.models.player.analytics.PlayerHistoryAnalytics>;
|
|
1294
|
+
copy(randomData?: Nullable<games.jass.logic.data.models.dealer.RandomData>, playersAnalytics?: kotlin.collections.KtList<games.jass.logic.data.models.player.analytics.PlayerHistoryAnalytics>): games.jass.logic.data.models.table.history.GameHistoryMetadata;
|
|
1295
|
+
toString(): string;
|
|
1296
|
+
hashCode(): number;
|
|
1297
|
+
equals(other: Nullable<any>): boolean;
|
|
1298
|
+
static get Companion(): {
|
|
1299
|
+
initial(): games.jass.logic.data.models.table.history.GameHistoryMetadata;
|
|
1300
|
+
};
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1061
1303
|
export declare namespace games.jass.logic.data.models.table.history {
|
|
1062
1304
|
class RoundHistory {
|
|
1063
1305
|
constructor(roundNumber: number, items: Array<games.jass.logic.data.models.table.history.RoundHistoryItem>, roundCommitted: Nullable<Array<string>>, roundContractState: Nullable<games.jass.logic.data.models.player.state.RoundContractState>, roundWinners: Nullable<Array<string>>);
|
|
@@ -1083,6 +1325,23 @@ export declare namespace games.jass.logic.data.models.table.history {
|
|
|
1083
1325
|
abstract get createdAt(): any/* kotlinx.datetime.Instant */;
|
|
1084
1326
|
}
|
|
1085
1327
|
}
|
|
1328
|
+
export declare namespace games.jass.logic.data.models.table.round {
|
|
1329
|
+
class Round {
|
|
1330
|
+
constructor(roundNumber: number, numberOfBribe: Nullable<number>, trump: Nullable<any>/* Nullable<io.raspberryapps.card_game.core.data.models.cards.Suit> */);
|
|
1331
|
+
get roundNumber(): number;
|
|
1332
|
+
get numberOfBribe(): Nullable<number>;
|
|
1333
|
+
get trump(): Nullable<any>/* Nullable<io.raspberryapps.card_game.core.data.models.cards.Suit> */;
|
|
1334
|
+
get selectedTrump(): any/* io.raspberryapps.card_game.core.data.models.cards.Suit */;
|
|
1335
|
+
get numberOfBribeOrZero(): number;
|
|
1336
|
+
copy(roundNumber?: number, numberOfBribe?: Nullable<number>, trump?: Nullable<any>/* Nullable<io.raspberryapps.card_game.core.data.models.cards.Suit> */): games.jass.logic.data.models.table.round.Round;
|
|
1337
|
+
toString(): string;
|
|
1338
|
+
hashCode(): number;
|
|
1339
|
+
equals(other: Nullable<any>): boolean;
|
|
1340
|
+
static get Companion(): {
|
|
1341
|
+
initial(): games.jass.logic.data.models.table.round.Round;
|
|
1342
|
+
};
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1086
1345
|
export declare namespace games.jass.logic.domain.interactors.dealer {
|
|
1087
1346
|
abstract class DealerStrategy {
|
|
1088
1347
|
private constructor();
|
|
@@ -1106,8 +1365,16 @@ export declare namespace games.jass.logic.domain.interactors.dealer {
|
|
|
1106
1365
|
get name(): "RANDOM";
|
|
1107
1366
|
get ordinal(): 4;
|
|
1108
1367
|
};
|
|
1109
|
-
get
|
|
1110
|
-
|
|
1368
|
+
static get RANDOM_ORG(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
|
|
1369
|
+
get name(): "RANDOM_ORG";
|
|
1370
|
+
get ordinal(): 5;
|
|
1371
|
+
};
|
|
1372
|
+
static get RANDOM_ORG_SIGNED(): games.jass.logic.domain.interactors.dealer.DealerStrategy & {
|
|
1373
|
+
get name(): "RANDOM_ORG_SIGNED";
|
|
1374
|
+
get ordinal(): 6;
|
|
1375
|
+
};
|
|
1376
|
+
get name(): "FAKE" | "BASED_ON_PREVIOUS" | "EQUAL_HAND_BY_POINTS" | "EQUAL_HAND_BY_VALUE" | "RANDOM" | "RANDOM_ORG" | "RANDOM_ORG_SIGNED";
|
|
1377
|
+
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
1111
1378
|
shouldEqualiseHand(): boolean;
|
|
1112
1379
|
static values(): Array<games.jass.logic.domain.interactors.dealer.DealerStrategy>;
|
|
1113
1380
|
static valueOf(value: string): games.jass.logic.domain.interactors.dealer.DealerStrategy;
|
|
@@ -1197,28 +1464,29 @@ export declare namespace games.jass.logic.redux.actions.game {
|
|
|
1197
1464
|
get isFirstRound(): boolean;
|
|
1198
1465
|
get gameNumber(): number;
|
|
1199
1466
|
get gameHistory(): games.jass.logic.data.models.table.history.GameHistory;
|
|
1467
|
+
toString(): string;
|
|
1200
1468
|
equals(other: Nullable<any>): boolean;
|
|
1201
1469
|
hashCode(): number;
|
|
1202
|
-
toString(): string;
|
|
1203
1470
|
copy(id?: string, gameId?: string, roundNumber?: number, players?: Array<string>, isFirstRound?: boolean, gameNumber?: number, gameHistory?: games.jass.logic.data.models.table.history.GameHistory): games.jass.logic.redux.actions.game.RoundStartedAction;
|
|
1204
1471
|
get actionTag(): string;
|
|
1205
1472
|
}
|
|
1206
1473
|
class RoundEndedAction extends games.jass.logic.redux.actions.game.GameAction {
|
|
1207
|
-
constructor(id: string, gameId: string, roundNumber: number, earnedBiggestPointPlayerId: string, gameLosers: Nullable<Array<string>> | undefined, gameWinners: Nullable<Array<string>> | undefined, playersGameAnalytics: Nullable<Array<games.jass.logic.data.models.player.
|
|
1474
|
+
constructor(id: string, gameId: string, roundNumber: number, earnedBiggestPointPlayerId: string, gameLosers: Nullable<Array<string>> | undefined, gameWinners: Nullable<Array<string>> | undefined, playersGameAnalytics: Nullable<Array<games.jass.logic.data.models.player.analytics.PlayerAnalytics>>, playersRoundAnalytics: Nullable<Array<games.jass.logic.data.models.player.analytics.PlayerAnalytics>>, achievements: Nullable<Array<games.jass.logic.data.models.player.achievements.PlayerAchievements>>, gameHistory: games.jass.logic.data.models.table.history.GameHistory);
|
|
1208
1475
|
get id(): string;
|
|
1209
1476
|
get gameId(): string;
|
|
1210
1477
|
get roundNumber(): number;
|
|
1211
1478
|
get earnedBiggestPointPlayerId(): string;
|
|
1212
1479
|
get gameLosers(): Nullable<Array<string>>;
|
|
1213
1480
|
get gameWinners(): Nullable<Array<string>>;
|
|
1214
|
-
get playersGameAnalytics(): Nullable<Array<games.jass.logic.data.models.player.
|
|
1215
|
-
get playersRoundAnalytics(): Nullable<Array<games.jass.logic.data.models.player.
|
|
1481
|
+
get playersGameAnalytics(): Nullable<Array<games.jass.logic.data.models.player.analytics.PlayerAnalytics>>;
|
|
1482
|
+
get playersRoundAnalytics(): Nullable<Array<games.jass.logic.data.models.player.analytics.PlayerAnalytics>>;
|
|
1483
|
+
get achievements(): Nullable<Array<games.jass.logic.data.models.player.achievements.PlayerAchievements>>;
|
|
1216
1484
|
get gameHistory(): games.jass.logic.data.models.table.history.GameHistory;
|
|
1217
1485
|
get isGameFinished(): boolean;
|
|
1218
1486
|
toString(): string;
|
|
1219
1487
|
equals(other: Nullable<any>): boolean;
|
|
1220
1488
|
hashCode(): number;
|
|
1221
|
-
copy(id?: string, gameId?: string, roundNumber?: number, earnedBiggestPointPlayerId?: string, gameLosers?: Nullable<Array<string>>, gameWinners?: Nullable<Array<string>>, playersGameAnalytics?: Nullable<Array<games.jass.logic.data.models.player.
|
|
1489
|
+
copy(id?: string, gameId?: string, roundNumber?: number, earnedBiggestPointPlayerId?: string, gameLosers?: Nullable<Array<string>>, gameWinners?: Nullable<Array<string>>, playersGameAnalytics?: Nullable<Array<games.jass.logic.data.models.player.analytics.PlayerAnalytics>>, playersRoundAnalytics?: Nullable<Array<games.jass.logic.data.models.player.analytics.PlayerAnalytics>>, achievements?: Nullable<Array<games.jass.logic.data.models.player.achievements.PlayerAchievements>>, gameHistory?: games.jass.logic.data.models.table.history.GameHistory): games.jass.logic.redux.actions.game.RoundEndedAction;
|
|
1222
1490
|
get actionTag(): string;
|
|
1223
1491
|
}
|
|
1224
1492
|
class PartyRestartedAction implements com.logic.redux.store.definitions.Action {
|
|
@@ -1274,26 +1542,28 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
|
|
|
1274
1542
|
get actionTag(): string;
|
|
1275
1543
|
}
|
|
1276
1544
|
/* @ts-ignore: https://github.com/microsoft/TypeScript/issues/4628 */
|
|
1277
|
-
class FinishingGameMechanicAction extends games.jass.logic.redux.actions.mechanic.MechanicAction implements games.jass.logic.redux.actions.mechanic.TerminatedAction {
|
|
1278
|
-
constructor(reason: com.logic.data.models.TerminationGameReason,
|
|
1545
|
+
class FinishingGameMechanicAction extends games.jass.logic.redux.actions.mechanic.MechanicAction implements games.jass.logic.redux.actions.mechanic.TerminatedAction, com.logic.redux.actions.validation.NotValidateIfGameFinishing {
|
|
1546
|
+
constructor(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, sessionAnalytics?: Nullable<games.jass.logic.data.models.GameSessionAnalytics>, gameHistory?: Nullable<games.jass.logic.data.models.table.history.GameHistory>);
|
|
1279
1547
|
get reason(): com.logic.data.models.TerminationGameReason;
|
|
1280
|
-
get sessionAnalytics(): Nullable<games.jass.logic.data.models.GameSessionAnalytics>;
|
|
1281
1548
|
get isGameFinished(): boolean;
|
|
1549
|
+
get sessionAnalytics(): Nullable<games.jass.logic.data.models.GameSessionAnalytics>;
|
|
1282
1550
|
get gameHistory(): Nullable<games.jass.logic.data.models.table.history.GameHistory>;
|
|
1283
1551
|
toString(): string;
|
|
1284
|
-
copy(reason?: com.logic.data.models.TerminationGameReason, sessionAnalytics?: Nullable<games.jass.logic.data.models.GameSessionAnalytics>,
|
|
1552
|
+
copy(reason?: com.logic.data.models.TerminationGameReason, isGameFinished?: boolean, sessionAnalytics?: Nullable<games.jass.logic.data.models.GameSessionAnalytics>, gameHistory?: Nullable<games.jass.logic.data.models.table.history.GameHistory>): games.jass.logic.redux.actions.mechanic.FinishingGameMechanicAction;
|
|
1285
1553
|
hashCode(): number;
|
|
1286
1554
|
equals(other: Nullable<any>): boolean;
|
|
1287
1555
|
get actionTag(): string;
|
|
1288
|
-
|
|
1556
|
+
notValidateWhenFinishing(): boolean;
|
|
1557
|
+
readonly __doNotUseOrImplementIt: games.jass.logic.redux.actions.mechanic.MechanicAction["__doNotUseOrImplementIt"] & games.jass.logic.redux.actions.mechanic.TerminatedAction["__doNotUseOrImplementIt"] & com.logic.redux.actions.validation.NotValidateIfGameFinishing["__doNotUseOrImplementIt"];
|
|
1289
1558
|
static get Companion(): {
|
|
1290
1559
|
withAnalytics(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean, table: Nullable<games.jass.logic.data.models.table.JassTable>): games.jass.logic.redux.actions.mechanic.FinishingGameMechanicAction;
|
|
1291
1560
|
};
|
|
1292
1561
|
}
|
|
1293
1562
|
class FinishGameMechanicAction extends games.jass.logic.redux.actions.mechanic.MechanicAction implements com.logic.redux.actions.validation.NotValidateIfGameFinishing, games.jass.logic.redux.actions.mechanic.TerminatedAction {
|
|
1294
|
-
constructor(reason: com.logic.data.models.TerminationGameReason);
|
|
1563
|
+
constructor(reason: com.logic.data.models.TerminationGameReason, isGameFinished: boolean);
|
|
1295
1564
|
get reason(): com.logic.data.models.TerminationGameReason;
|
|
1296
|
-
|
|
1565
|
+
get isGameFinished(): boolean;
|
|
1566
|
+
copy(reason?: com.logic.data.models.TerminationGameReason, isGameFinished?: boolean): games.jass.logic.redux.actions.mechanic.FinishGameMechanicAction;
|
|
1297
1567
|
toString(): string;
|
|
1298
1568
|
hashCode(): number;
|
|
1299
1569
|
equals(other: Nullable<any>): boolean;
|
|
@@ -1326,6 +1596,7 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
|
|
|
1326
1596
|
}
|
|
1327
1597
|
interface TerminatedAction extends com.logic.redux.store.definitions.Action {
|
|
1328
1598
|
readonly reason: com.logic.data.models.TerminationGameReason;
|
|
1599
|
+
readonly isGameFinished: boolean;
|
|
1329
1600
|
readonly __doNotUseOrImplementIt: {
|
|
1330
1601
|
readonly "games.jass.logic.redux.actions.mechanic.TerminatedAction": unique symbol;
|
|
1331
1602
|
} & com.logic.redux.store.definitions.Action["__doNotUseOrImplementIt"];
|
|
@@ -1360,10 +1631,28 @@ export declare interface ParserHelper {
|
|
|
1360
1631
|
decodeToClientEventToMechanicActions(playerId: string, engine: games.jass.logic.GameStoreContract, json: string): Array<games.jass.logic.redux.actions.mechanic.MechanicAction>;
|
|
1361
1632
|
encodeGameRound(round: games.jass.logic.data.models.table.history.RoundHistory): string;
|
|
1362
1633
|
encodeGameRoundItems(round: games.jass.logic.data.models.table.history.RoundHistory): string;
|
|
1634
|
+
encodeGameMetadata(metadata: games.jass.logic.data.models.table.history.GameHistoryMetadata): string;
|
|
1635
|
+
encodeRoomConfig(config: models.RoomConfig): string;
|
|
1363
1636
|
readonly __doNotUseOrImplementIt: {
|
|
1364
1637
|
readonly ParserHelper: unique symbol;
|
|
1365
1638
|
};
|
|
1366
1639
|
}
|
|
1640
|
+
export declare namespace models {
|
|
1641
|
+
class RoomConfig {
|
|
1642
|
+
constructor(players: number, points: number, timeoutTime: number, rulesPreset: string, isPrivate?: Nullable<boolean>, isChatEnabled?: Nullable<boolean>, rules?: Nullable<any>/* Nullable<com.logic.data.models.serializable.rules.RulesDto> */);
|
|
1643
|
+
get players(): number;
|
|
1644
|
+
get points(): number;
|
|
1645
|
+
get timeoutTime(): number;
|
|
1646
|
+
get rulesPreset(): string;
|
|
1647
|
+
get isPrivate(): Nullable<boolean>;
|
|
1648
|
+
get isChatEnabled(): Nullable<boolean>;
|
|
1649
|
+
get rules(): Nullable<any>/* Nullable<com.logic.data.models.serializable.rules.RulesDto> */;
|
|
1650
|
+
copy(players?: number, points?: number, timeoutTime?: number, rulesPreset?: string, isPrivate?: Nullable<boolean>, isChatEnabled?: Nullable<boolean>, rules?: Nullable<any>/* Nullable<com.logic.data.models.serializable.rules.RulesDto> */): models.RoomConfig;
|
|
1651
|
+
toString(): string;
|
|
1652
|
+
hashCode(): number;
|
|
1653
|
+
equals(other: Nullable<any>): boolean;
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1367
1656
|
export declare namespace games.jass.logic.client.data.models.config {
|
|
1368
1657
|
abstract class GameType {
|
|
1369
1658
|
private constructor();
|
|
@@ -1375,19 +1664,19 @@ export declare namespace games.jass.logic.client.data.models.config {
|
|
|
1375
1664
|
get name(): "SERVER";
|
|
1376
1665
|
get ordinal(): 1;
|
|
1377
1666
|
};
|
|
1378
|
-
static get
|
|
1379
|
-
get name(): "
|
|
1667
|
+
static get P2P_PARTICIPANT(): games.jass.logic.client.data.models.config.GameType & {
|
|
1668
|
+
get name(): "P2P_PARTICIPANT";
|
|
1380
1669
|
get ordinal(): 2;
|
|
1381
1670
|
};
|
|
1382
|
-
static get
|
|
1383
|
-
get name(): "
|
|
1671
|
+
static get P2P_HOST(): games.jass.logic.client.data.models.config.GameType & {
|
|
1672
|
+
get name(): "P2P_HOST";
|
|
1384
1673
|
get ordinal(): 3;
|
|
1385
1674
|
};
|
|
1386
1675
|
static get TUTORIAL(): games.jass.logic.client.data.models.config.GameType & {
|
|
1387
1676
|
get name(): "TUTORIAL";
|
|
1388
1677
|
get ordinal(): 4;
|
|
1389
1678
|
};
|
|
1390
|
-
get name(): "SINGLE" | "SERVER" | "
|
|
1679
|
+
get name(): "SINGLE" | "SERVER" | "P2P_PARTICIPANT" | "P2P_HOST" | "TUTORIAL";
|
|
1391
1680
|
get ordinal(): 0 | 1 | 2 | 3 | 4;
|
|
1392
1681
|
static values(): Array<games.jass.logic.client.data.models.config.GameType>;
|
|
1393
1682
|
static valueOf(value: string): games.jass.logic.client.data.models.config.GameType;
|
|
@@ -1415,17 +1704,18 @@ export declare namespace games.jass.logic.client.data.models.config {
|
|
|
1415
1704
|
}
|
|
1416
1705
|
export declare namespace games.jass.logic.client.data.models.vm {
|
|
1417
1706
|
class GameHistoryViewModel /* extends games.jass.logic.client.data.models.vm.HistoryViewModel */ {
|
|
1418
|
-
constructor(gameId: string, createdAt: any/* kotlinx.datetime.Instant */, gameType: games.jass.logic.client.data.models.config.GameType, users: Array<com.logic.data.models.player.GameUserInfo>, config: games.jass.logic.data.models.table.config.ConfigLite, gameWinners: Nullable<Array<string
|
|
1707
|
+
constructor(gameId: string, createdAt: any/* kotlinx.datetime.Instant */, gameType: games.jass.logic.client.data.models.config.GameType, users: Array<com.logic.data.models.player.GameUserInfo>, config: games.jass.logic.data.models.table.config.ConfigLite, gameWinners: Nullable<Array<string>>, metadata: Nullable<games.jass.logic.data.models.table.history.GameHistoryMetadata>);
|
|
1419
1708
|
get gameId(): string;
|
|
1420
1709
|
get createdAt(): any/* kotlinx.datetime.Instant */;
|
|
1421
1710
|
get gameType(): games.jass.logic.client.data.models.config.GameType;
|
|
1422
1711
|
get users(): Array<com.logic.data.models.player.GameUserInfo>;
|
|
1423
1712
|
get config(): games.jass.logic.data.models.table.config.ConfigLite;
|
|
1424
1713
|
get gameWinners(): Nullable<Array<string>>;
|
|
1425
|
-
|
|
1714
|
+
get metadata(): Nullable<games.jass.logic.data.models.table.history.GameHistoryMetadata>;
|
|
1426
1715
|
equals(other: Nullable<any>): boolean;
|
|
1427
1716
|
hashCode(): number;
|
|
1428
|
-
|
|
1717
|
+
toString(): string;
|
|
1718
|
+
copy(gameId?: string, createdAt?: any/* kotlinx.datetime.Instant */, gameType?: games.jass.logic.client.data.models.config.GameType, users?: Array<com.logic.data.models.player.GameUserInfo>, config?: games.jass.logic.data.models.table.config.ConfigLite, gameWinners?: Nullable<Array<string>>, metadata?: Nullable<games.jass.logic.data.models.table.history.GameHistoryMetadata>): games.jass.logic.client.data.models.vm.GameHistoryViewModel;
|
|
1429
1719
|
}
|
|
1430
1720
|
class RoundEndedHistoryViewModel /* extends games.jass.logic.client.data.models.vm.HistoryViewModel */ {
|
|
1431
1721
|
constructor(gameId: string, roundNumber: number, items: Array<games.jass.logic.data.models.table.history.RoundHistoryItem>, roundContractState: Nullable<games.jass.logic.data.models.player.state.RoundContractState>, roundCommitted: Nullable<Array<string>>, roundWinners: Nullable<Array<string>>, gameEndedHistory: Nullable<games.jass.logic.client.data.models.vm.GameHistoryViewModel>);
|
|
@@ -1490,12 +1780,12 @@ export declare namespace games.jass.logic.client.domain.mechanic.online {
|
|
|
1490
1780
|
}
|
|
1491
1781
|
}
|
|
1492
1782
|
export declare namespace games.jass.logic.client.utils {
|
|
1493
|
-
interface ShowErrorLoggerOutput extends
|
|
1783
|
+
interface ShowErrorLoggerOutput extends games.raspberry.logger.output.LoggerOutput {
|
|
1494
1784
|
skipWarnings: boolean;
|
|
1495
1785
|
gameClientProvider: Nullable<() => any/* games.jass.logic.client.GameClient */>;
|
|
1496
1786
|
readonly __doNotUseOrImplementIt: {
|
|
1497
1787
|
readonly "games.jass.logic.client.utils.ShowErrorLoggerOutput": unique symbol;
|
|
1498
|
-
} &
|
|
1788
|
+
} & games.raspberry.logger.output.LoggerOutput["__doNotUseOrImplementIt"];
|
|
1499
1789
|
}
|
|
1500
1790
|
}
|
|
1501
1791
|
export declare interface GameClientEngineController {
|