raspberry_games_server_game_logic 1.8.414 → 1.8.416
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 +214 -412
- package/Logic_Debertz-ai_module.js.map +1 -1
- package/Logic_Debertz-core.js +75 -50
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +13542 -12864
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +91 -4
- package/Logic_Debertz-game_server.js +1388 -1107
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
|
@@ -553,6 +553,7 @@ export declare namespace com.logic.data.models.player {
|
|
|
553
553
|
get isClientDisconnectReason(): boolean;
|
|
554
554
|
get isServerDisconnectReason(): boolean;
|
|
555
555
|
get canReconnect(): boolean;
|
|
556
|
+
get canUpdateRating(): boolean;
|
|
556
557
|
static values(): Array<com.logic.data.models.player.PlayerConnectionState>;
|
|
557
558
|
static valueOf(value: string): com.logic.data.models.player.PlayerConnectionState;
|
|
558
559
|
}
|
|
@@ -1072,6 +1073,50 @@ export declare namespace games.jass.logic.data.models.leagues {
|
|
|
1072
1073
|
const constructor: abstract new () => LeagueInfo;
|
|
1073
1074
|
}
|
|
1074
1075
|
}
|
|
1076
|
+
export declare namespace games.jass.logic.data.models.messages {
|
|
1077
|
+
interface Message {
|
|
1078
|
+
readonly id: string;
|
|
1079
|
+
readonly isShowing: boolean;
|
|
1080
|
+
readonly createdAt: any/* kotlin.time.Instant */;
|
|
1081
|
+
readonly lifecycle: any/* games.jass.logic.data.models.messages.MessageLifecycle */;
|
|
1082
|
+
isItemSame(other: games.jass.logic.data.models.messages.Message): boolean;
|
|
1083
|
+
readonly createdAtString: string;
|
|
1084
|
+
readonly __doNotUseOrImplementIt: {
|
|
1085
|
+
readonly "games.jass.logic.data.models.messages.Message": unique symbol;
|
|
1086
|
+
};
|
|
1087
|
+
}
|
|
1088
|
+
abstract class Message extends KtSingleton<Message.$metadata$.constructor>() {
|
|
1089
|
+
private constructor();
|
|
1090
|
+
}
|
|
1091
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1092
|
+
namespace Message.$metadata$ {
|
|
1093
|
+
abstract class constructor {
|
|
1094
|
+
get WHO_SHUFFLE_CARDS_TYPE(): string;
|
|
1095
|
+
get PHRASE_MESSAGE_TYPE(): string;
|
|
1096
|
+
get STICKER_MESSAGE_TYPE(): string;
|
|
1097
|
+
get COMBINATIONS_MESSAGE_TYPE(): string;
|
|
1098
|
+
get POINTS_MESSAGE_TYPE(): string;
|
|
1099
|
+
get TEXT_MESSAGE_TYPE(): string;
|
|
1100
|
+
get WINNER_COMBINATIONS_MESSAGE_TYPE(): string;
|
|
1101
|
+
get VALIDATION_MESSAGE_TYPE(): string;
|
|
1102
|
+
get EVENT_MESSAGE_TYPE(): string;
|
|
1103
|
+
get RANDOM_SIGNATURE_MESSAGE_TYPE(): string;
|
|
1104
|
+
private constructor();
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
export declare namespace games.jass.logic.data.models.messages {
|
|
1109
|
+
interface UserMessage extends games.jass.logic.data.models.messages.Message, com.logic.data.models.player.PlayerIdContract {
|
|
1110
|
+
readonly userInfo: com.logic.data.models.player.GameUserInfo;
|
|
1111
|
+
readonly playerId: string;
|
|
1112
|
+
readonly validateVoiceCount: boolean;
|
|
1113
|
+
isItemSame(other: games.jass.logic.data.models.messages.Message): boolean;
|
|
1114
|
+
readonly isGenerated: boolean;
|
|
1115
|
+
readonly __doNotUseOrImplementIt: {
|
|
1116
|
+
readonly "games.jass.logic.data.models.messages.UserMessage": unique symbol;
|
|
1117
|
+
} & games.jass.logic.data.models.messages.Message["__doNotUseOrImplementIt"] & com.logic.data.models.player.PlayerIdContract["__doNotUseOrImplementIt"];
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1075
1120
|
export declare namespace games.jass.logic.data.models.messages.combinatios {
|
|
1076
1121
|
abstract class CombinationReason /* implements kotlin.Comparable<games.jass.logic.data.models.messages.combinatios.CombinationReason> */ {
|
|
1077
1122
|
private constructor();
|
|
@@ -1113,6 +1158,31 @@ export declare namespace games.jass.logic.data.models.messages.combinatios {
|
|
|
1113
1158
|
const constructor: abstract new () => CombinationReason;
|
|
1114
1159
|
}
|
|
1115
1160
|
}
|
|
1161
|
+
export declare namespace games.jass.logic.data.models.messages.text {
|
|
1162
|
+
class TextMessage implements games.jass.logic.data.models.messages.UserMessage {
|
|
1163
|
+
constructor(message: string, id: string, userInfo: com.logic.data.models.player.GameUserInfo, isShowing: boolean, createdAt: any/* kotlin.time.Instant */);
|
|
1164
|
+
get message(): string;
|
|
1165
|
+
get id(): string;
|
|
1166
|
+
get userInfo(): com.logic.data.models.player.GameUserInfo;
|
|
1167
|
+
get isShowing(): boolean;
|
|
1168
|
+
get createdAt(): any/* kotlin.time.Instant */;
|
|
1169
|
+
isItemSame(other: games.jass.logic.data.models.messages.Message): boolean;
|
|
1170
|
+
get lifecycle(): any/* games.jass.logic.data.models.messages.MessageLifecycle */;
|
|
1171
|
+
get validateVoiceCount(): boolean;
|
|
1172
|
+
get isGenerated(): boolean;
|
|
1173
|
+
copy(message?: string, id?: string, userInfo?: com.logic.data.models.player.GameUserInfo, isShowing?: boolean, createdAt?: any/* kotlin.time.Instant */): games.jass.logic.data.models.messages.text.TextMessage;
|
|
1174
|
+
toString(): string;
|
|
1175
|
+
hashCode(): number;
|
|
1176
|
+
equals(other: Nullable<any>): boolean;
|
|
1177
|
+
get playerId(): string;
|
|
1178
|
+
get createdAtString(): string;
|
|
1179
|
+
readonly __doNotUseOrImplementIt: games.jass.logic.data.models.messages.UserMessage["__doNotUseOrImplementIt"];
|
|
1180
|
+
}
|
|
1181
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1182
|
+
namespace TextMessage.$metadata$ {
|
|
1183
|
+
const constructor: abstract new () => TextMessage;
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1116
1186
|
export declare namespace games.jass.logic.data.models.player {
|
|
1117
1187
|
class JassPlayerLite {
|
|
1118
1188
|
constructor(userInfo: com.logic.data.models.player.GameUserInfo, options: any/* games.jass.logic.data.models.player.options.PlayerOptions */, points: any/* games.jass.logic.data.models.player.points.PlayerPoints */);
|
|
@@ -2613,7 +2683,7 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
|
|
|
2613
2683
|
} & com.logic.redux.store.definitions.Action["__doNotUseOrImplementIt"] & com.logic.redux.actions.IgnoreBufferForAction["__doNotUseOrImplementIt"];
|
|
2614
2684
|
}
|
|
2615
2685
|
interface PlayerOrderChangeMechanicAction extends com.logic.redux.store.definitions.Action {
|
|
2616
|
-
readonly usersOrder:
|
|
2686
|
+
readonly usersOrder: Array<string>;
|
|
2617
2687
|
readonly __doNotUseOrImplementIt: {
|
|
2618
2688
|
readonly "games.jass.logic.redux.actions.mechanic.PlayerOrderChangeMechanicAction": unique symbol;
|
|
2619
2689
|
} & com.logic.redux.store.definitions.Action["__doNotUseOrImplementIt"];
|
|
@@ -2627,7 +2697,7 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
|
|
|
2627
2697
|
get users(): kotlin.collections.KtList<com.logic.data.models.player.GameUserInfo>;
|
|
2628
2698
|
get aid(): Nullable<string>;
|
|
2629
2699
|
get spectators(): kotlin.collections.KtList<com.logic.data.models.player.GameUserInfo>;
|
|
2630
|
-
get usersOrder():
|
|
2700
|
+
get usersOrder(): Array<string>;
|
|
2631
2701
|
copy(config?: games.jass.logic.data.models.table.config.Config, roomId?: string, version?: string, gameCreatorPlayerId?: string, users?: kotlin.collections.KtList<com.logic.data.models.player.GameUserInfo>, aid?: Nullable<string>, spectators?: kotlin.collections.KtList<com.logic.data.models.player.GameUserInfo>): games.jass.logic.redux.actions.mechanic.StartGameMechanicAction;
|
|
2632
2702
|
toString(): string;
|
|
2633
2703
|
hashCode(): number;
|
|
@@ -2747,7 +2817,7 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
|
|
|
2747
2817
|
get team1(): com.logic.data.models.player.Team;
|
|
2748
2818
|
get team2(): com.logic.data.models.player.Team;
|
|
2749
2819
|
get aid(): Nullable<string>;
|
|
2750
|
-
get usersOrder():
|
|
2820
|
+
get usersOrder(): Array<string>;
|
|
2751
2821
|
getSelectedPlayerId(gameCreatorPlayerId: string): string;
|
|
2752
2822
|
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
2823
|
toString(): string;
|
|
@@ -2782,6 +2852,21 @@ export declare namespace games.jass.logic.redux.actions.mechanic {
|
|
|
2782
2852
|
namespace PlayerConnectionChangedMechanicAction.$metadata$ {
|
|
2783
2853
|
const constructor: abstract new () => PlayerConnectionChangedMechanicAction;
|
|
2784
2854
|
}
|
|
2855
|
+
class MessageMechanicAction extends games.jass.logic.redux.actions.mechanic.MechanicAction.$metadata$.constructor implements com.logic.redux.actions.IgnoreBufferForAction {
|
|
2856
|
+
constructor(message: games.jass.logic.data.models.messages.Message, aid?: Nullable<string>);
|
|
2857
|
+
get message(): games.jass.logic.data.models.messages.Message;
|
|
2858
|
+
get aid(): Nullable<string>;
|
|
2859
|
+
copy(message?: games.jass.logic.data.models.messages.Message, aid?: Nullable<string>): games.jass.logic.redux.actions.mechanic.MessageMechanicAction;
|
|
2860
|
+
toString(): string;
|
|
2861
|
+
hashCode(): number;
|
|
2862
|
+
equals(other: Nullable<any>): boolean;
|
|
2863
|
+
get actionTag(): string;
|
|
2864
|
+
readonly __doNotUseOrImplementIt: games.jass.logic.redux.actions.mechanic.MechanicAction["__doNotUseOrImplementIt"] & com.logic.redux.actions.IgnoreBufferForAction["__doNotUseOrImplementIt"];
|
|
2865
|
+
}
|
|
2866
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
2867
|
+
namespace MessageMechanicAction.$metadata$ {
|
|
2868
|
+
const constructor: abstract new () => MessageMechanicAction;
|
|
2869
|
+
}
|
|
2785
2870
|
}
|
|
2786
2871
|
export declare interface GameHelper {
|
|
2787
2872
|
filterLivePlayers(store: com.logic.redux.store.definitions.Store<any/* games.jass.logic.redux.AppState */>, playerIds: Array<string>, includeBots?: boolean): Array<string>;
|
|
@@ -2994,7 +3079,8 @@ export declare namespace games.jass.logic.server.data.models.state {
|
|
|
2994
3079
|
export declare namespace games.jass.logic.server.domain {
|
|
2995
3080
|
interface ServerGameEngineContract extends games.jass.logic.GameStoreContract {
|
|
2996
3081
|
readonly metadata: games.jass.logic.server.data.models.RoomMetadata;
|
|
2997
|
-
canReconnectPlayer(
|
|
3082
|
+
canReconnectPlayer(playerId: string): boolean;
|
|
3083
|
+
canUpdatePlayerRating(playerId: string): boolean;
|
|
2998
3084
|
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;
|
|
2999
3085
|
roomOnContinueFromState(roomId: string, state: games.jass.logic.data.models.table.TableStateWithActions): void;
|
|
3000
3086
|
roomOnContinueFromRound(roomId: string, tableLite: games.jass.logic.data.models.table.JassTableLite): void;
|
|
@@ -3013,6 +3099,7 @@ export declare namespace games.jass.logic.server.domain {
|
|
|
3013
3099
|
clear(): void;
|
|
3014
3100
|
setCanStartNewGameEnabled(enabled: boolean): void;
|
|
3015
3101
|
shutdown(reason: string, roomId?: Nullable<string>): void;
|
|
3102
|
+
handlePlayerMessage(message: string, fromPlayerId: string, onMessageGenerated: (p0: games.jass.logic.data.models.messages.text.TextMessage) => void): void;
|
|
3016
3103
|
readonly __doNotUseOrImplementIt: {
|
|
3017
3104
|
readonly "games.jass.logic.server.domain.ServerGameEngineContract": unique symbol;
|
|
3018
3105
|
} & games.jass.logic.GameStoreContract["__doNotUseOrImplementIt"];
|