raspberry_games_server_game_logic 1.8.398 → 1.8.400
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/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/Logic_Debertz-ai_module.js +483 -334
- package/Logic_Debertz-ai_module.js.map +1 -1
- package/Logic_Debertz-core.js +1114 -971
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +12280 -12238
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +32 -15
- package/Logic_Debertz-game_server.js +1004 -950
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlinx-coroutines-core.js +9 -9
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -284,7 +284,6 @@ export declare namespace com.logic.data.models {
|
|
|
284
284
|
constructor(playerId: string, tag: Nullable<string>);
|
|
285
285
|
get playerId(): string;
|
|
286
286
|
get tag(): Nullable<string>;
|
|
287
|
-
get connectionState(): com.logic.data.models.player.PlayerConnectionState;
|
|
288
287
|
copy(playerId?: string, tag?: Nullable<string>): com.logic.data.models.PlayerLostConnectionReason;
|
|
289
288
|
toString(): string;
|
|
290
289
|
hashCode(): number;
|
|
@@ -299,7 +298,6 @@ export declare namespace com.logic.data.models {
|
|
|
299
298
|
constructor(playerId: string, tag: Nullable<string>);
|
|
300
299
|
get playerId(): string;
|
|
301
300
|
get tag(): Nullable<string>;
|
|
302
|
-
get connectionState(): com.logic.data.models.player.PlayerConnectionState;
|
|
303
301
|
copy(playerId?: string, tag?: Nullable<string>): com.logic.data.models.PlayerTimeoutReason;
|
|
304
302
|
toString(): string;
|
|
305
303
|
hashCode(): number;
|
|
@@ -313,7 +311,6 @@ export declare namespace com.logic.data.models {
|
|
|
313
311
|
class PlayerExitReason extends com.logic.data.models.TerminationGameReason.$metadata$.constructor implements com.logic.data.models.FinishPlayerReason {
|
|
314
312
|
constructor(playerId: string);
|
|
315
313
|
get playerId(): string;
|
|
316
|
-
get connectionState(): com.logic.data.models.player.PlayerConnectionState;
|
|
317
314
|
copy(playerId?: string): com.logic.data.models.PlayerExitReason;
|
|
318
315
|
toString(): string;
|
|
319
316
|
hashCode(): number;
|
|
@@ -326,7 +323,6 @@ export declare namespace com.logic.data.models {
|
|
|
326
323
|
}
|
|
327
324
|
interface FinishPlayerReason {
|
|
328
325
|
readonly playerId: string;
|
|
329
|
-
readonly connectionState: com.logic.data.models.player.PlayerConnectionState;
|
|
330
326
|
readonly __doNotUseOrImplementIt: {
|
|
331
327
|
readonly "com.logic.data.models.FinishPlayerReason": unique symbol;
|
|
332
328
|
};
|
|
@@ -527,26 +523,32 @@ export declare namespace com.logic.data.models.player {
|
|
|
527
523
|
get name(): "LEFT";
|
|
528
524
|
get ordinal(): 3;
|
|
529
525
|
};
|
|
526
|
+
static get LEFT_PERMANENTLY(): com.logic.data.models.player.PlayerConnectionState & {
|
|
527
|
+
get name(): "LEFT_PERMANENTLY";
|
|
528
|
+
get ordinal(): 4;
|
|
529
|
+
};
|
|
530
530
|
static get DISCONNECTING(): com.logic.data.models.player.PlayerConnectionState & {
|
|
531
531
|
get name(): "DISCONNECTING";
|
|
532
|
-
get ordinal():
|
|
532
|
+
get ordinal(): 5;
|
|
533
533
|
};
|
|
534
534
|
static get DELETED(): com.logic.data.models.player.PlayerConnectionState & {
|
|
535
535
|
get name(): "DELETED";
|
|
536
|
-
get ordinal():
|
|
536
|
+
get ordinal(): 6;
|
|
537
537
|
};
|
|
538
|
-
get name(): "LIVE" | "TIMEOUT" | "LOST_CONNECTION" | "LEFT" | "DISCONNECTING" | "DELETED";
|
|
539
|
-
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5;
|
|
538
|
+
get name(): "LIVE" | "TIMEOUT" | "LOST_CONNECTION" | "LEFT" | "LEFT_PERMANENTLY" | "DISCONNECTING" | "DELETED";
|
|
539
|
+
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
540
540
|
get isLive(): boolean;
|
|
541
541
|
get isTimeOut(): boolean;
|
|
542
542
|
get isLostConnection(): boolean;
|
|
543
543
|
get isLeft(): boolean;
|
|
544
|
+
get isLeftPermanently(): boolean;
|
|
544
545
|
get isDeleted(): boolean;
|
|
545
546
|
get isDisconnecting(): boolean;
|
|
546
547
|
get isNotAlive(): boolean;
|
|
547
|
-
get
|
|
548
|
+
get isVisibleDisconnectedReason(): boolean;
|
|
548
549
|
get isClientDisconnectReason(): boolean;
|
|
549
550
|
get isServerDisconnectReason(): boolean;
|
|
551
|
+
get canReconnect(): boolean;
|
|
550
552
|
static values(): Array<com.logic.data.models.player.PlayerConnectionState>;
|
|
551
553
|
static valueOf(value: string): com.logic.data.models.player.PlayerConnectionState;
|
|
552
554
|
}
|
|
@@ -760,6 +762,18 @@ export declare namespace games.jass.logic.data.models {
|
|
|
760
762
|
namespace EngineBotConfig.$metadata$ {
|
|
761
763
|
const constructor: abstract new () => EngineBotConfig;
|
|
762
764
|
}
|
|
765
|
+
namespace EngineBotConfig {
|
|
766
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
767
|
+
private constructor();
|
|
768
|
+
}
|
|
769
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
770
|
+
namespace Companion.$metadata$ {
|
|
771
|
+
abstract class constructor {
|
|
772
|
+
getServerEngineMode(enableBotChat: boolean, openAiApiKey: Nullable<string>): games.jass.logic.data.models.EngineBotConfig;
|
|
773
|
+
private constructor();
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
}
|
|
763
777
|
}
|
|
764
778
|
export declare namespace games.jass.logic.data.models {
|
|
765
779
|
class EngineLogicConfig {
|
|
@@ -901,17 +915,18 @@ export declare namespace games.jass.logic.data.models.config {
|
|
|
901
915
|
}
|
|
902
916
|
export declare namespace games.jass.logic.data.models.config {
|
|
903
917
|
class ServerReduxConfig {
|
|
904
|
-
constructor(finishGameWhenNotLiveStrategy?: any/* games.jass.logic.data.models.config.FinishGameWhenNotLiveStrategy */, waitForPlayerToReconnect?: boolean, waitForPlayerToReconnectTimeOutMillis?: number, closeIfBotsAtFinish?: boolean, botReplacesPlayerAfterTimeout?: boolean, enabledCombinedEvents?: boolean, delayToAskBotMillis?: number, combinedEventsIntervalMillis?: number, serverStateUpdateIntervalMillis?: number);
|
|
918
|
+
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);
|
|
905
919
|
get finishGameWhenNotLiveStrategy(): any/* games.jass.logic.data.models.config.FinishGameWhenNotLiveStrategy */;
|
|
906
920
|
get waitForPlayerToReconnect(): boolean;
|
|
907
921
|
get waitForPlayerToReconnectTimeOutMillis(): number;
|
|
922
|
+
get reconnectionCheckDurationMillis(): number;
|
|
908
923
|
get closeIfBotsAtFinish(): boolean;
|
|
909
924
|
get botReplacesPlayerAfterTimeout(): boolean;
|
|
910
925
|
get enabledCombinedEvents(): boolean;
|
|
911
926
|
get delayToAskBotMillis(): number;
|
|
912
927
|
get combinedEventsIntervalMillis(): number;
|
|
913
928
|
get serverStateUpdateIntervalMillis(): number;
|
|
914
|
-
copy(finishGameWhenNotLiveStrategy?: any/* games.jass.logic.data.models.config.FinishGameWhenNotLiveStrategy */, waitForPlayerToReconnect?: boolean, waitForPlayerToReconnectTimeOutMillis?: number, closeIfBotsAtFinish?: boolean, botReplacesPlayerAfterTimeout?: boolean, enabledCombinedEvents?: boolean, delayToAskBotMillis?: number, combinedEventsIntervalMillis?: number, serverStateUpdateIntervalMillis?: number): games.jass.logic.data.models.config.ServerReduxConfig;
|
|
929
|
+
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;
|
|
915
930
|
toString(): string;
|
|
916
931
|
hashCode(): number;
|
|
917
932
|
equals(other: Nullable<any>): boolean;
|
|
@@ -2793,10 +2808,11 @@ export declare namespace di {
|
|
|
2793
2808
|
}
|
|
2794
2809
|
export declare namespace games.jass.logic.server.data.models.config {
|
|
2795
2810
|
class ServerConfig {
|
|
2796
|
-
constructor(fromRound: Nullable<number>,
|
|
2811
|
+
constructor(fromRound: Nullable<number>, shouldFinishGameWhenDeploy?: boolean, shouldFinishGameWithBots?: boolean);
|
|
2797
2812
|
get fromRound(): Nullable<number>;
|
|
2798
|
-
get
|
|
2799
|
-
|
|
2813
|
+
get shouldFinishGameWhenDeploy(): boolean;
|
|
2814
|
+
get shouldFinishGameWithBots(): boolean;
|
|
2815
|
+
copy(fromRound?: Nullable<number>, shouldFinishGameWhenDeploy?: boolean, shouldFinishGameWithBots?: boolean): games.jass.logic.server.data.models.config.ServerConfig;
|
|
2800
2816
|
toString(): string;
|
|
2801
2817
|
hashCode(): number;
|
|
2802
2818
|
equals(other: Nullable<any>): boolean;
|
|
@@ -2924,6 +2940,7 @@ export declare namespace games.jass.logic.server.data.models.state {
|
|
|
2924
2940
|
export declare namespace games.jass.logic.server.domain {
|
|
2925
2941
|
interface ServerGameEngineContract extends games.jass.logic.GameStoreContract {
|
|
2926
2942
|
readonly metadata: games.jass.logic.server.data.models.RoomMetadata;
|
|
2943
|
+
canReconnectPlayer(player: string): boolean;
|
|
2927
2944
|
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;
|
|
2928
2945
|
roomOnContinueFromState(roomId: string, state: games.jass.logic.data.models.table.TableStateWithActions): void;
|
|
2929
2946
|
roomOnContinueFromRound(roomId: string, tableLite: games.jass.logic.data.models.table.JassTableLite): void;
|
|
@@ -2933,7 +2950,7 @@ export declare namespace games.jass.logic.server.domain {
|
|
|
2933
2950
|
roomOnDelete(newRid?: Nullable<string>): void;
|
|
2934
2951
|
playerLostConnection(playerId: string): void;
|
|
2935
2952
|
playerLive(playerId: string): void;
|
|
2936
|
-
playerLeft(playerId: string): void;
|
|
2953
|
+
playerLeft(playerId: string, permanently?: boolean): void;
|
|
2937
2954
|
fromClientEvent(action: games.jass.logic.redux.actions.client.from.FromClientAction): void;
|
|
2938
2955
|
subscribeToClientAction(subscriber: (p0: games.jass.logic.redux.actions.client.to.ToClientAction) => void): void;
|
|
2939
2956
|
subscribeServerStateUpdate(subscriber: (p0: games.jass.logic.server.data.models.state.ServerStateUpdate) => void): void;
|