raspberry_games_server_game_logic 1.8.411 → 1.8.414
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 +314 -314
- package/Logic_Debertz-core.js +384 -327
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +13960 -13681
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +67 -14
- package/Logic_Debertz-game_server.js +1695 -1131
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +8 -8
- package/kotlinx-coroutines-core.js.map +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;
|
|
@@ -568,6 +572,23 @@ export declare namespace com.logic.data.models.player {
|
|
|
568
572
|
}
|
|
569
573
|
}
|
|
570
574
|
}
|
|
575
|
+
export declare namespace com.logic.data.models.player {
|
|
576
|
+
class Team {
|
|
577
|
+
constructor(playerIds: kotlin.collections.KtList<string>);
|
|
578
|
+
get playerIds(): kotlin.collections.KtList<string>;
|
|
579
|
+
containsPlayer(playerId: string): boolean;
|
|
580
|
+
get first(): string;
|
|
581
|
+
get second(): string;
|
|
582
|
+
copy(playerIds?: kotlin.collections.KtList<string>): com.logic.data.models.player.Team;
|
|
583
|
+
toString(): string;
|
|
584
|
+
hashCode(): number;
|
|
585
|
+
equals(other: Nullable<any>): boolean;
|
|
586
|
+
}
|
|
587
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
588
|
+
namespace Team.$metadata$ {
|
|
589
|
+
const constructor: abstract new () => Team;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
571
592
|
export declare namespace com.logic.redux.actions {
|
|
572
593
|
interface BufferedAction extends com.logic.redux.store.definitions.Action {
|
|
573
594
|
readonly __doNotUseOrImplementIt: {
|
|
@@ -917,8 +938,9 @@ export declare namespace games.jass.logic.data.models.config {
|
|
|
917
938
|
}
|
|
918
939
|
export declare namespace games.jass.logic.data.models.config {
|
|
919
940
|
class ServerReduxConfig {
|
|
920
|
-
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);
|
|
941
|
+
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);
|
|
921
942
|
get finishGameWhenNotLiveStrategy(): any/* games.jass.logic.data.models.config.FinishGameWhenNotLiveStrategy */;
|
|
943
|
+
get waitForPlayerToConnectOnStart(): boolean;
|
|
922
944
|
get waitForPlayerToReconnect(): boolean;
|
|
923
945
|
get waitForPlayerToReconnectTimeOutMillis(): number;
|
|
924
946
|
get reconnectionCheckDurationMillis(): number;
|
|
@@ -928,7 +950,7 @@ export declare namespace games.jass.logic.data.models.config {
|
|
|
928
950
|
get delayToAskBotMillis(): number;
|
|
929
951
|
get combinedEventsIntervalMillis(): number;
|
|
930
952
|
get serverStateUpdateIntervalMillis(): number;
|
|
931
|
-
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;
|
|
953
|
+
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;
|
|
932
954
|
toString(): string;
|
|
933
955
|
hashCode(): number;
|
|
934
956
|
equals(other: Nullable<any>): boolean;
|
|
@@ -1312,6 +1334,17 @@ export declare namespace games.jass.logic.data.models.player.points {
|
|
|
1312
1334
|
const constructor: abstract new () => PointsDistributeMode;
|
|
1313
1335
|
}
|
|
1314
1336
|
}
|
|
1337
|
+
export declare namespace games.jass.logic.data.models.player.state {
|
|
1338
|
+
class PlayerLeftResult {
|
|
1339
|
+
constructor(playerAchievements: Nullable<games.jass.logic.data.models.player.achievements.PlayerAchievements>, playerGameAnalytics: Nullable<games.jass.logic.data.models.player.analytics.PlayerAnalytics>);
|
|
1340
|
+
get playerAchievements(): Nullable<games.jass.logic.data.models.player.achievements.PlayerAchievements>;
|
|
1341
|
+
get playerGameAnalytics(): Nullable<games.jass.logic.data.models.player.analytics.PlayerAnalytics>;
|
|
1342
|
+
}
|
|
1343
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1344
|
+
namespace PlayerLeftResult.$metadata$ {
|
|
1345
|
+
const constructor: abstract new () => PlayerLeftResult;
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1315
1348
|
export declare namespace games.jass.logic.data.models.player.state {
|
|
1316
1349
|
abstract class RoundContractState {
|
|
1317
1350
|
private constructor();
|
|
@@ -2709,6 +2742,24 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
|
|
|
2709
2742
|
readonly "games.jass.logic.redux.actions.mechanic.TerminatedAction": unique symbol;
|
|
2710
2743
|
} & com.logic.redux.store.definitions.Action["__doNotUseOrImplementIt"];
|
|
2711
2744
|
}
|
|
2745
|
+
class TeamsDataMechanicAction extends games.jass.logic.redux.actions.mechanic.MechanicAction.$metadata$.constructor implements com.logic.redux.store.definitions.Action, com.logic.redux.actions.BufferedAction, games.jass.logic.redux.actions.mechanic.PlayerOrderChangeMechanicAction/*, games.jass.logic.redux.actions.mechanic.InSceneAction, games.jass.logic.redux.actions.mechanic.PlayerTurnAnswerAction, com.logic.redux.actions.InterceptableAction */ {
|
|
2746
|
+
constructor(team1: com.logic.data.models.player.Team, team2: com.logic.data.models.player.Team, aid?: Nullable<string>);
|
|
2747
|
+
get team1(): com.logic.data.models.player.Team;
|
|
2748
|
+
get team2(): com.logic.data.models.player.Team;
|
|
2749
|
+
get aid(): Nullable<string>;
|
|
2750
|
+
get usersOrder(): kotlin.collections.KtList<string>;
|
|
2751
|
+
getSelectedPlayerId(gameCreatorPlayerId: string): string;
|
|
2752
|
+
copy(team1?: com.logic.data.models.player.Team, team2?: com.logic.data.models.player.Team, aid?: Nullable<string>): games.jass.logic.redux.actions.mechanic.TeamsDataMechanicAction;
|
|
2753
|
+
toString(): string;
|
|
2754
|
+
hashCode(): number;
|
|
2755
|
+
equals(other: Nullable<any>): boolean;
|
|
2756
|
+
get actionTag(): string;
|
|
2757
|
+
readonly __doNotUseOrImplementIt: games.jass.logic.redux.actions.mechanic.MechanicAction["__doNotUseOrImplementIt"] & com.logic.redux.store.definitions.Action["__doNotUseOrImplementIt"] & com.logic.redux.actions.BufferedAction["__doNotUseOrImplementIt"] & games.jass.logic.redux.actions.mechanic.PlayerOrderChangeMechanicAction["__doNotUseOrImplementIt"];
|
|
2758
|
+
}
|
|
2759
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
2760
|
+
namespace TeamsDataMechanicAction.$metadata$ {
|
|
2761
|
+
const constructor: abstract new () => TeamsDataMechanicAction;
|
|
2762
|
+
}
|
|
2712
2763
|
class PlayerConnectionChangedMechanicAction extends games.jass.logic.redux.actions.mechanic.MechanicAction.$metadata$.constructor implements com.logic.redux.actions.validation.NotValidateIfGameFinished {
|
|
2713
2764
|
constructor(playerId: string, state: com.logic.data.models.player.PlayerConnectionState, causeState?: Nullable<com.logic.data.models.player.PlayerConnectionState>, isNoneActivePlayers?: boolean, reconnectUntilTime?: Nullable<string>, aid?: Nullable<string>);
|
|
2714
2765
|
get playerId(): string;
|
|
@@ -2791,6 +2842,7 @@ export declare interface RatingHelper {
|
|
|
2791
2842
|
isValidRatingForLeague(league: games.jass.logic.data.models.leagues.League, rating: number): boolean;
|
|
2792
2843
|
mapRatingToLeague(rating: number): games.jass.logic.data.models.leagues.League;
|
|
2793
2844
|
getLeaguesConfig(): games.jass.logic.data.models.leagues.LeaguesConfig;
|
|
2845
|
+
getLeaguesConfigJson(): string;
|
|
2794
2846
|
readonly __doNotUseOrImplementIt: {
|
|
2795
2847
|
readonly RatingHelper: unique symbol;
|
|
2796
2848
|
};
|
|
@@ -2952,7 +3004,7 @@ export declare namespace games.jass.logic.server.domain {
|
|
|
2952
3004
|
roomOnDelete(newRid?: Nullable<string>): void;
|
|
2953
3005
|
playerLostConnection(playerId: string): void;
|
|
2954
3006
|
playerLive(playerId: string): void;
|
|
2955
|
-
playerLeft(playerId: string, permanently?: boolean):
|
|
3007
|
+
playerLeft(playerId: string, permanently?: boolean): games.jass.logic.data.models.player.state.PlayerLeftResult;
|
|
2956
3008
|
fromClientEvent(action: games.jass.logic.redux.actions.client.from.FromClientAction): void;
|
|
2957
3009
|
subscribeToClientAction(subscriber: (p0: games.jass.logic.redux.actions.client.to.ToClientAction) => void): void;
|
|
2958
3010
|
subscribeServerStateUpdate(subscriber: (p0: games.jass.logic.server.data.models.state.ServerStateUpdate) => void): void;
|
|
@@ -2968,10 +3020,11 @@ export declare namespace games.jass.logic.server.domain {
|
|
|
2968
3020
|
}
|
|
2969
3021
|
export declare namespace games.jass.logic.server.redux.state {
|
|
2970
3022
|
class ServerStatePayload implements games.jass.logic.redux.AppStatePayload {
|
|
2971
|
-
constructor(config: games.jass.logic.server.data.models.config.ServerConfig, metadata: games.jass.logic.server.data.models.RoomMetadata);
|
|
3023
|
+
constructor(config: games.jass.logic.server.data.models.config.ServerConfig, metadata: games.jass.logic.server.data.models.RoomMetadata, connectedPlayers: kotlin.collections.KtList<string>);
|
|
2972
3024
|
get config(): games.jass.logic.server.data.models.config.ServerConfig;
|
|
2973
3025
|
get metadata(): games.jass.logic.server.data.models.RoomMetadata;
|
|
2974
|
-
|
|
3026
|
+
get connectedPlayers(): kotlin.collections.KtList<string>;
|
|
3027
|
+
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;
|
|
2975
3028
|
toString(): string;
|
|
2976
3029
|
hashCode(): number;
|
|
2977
3030
|
equals(other: Nullable<any>): boolean;
|