raspberry_games_server_game_logic 1.8.413 → 1.8.415
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-ai_module.js +309 -309
- package/Logic_Debertz-core.js +822 -784
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +11141 -11554
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +22 -14
- package/Logic_Debertz-game_server.js +1817 -1172
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +6 -6
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
|
@@ -507,36 +507,40 @@ export declare namespace com.logic.data.models.player {
|
|
|
507
507
|
export declare namespace com.logic.data.models.player {
|
|
508
508
|
abstract class PlayerConnectionState {
|
|
509
509
|
private constructor();
|
|
510
|
+
static get WAITING(): com.logic.data.models.player.PlayerConnectionState & {
|
|
511
|
+
get name(): "WAITING";
|
|
512
|
+
get ordinal(): 0;
|
|
513
|
+
};
|
|
510
514
|
static get LIVE(): com.logic.data.models.player.PlayerConnectionState & {
|
|
511
515
|
get name(): "LIVE";
|
|
512
|
-
get ordinal():
|
|
516
|
+
get ordinal(): 1;
|
|
513
517
|
};
|
|
514
518
|
static get TIMEOUT(): com.logic.data.models.player.PlayerConnectionState & {
|
|
515
519
|
get name(): "TIMEOUT";
|
|
516
|
-
get ordinal():
|
|
520
|
+
get ordinal(): 2;
|
|
517
521
|
};
|
|
518
522
|
static get LOST_CONNECTION(): com.logic.data.models.player.PlayerConnectionState & {
|
|
519
523
|
get name(): "LOST_CONNECTION";
|
|
520
|
-
get ordinal():
|
|
524
|
+
get ordinal(): 3;
|
|
521
525
|
};
|
|
522
526
|
static get LEFT(): com.logic.data.models.player.PlayerConnectionState & {
|
|
523
527
|
get name(): "LEFT";
|
|
524
|
-
get ordinal():
|
|
528
|
+
get ordinal(): 4;
|
|
525
529
|
};
|
|
526
530
|
static get LEFT_PERMANENTLY(): com.logic.data.models.player.PlayerConnectionState & {
|
|
527
531
|
get name(): "LEFT_PERMANENTLY";
|
|
528
|
-
get ordinal():
|
|
532
|
+
get ordinal(): 5;
|
|
529
533
|
};
|
|
530
534
|
static get DISCONNECTING(): com.logic.data.models.player.PlayerConnectionState & {
|
|
531
535
|
get name(): "DISCONNECTING";
|
|
532
|
-
get ordinal():
|
|
536
|
+
get ordinal(): 6;
|
|
533
537
|
};
|
|
534
538
|
static get DELETED(): com.logic.data.models.player.PlayerConnectionState & {
|
|
535
539
|
get name(): "DELETED";
|
|
536
|
-
get ordinal():
|
|
540
|
+
get ordinal(): 7;
|
|
537
541
|
};
|
|
538
|
-
get name(): "LIVE" | "TIMEOUT" | "LOST_CONNECTION" | "LEFT" | "LEFT_PERMANENTLY" | "DISCONNECTING" | "DELETED";
|
|
539
|
-
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
542
|
+
get name(): "WAITING" | "LIVE" | "TIMEOUT" | "LOST_CONNECTION" | "LEFT" | "LEFT_PERMANENTLY" | "DISCONNECTING" | "DELETED";
|
|
543
|
+
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
540
544
|
get isLive(): boolean;
|
|
541
545
|
get isTimeOut(): boolean;
|
|
542
546
|
get isLostConnection(): boolean;
|
|
@@ -549,6 +553,7 @@ export declare namespace com.logic.data.models.player {
|
|
|
549
553
|
get isClientDisconnectReason(): boolean;
|
|
550
554
|
get isServerDisconnectReason(): boolean;
|
|
551
555
|
get canReconnect(): boolean;
|
|
556
|
+
get canUpdateRating(): boolean;
|
|
552
557
|
static values(): Array<com.logic.data.models.player.PlayerConnectionState>;
|
|
553
558
|
static valueOf(value: string): com.logic.data.models.player.PlayerConnectionState;
|
|
554
559
|
}
|
|
@@ -934,8 +939,9 @@ export declare namespace games.jass.logic.data.models.config {
|
|
|
934
939
|
}
|
|
935
940
|
export declare namespace games.jass.logic.data.models.config {
|
|
936
941
|
class ServerReduxConfig {
|
|
937
|
-
constructor(finishGameWhenNotLiveStrategy?: any/* games.jass.logic.data.models.config.FinishGameWhenNotLiveStrategy */, waitForPlayerToReconnect?: boolean, waitForPlayerToReconnectTimeOutMillis?: number, reconnectionCheckDurationMillis?: number, closeIfBotsAtFinish?: boolean, botReplacesPlayerAfterTimeout?: boolean, enabledCombinedEvents?: boolean, delayToAskBotMillis?: number, combinedEventsIntervalMillis?: number, serverStateUpdateIntervalMillis?: number);
|
|
942
|
+
constructor(finishGameWhenNotLiveStrategy?: any/* games.jass.logic.data.models.config.FinishGameWhenNotLiveStrategy */, waitForPlayerToConnectOnStart?: boolean, waitForPlayerToReconnect?: boolean, waitForPlayerToReconnectTimeOutMillis?: number, reconnectionCheckDurationMillis?: number, closeIfBotsAtFinish?: boolean, botReplacesPlayerAfterTimeout?: boolean, enabledCombinedEvents?: boolean, delayToAskBotMillis?: number, combinedEventsIntervalMillis?: number, serverStateUpdateIntervalMillis?: number);
|
|
938
943
|
get finishGameWhenNotLiveStrategy(): any/* games.jass.logic.data.models.config.FinishGameWhenNotLiveStrategy */;
|
|
944
|
+
get waitForPlayerToConnectOnStart(): boolean;
|
|
939
945
|
get waitForPlayerToReconnect(): boolean;
|
|
940
946
|
get waitForPlayerToReconnectTimeOutMillis(): number;
|
|
941
947
|
get reconnectionCheckDurationMillis(): number;
|
|
@@ -945,7 +951,7 @@ export declare namespace games.jass.logic.data.models.config {
|
|
|
945
951
|
get delayToAskBotMillis(): number;
|
|
946
952
|
get combinedEventsIntervalMillis(): number;
|
|
947
953
|
get serverStateUpdateIntervalMillis(): number;
|
|
948
|
-
copy(finishGameWhenNotLiveStrategy?: any/* games.jass.logic.data.models.config.FinishGameWhenNotLiveStrategy */, waitForPlayerToReconnect?: boolean, waitForPlayerToReconnectTimeOutMillis?: number, reconnectionCheckDurationMillis?: number, closeIfBotsAtFinish?: boolean, botReplacesPlayerAfterTimeout?: boolean, enabledCombinedEvents?: boolean, delayToAskBotMillis?: number, combinedEventsIntervalMillis?: number, serverStateUpdateIntervalMillis?: number): games.jass.logic.data.models.config.ServerReduxConfig;
|
|
954
|
+
copy(finishGameWhenNotLiveStrategy?: any/* games.jass.logic.data.models.config.FinishGameWhenNotLiveStrategy */, waitForPlayerToConnectOnStart?: boolean, waitForPlayerToReconnect?: boolean, waitForPlayerToReconnectTimeOutMillis?: number, reconnectionCheckDurationMillis?: number, closeIfBotsAtFinish?: boolean, botReplacesPlayerAfterTimeout?: boolean, enabledCombinedEvents?: boolean, delayToAskBotMillis?: number, combinedEventsIntervalMillis?: number, serverStateUpdateIntervalMillis?: number): games.jass.logic.data.models.config.ServerReduxConfig;
|
|
949
955
|
toString(): string;
|
|
950
956
|
hashCode(): number;
|
|
951
957
|
equals(other: Nullable<any>): boolean;
|
|
@@ -2989,7 +2995,8 @@ export declare namespace games.jass.logic.server.data.models.state {
|
|
|
2989
2995
|
export declare namespace games.jass.logic.server.domain {
|
|
2990
2996
|
interface ServerGameEngineContract extends games.jass.logic.GameStoreContract {
|
|
2991
2997
|
readonly metadata: games.jass.logic.server.data.models.RoomMetadata;
|
|
2992
|
-
canReconnectPlayer(
|
|
2998
|
+
canReconnectPlayer(playerId: string): boolean;
|
|
2999
|
+
canUpdatePlayerRating(playerId: string): boolean;
|
|
2993
3000
|
roomOnCreate(roomId: string, gameCreatorId: string, config: games.jass.logic.data.models.table.config.Config, usersArray: Array<com.logic.data.models.player.GameUserInfo>, transition?: Nullable<games.jass.logic.redux.actions.mechanic.GameTransition>, spectators?: Array<com.logic.data.models.player.GameUserInfo>): void;
|
|
2994
3001
|
roomOnContinueFromState(roomId: string, state: games.jass.logic.data.models.table.TableStateWithActions): void;
|
|
2995
3002
|
roomOnContinueFromRound(roomId: string, tableLite: games.jass.logic.data.models.table.JassTableLite): void;
|
|
@@ -3015,10 +3022,11 @@ export declare namespace games.jass.logic.server.domain {
|
|
|
3015
3022
|
}
|
|
3016
3023
|
export declare namespace games.jass.logic.server.redux.state {
|
|
3017
3024
|
class ServerStatePayload implements games.jass.logic.redux.AppStatePayload {
|
|
3018
|
-
constructor(config: games.jass.logic.server.data.models.config.ServerConfig, metadata: games.jass.logic.server.data.models.RoomMetadata);
|
|
3025
|
+
constructor(config: games.jass.logic.server.data.models.config.ServerConfig, metadata: games.jass.logic.server.data.models.RoomMetadata, connectedPlayers: kotlin.collections.KtList<string>);
|
|
3019
3026
|
get config(): games.jass.logic.server.data.models.config.ServerConfig;
|
|
3020
3027
|
get metadata(): games.jass.logic.server.data.models.RoomMetadata;
|
|
3021
|
-
|
|
3028
|
+
get connectedPlayers(): kotlin.collections.KtList<string>;
|
|
3029
|
+
copy(config?: games.jass.logic.server.data.models.config.ServerConfig, metadata?: games.jass.logic.server.data.models.RoomMetadata, connectedPlayers?: kotlin.collections.KtList<string>): games.jass.logic.server.redux.state.ServerStatePayload;
|
|
3022
3030
|
toString(): string;
|
|
3023
3031
|
hashCode(): number;
|
|
3024
3032
|
equals(other: Nullable<any>): boolean;
|