game_client_logic_deb 1.8.106 → 1.8.110
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 +815 -869
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +8951 -8514
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +49 -11
- package/Logic_Debertz-game_client.js +3159 -2725
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +6 -6
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/package.json +1 -1
|
@@ -157,15 +157,42 @@ export declare namespace com.logic.data.models {
|
|
|
157
157
|
}
|
|
158
158
|
/* @ts-ignore: https://github.com/microsoft/TypeScript/issues/4628 */
|
|
159
159
|
class GameErrorReason extends com.logic.data.models.TerminationGameReason {
|
|
160
|
-
constructor(reason:
|
|
161
|
-
get reason():
|
|
162
|
-
copy(reason?:
|
|
160
|
+
constructor(reason: com.logic.data.models.GameErrorReason.Reason);
|
|
161
|
+
get reason(): com.logic.data.models.GameErrorReason.Reason;
|
|
162
|
+
copy(reason?: com.logic.data.models.GameErrorReason.Reason): com.logic.data.models.GameErrorReason;
|
|
163
163
|
toString(): string;
|
|
164
164
|
hashCode(): number;
|
|
165
165
|
equals(other: Nullable<any>): boolean;
|
|
166
166
|
static get Companion(): {
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
|
+
namespace GameErrorReason {
|
|
170
|
+
abstract class Reason {
|
|
171
|
+
private constructor();
|
|
172
|
+
static get SERVER_ERROR(): com.logic.data.models.GameErrorReason.Reason & {
|
|
173
|
+
get name(): "SERVER_ERROR";
|
|
174
|
+
get ordinal(): 0;
|
|
175
|
+
};
|
|
176
|
+
static get INTERNAL_ERROR(): com.logic.data.models.GameErrorReason.Reason & {
|
|
177
|
+
get name(): "INTERNAL_ERROR";
|
|
178
|
+
get ordinal(): 1;
|
|
179
|
+
};
|
|
180
|
+
static get GAME_NOT_EXISTS(): com.logic.data.models.GameErrorReason.Reason & {
|
|
181
|
+
get name(): "GAME_NOT_EXISTS";
|
|
182
|
+
get ordinal(): 2;
|
|
183
|
+
};
|
|
184
|
+
static get WRONG_PLAYER_TURN(): com.logic.data.models.GameErrorReason.Reason & {
|
|
185
|
+
get name(): "WRONG_PLAYER_TURN";
|
|
186
|
+
get ordinal(): 3;
|
|
187
|
+
};
|
|
188
|
+
get name(): "SERVER_ERROR" | "INTERNAL_ERROR" | "GAME_NOT_EXISTS" | "WRONG_PLAYER_TURN";
|
|
189
|
+
get ordinal(): 0 | 1 | 2 | 3;
|
|
190
|
+
static values(): Array<com.logic.data.models.GameErrorReason.Reason>;
|
|
191
|
+
static valueOf(value: string): com.logic.data.models.GameErrorReason.Reason;
|
|
192
|
+
static get Companion(): {
|
|
193
|
+
} & any/* kotlinx.serialization.internal.SerializerFactory */;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
169
196
|
const WaitingForConnectionReason: {
|
|
170
197
|
toString(): string;
|
|
171
198
|
hashCode(): number;
|
|
@@ -486,16 +513,17 @@ export declare namespace com.debertz.logic.data.models {
|
|
|
486
513
|
}
|
|
487
514
|
export declare namespace com.debertz.logic.data.models {
|
|
488
515
|
class EngineLogicConfig {
|
|
489
|
-
constructor(supportBackwardActions?: boolean,
|
|
516
|
+
constructor(supportBackwardActions?: boolean, validateTestMode?: boolean, verboseGameHistory?: boolean);
|
|
490
517
|
get supportBackwardActions(): boolean;
|
|
491
|
-
get supportPlayerTurnActions(): boolean;
|
|
492
518
|
get validateTestMode(): boolean;
|
|
493
|
-
|
|
519
|
+
get verboseGameHistory(): boolean;
|
|
520
|
+
copy(supportBackwardActions?: boolean, validateTestMode?: boolean, verboseGameHistory?: boolean): com.debertz.logic.data.models.EngineLogicConfig;
|
|
494
521
|
toString(): string;
|
|
495
522
|
hashCode(): number;
|
|
496
523
|
equals(other: Nullable<any>): boolean;
|
|
497
524
|
static get Companion(): {
|
|
498
525
|
getClientEngineTestMode(): com.debertz.logic.data.models.EngineLogicConfig;
|
|
526
|
+
getServerEngineMode(isProduction: boolean, supportBackwardActions?: boolean): com.debertz.logic.data.models.EngineLogicConfig;
|
|
499
527
|
};
|
|
500
528
|
}
|
|
501
529
|
}
|
|
@@ -533,12 +561,21 @@ export declare namespace com.debertz.logic.data.models {
|
|
|
533
561
|
get gamesCount(): number;
|
|
534
562
|
get roundsCountTotal(): number;
|
|
535
563
|
get playerAnalytics(): kotlin.collections.KtList<com.debertz.logic.data.models.player.hand.PlayerAnalytics>;
|
|
536
|
-
get allCombinationCounts():
|
|
564
|
+
get allCombinationCounts(): Array<com.debertz.logic.data.models.CombinationPair>;
|
|
537
565
|
copy(duration?: any/* kotlin.time.Duration */, gamesCount?: number, roundsCountTotal?: number, playerAnalytics?: kotlin.collections.KtList<com.debertz.logic.data.models.player.hand.PlayerAnalytics>): com.debertz.logic.data.models.GameSessionAnalytics;
|
|
538
566
|
toString(): string;
|
|
539
567
|
hashCode(): number;
|
|
540
568
|
equals(other: Nullable<any>): boolean;
|
|
541
569
|
}
|
|
570
|
+
class CombinationPair {
|
|
571
|
+
constructor(combinationType: com.debertz.logic.data.models.table.combinations.CombinationType, count: number);
|
|
572
|
+
get combinationType(): com.debertz.logic.data.models.table.combinations.CombinationType;
|
|
573
|
+
get count(): number;
|
|
574
|
+
copy(combinationType?: com.debertz.logic.data.models.table.combinations.CombinationType, count?: number): com.debertz.logic.data.models.CombinationPair;
|
|
575
|
+
toString(): string;
|
|
576
|
+
hashCode(): number;
|
|
577
|
+
equals(other: Nullable<any>): boolean;
|
|
578
|
+
}
|
|
542
579
|
}
|
|
543
580
|
export declare namespace com.debertz.logic.data.models.player.hand {
|
|
544
581
|
class CombinationRecord {
|
|
@@ -1153,12 +1190,13 @@ export declare namespace com.debertz.logic.redux.actions.mechanic {
|
|
|
1153
1190
|
}
|
|
1154
1191
|
/* @ts-ignore: https://github.com/microsoft/TypeScript/issues/4628 */
|
|
1155
1192
|
class FinishingGameMechanicAction extends com.debertz.logic.redux.actions.mechanic.MechanicAction implements com.debertz.logic.redux.actions.mechanic.TerminatedAction {
|
|
1156
|
-
constructor(reason: com.logic.data.models.TerminationGameReason, sessionAnalytics: Nullable<com.debertz.logic.data.models.GameSessionAnalytics> | undefined, isGameFinished: boolean);
|
|
1193
|
+
constructor(reason: com.logic.data.models.TerminationGameReason, sessionAnalytics: Nullable<com.debertz.logic.data.models.GameSessionAnalytics> | undefined, isGameFinished: boolean, gameHistory?: Nullable<com.debertz.logic.data.models.table.history.GameHistory>);
|
|
1157
1194
|
get reason(): com.logic.data.models.TerminationGameReason;
|
|
1158
1195
|
get sessionAnalytics(): Nullable<com.debertz.logic.data.models.GameSessionAnalytics>;
|
|
1159
1196
|
get isGameFinished(): boolean;
|
|
1197
|
+
get gameHistory(): Nullable<com.debertz.logic.data.models.table.history.GameHistory>;
|
|
1160
1198
|
toString(): string;
|
|
1161
|
-
copy(reason?: com.logic.data.models.TerminationGameReason, sessionAnalytics?: Nullable<com.debertz.logic.data.models.GameSessionAnalytics>, isGameFinished?: boolean): com.debertz.logic.redux.actions.mechanic.FinishingGameMechanicAction;
|
|
1199
|
+
copy(reason?: com.logic.data.models.TerminationGameReason, sessionAnalytics?: Nullable<com.debertz.logic.data.models.GameSessionAnalytics>, isGameFinished?: boolean, gameHistory?: Nullable<com.debertz.logic.data.models.table.history.GameHistory>): com.debertz.logic.redux.actions.mechanic.FinishingGameMechanicAction;
|
|
1162
1200
|
hashCode(): number;
|
|
1163
1201
|
equals(other: Nullable<any>): boolean;
|
|
1164
1202
|
get actionTag(): string;
|
|
@@ -1234,7 +1272,7 @@ export declare interface ParserHelper {
|
|
|
1234
1272
|
encodeFromClientEvent(action: com.debertz.logic.redux.actions.client.from.FromClientAction): string;
|
|
1235
1273
|
decodeFromClientEvent(fromPlayerId: string, json: string): com.debertz.logic.redux.actions.client.from.FromClientAction;
|
|
1236
1274
|
encodeToClientEvent(action: com.debertz.logic.redux.actions.client.to.ToClientAction): string;
|
|
1237
|
-
decodeToClientEventToMechanicAction(playerId: string, engine: com.debertz.logic.GameStoreContract, json: string): com.debertz.logic.redux.actions.mechanic.MechanicAction
|
|
1275
|
+
decodeToClientEventToMechanicAction(playerId: string, engine: com.debertz.logic.GameStoreContract, json: string): Array<com.debertz.logic.redux.actions.mechanic.MechanicAction>;
|
|
1238
1276
|
encodeGameRound(round: com.debertz.logic.data.models.table.history.RoundHistory): string;
|
|
1239
1277
|
encodeGameRoundItems(round: com.debertz.logic.data.models.table.history.RoundHistory): string;
|
|
1240
1278
|
readonly __doNotUseOrImplementIt: {
|
|
@@ -1360,7 +1398,7 @@ export declare namespace com.debertz.logic.client.domain.mechanic.online {
|
|
|
1360
1398
|
interface OnlineGameMechanic extends com.debertz.logic.client.domain.mechanic.GameMechanic {
|
|
1361
1399
|
readonly currentPlayerId: string;
|
|
1362
1400
|
observeFromClientAction(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.redux.actions.client.from.FromClientAction> */;
|
|
1363
|
-
|
|
1401
|
+
mechanicActions(actions: Array<com.debertz.logic.redux.actions.mechanic.MechanicAction>): void;
|
|
1364
1402
|
readonly __doNotUseOrImplementIt: {
|
|
1365
1403
|
readonly "com.debertz.logic.client.domain.mechanic.online.OnlineGameMechanic": unique symbol;
|
|
1366
1404
|
} & com.debertz.logic.client.domain.mechanic.GameMechanic["__doNotUseOrImplementIt"];
|