raspberry_games_server_game_logic 1.8.310 → 1.8.311
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-core.js +645 -637
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +792 -730
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +49 -13
- package/Logic_Debertz-game_server.js +779 -677
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +2 -2
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +37 -37
- package/raspberry-cardgame-lib-core.js.map +1 -1
|
@@ -1240,32 +1240,32 @@ export declare namespace games.jass.logic.data.models.table.combinations {
|
|
|
1240
1240
|
get name(): "SEVEN_TRUMP";
|
|
1241
1241
|
get ordinal(): 5;
|
|
1242
1242
|
};
|
|
1243
|
-
static get
|
|
1244
|
-
get name(): "
|
|
1243
|
+
static get FOUR_SEVENS(): games.jass.logic.data.models.table.combinations.CombinationType & {
|
|
1244
|
+
get name(): "FOUR_SEVENS";
|
|
1245
1245
|
get ordinal(): 6;
|
|
1246
1246
|
};
|
|
1247
|
-
static get
|
|
1248
|
-
get name(): "
|
|
1247
|
+
static get FOUR_NINES(): games.jass.logic.data.models.table.combinations.CombinationType & {
|
|
1248
|
+
get name(): "FOUR_NINES";
|
|
1249
1249
|
get ordinal(): 7;
|
|
1250
1250
|
};
|
|
1251
|
-
static get
|
|
1252
|
-
get name(): "
|
|
1251
|
+
static get FOUR_TENS(): games.jass.logic.data.models.table.combinations.CombinationType & {
|
|
1252
|
+
get name(): "FOUR_TENS";
|
|
1253
1253
|
get ordinal(): 8;
|
|
1254
1254
|
};
|
|
1255
1255
|
static get FOUR_JACKS(): games.jass.logic.data.models.table.combinations.CombinationType & {
|
|
1256
1256
|
get name(): "FOUR_JACKS";
|
|
1257
1257
|
get ordinal(): 9;
|
|
1258
1258
|
};
|
|
1259
|
-
static get
|
|
1260
|
-
get name(): "
|
|
1259
|
+
static get FOUR_QUEENS(): games.jass.logic.data.models.table.combinations.CombinationType & {
|
|
1260
|
+
get name(): "FOUR_QUEENS";
|
|
1261
1261
|
get ordinal(): 10;
|
|
1262
1262
|
};
|
|
1263
|
-
static get
|
|
1264
|
-
get name(): "
|
|
1263
|
+
static get FOUR_KINGS(): games.jass.logic.data.models.table.combinations.CombinationType & {
|
|
1264
|
+
get name(): "FOUR_KINGS";
|
|
1265
1265
|
get ordinal(): 11;
|
|
1266
1266
|
};
|
|
1267
|
-
static get
|
|
1268
|
-
get name(): "
|
|
1267
|
+
static get FOUR_ACES(): games.jass.logic.data.models.table.combinations.CombinationType & {
|
|
1268
|
+
get name(): "FOUR_ACES";
|
|
1269
1269
|
get ordinal(): 12;
|
|
1270
1270
|
};
|
|
1271
1271
|
static get FINE_NO_BRIBES(): games.jass.logic.data.models.table.combinations.CombinationType & {
|
|
@@ -1288,7 +1288,7 @@ export declare namespace games.jass.logic.data.models.table.combinations {
|
|
|
1288
1288
|
get name(): "BONUS_CONTROVERSIAL_CONTRACT";
|
|
1289
1289
|
get ordinal(): 17;
|
|
1290
1290
|
};
|
|
1291
|
-
get name(): "BELA" | "THREE_IN_ROW" | "FOUR_IN_ROW" | "FIVE_IN_ROW" | "SEVEN_IN_ROW" | "SEVEN_TRUMP" | "
|
|
1291
|
+
get name(): "BELA" | "THREE_IN_ROW" | "FOUR_IN_ROW" | "FIVE_IN_ROW" | "SEVEN_IN_ROW" | "SEVEN_TRUMP" | "FOUR_SEVENS" | "FOUR_NINES" | "FOUR_TENS" | "FOUR_JACKS" | "FOUR_QUEENS" | "FOUR_KINGS" | "FOUR_ACES" | "FINE_NO_BRIBES" | "FINE_THIRD_FAILED_CONTRACT" | "BONUS_LAST_BRIBE" | "BONUS_FAILED_CONTRACT" | "BONUS_CONTROVERSIAL_CONTRACT";
|
|
1292
1292
|
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17;
|
|
1293
1293
|
static values(): Array<games.jass.logic.data.models.table.combinations.CombinationType>;
|
|
1294
1294
|
static valueOf(value: string): games.jass.logic.data.models.table.combinations.CombinationType;
|
|
@@ -1358,6 +1358,7 @@ export declare namespace games.jass.logic.data.models.table.config {
|
|
|
1358
1358
|
get dealerStrategy(): Nullable<games.jass.logic.domain.interactors.dealer.DealerStrategy>;
|
|
1359
1359
|
get league(): Nullable<games.jass.logic.data.models.leagues.League>;
|
|
1360
1360
|
get mode(): games.jass.logic.data.models.table.config.RoomMode;
|
|
1361
|
+
getDealerStrategyOrDefault(dealerConfig: games.jass.logic.data.models.DealerConfig): games.jass.logic.domain.interactors.dealer.DealerStrategy;
|
|
1361
1362
|
get playerHandCardsSize(): number;
|
|
1362
1363
|
copy(rules?: games.jass.logic.data.models.rules.Rules, rulesSetType?: games.jass.logic.data.models.rules.RulesSetType, options?: games.jass.logic.data.models.table.config.Options, playersMode?: games.jass.logic.data.models.table.config.PlayersMode, pointsMode?: games.jass.logic.data.models.table.config.PointsMode, timeoutTimeMillis?: number, isPrivate?: boolean, dealerStrategy?: Nullable<games.jass.logic.domain.interactors.dealer.DealerStrategy>, league?: Nullable<games.jass.logic.data.models.leagues.League>, mode?: games.jass.logic.data.models.table.config.RoomMode): games.jass.logic.data.models.table.config.Config;
|
|
1363
1364
|
toString(): string;
|
|
@@ -1641,6 +1642,7 @@ export declare namespace games.jass.logic.domain.interactors.dealer {
|
|
|
1641
1642
|
get name(): "STANDARD" | "REQUEST_HOST_STANDARD" | "RANDOM_ORG" | "RANDOM_ORG_SIGNED" | "FAKE" | "BASED_ON_PREVIOUS" | "OFFLINE_SHUFFLE_SIMULATION" | "EQUAL_HAND_BY_POINTS" | "EQUAL_HAND_BY_VALUE";
|
|
1642
1643
|
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
1643
1644
|
shouldEqualiseHand(): boolean;
|
|
1645
|
+
isFake(): boolean;
|
|
1644
1646
|
isRandomOrg(): boolean;
|
|
1645
1647
|
static values(): Array<games.jass.logic.domain.interactors.dealer.DealerStrategy>;
|
|
1646
1648
|
static valueOf(value: string): games.jass.logic.domain.interactors.dealer.DealerStrategy;
|
|
@@ -2008,6 +2010,20 @@ export declare namespace di {
|
|
|
2008
2010
|
get gameResources(): GameResources;
|
|
2009
2011
|
}
|
|
2010
2012
|
}
|
|
2013
|
+
export declare namespace games.jass.logic.server.data.models.config {
|
|
2014
|
+
class ServerConfig {
|
|
2015
|
+
constructor(fromRound: Nullable<number>, canStartNewGame: boolean);
|
|
2016
|
+
get fromRound(): Nullable<number>;
|
|
2017
|
+
get canStartNewGame(): boolean;
|
|
2018
|
+
copy(fromRound?: Nullable<number>, canStartNewGame?: boolean): games.jass.logic.server.data.models.config.ServerConfig;
|
|
2019
|
+
toString(): string;
|
|
2020
|
+
hashCode(): number;
|
|
2021
|
+
equals(other: Nullable<any>): boolean;
|
|
2022
|
+
static get Companion(): {
|
|
2023
|
+
initial(fromRound: Nullable<number>): games.jass.logic.server.data.models.config.ServerConfig;
|
|
2024
|
+
};
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
2011
2027
|
export declare namespace games.jass.logic.server.data.models.state {
|
|
2012
2028
|
interface ServerStateUpdate {
|
|
2013
2029
|
readonly __doNotUseOrImplementIt: {
|
|
@@ -2057,10 +2073,24 @@ export declare namespace games.jass.logic.server.domain {
|
|
|
2057
2073
|
} & games.jass.logic.GameStoreContract["__doNotUseOrImplementIt"];
|
|
2058
2074
|
}
|
|
2059
2075
|
}
|
|
2076
|
+
export declare namespace games.jass.logic.server.redux.state {
|
|
2077
|
+
class ServerStatePayload /* implements games.jass.logic.redux.AppStatePayload */ {
|
|
2078
|
+
constructor(config: games.jass.logic.server.data.models.config.ServerConfig);
|
|
2079
|
+
get config(): games.jass.logic.server.data.models.config.ServerConfig;
|
|
2080
|
+
copy(config?: games.jass.logic.server.data.models.config.ServerConfig): games.jass.logic.server.redux.state.ServerStatePayload;
|
|
2081
|
+
toString(): string;
|
|
2082
|
+
hashCode(): number;
|
|
2083
|
+
equals(other: Nullable<any>): boolean;
|
|
2084
|
+
static get Companion(): {
|
|
2085
|
+
initial(config?: games.jass.logic.server.data.models.config.ServerConfig): games.jass.logic.server.redux.state.ServerStatePayload;
|
|
2086
|
+
};
|
|
2087
|
+
}
|
|
2088
|
+
}
|
|
2060
2089
|
export declare interface GameEngineController {
|
|
2061
2090
|
readonly parser: ParserHelper;
|
|
2062
2091
|
readonly test: TestHelper;
|
|
2063
2092
|
readonly helper: GameHelper;
|
|
2093
|
+
readonly serverHelper: GameServerHelper;
|
|
2064
2094
|
readonly resources: GameResources;
|
|
2065
2095
|
readonly randomPoolProvider: any/* games.raspberry.card_game.random.data.providers.RandomPoolProvider */;
|
|
2066
2096
|
setEnableLogger(enabled: boolean): void;
|
|
@@ -2071,6 +2101,12 @@ export declare interface GameEngineController {
|
|
|
2071
2101
|
};
|
|
2072
2102
|
}
|
|
2073
2103
|
export declare function createGameServerController(loggerCallback: (p0: string, p1: Nullable<string>, p2: string, p3: Nullable<Error>, p4: Nullable<any>) => void, randomOrgConfig?: games.raspberry.card_game.random.data.models.RandomOrgConfig): GameEngineController;
|
|
2104
|
+
export declare interface GameServerHelper {
|
|
2105
|
+
getServerConfig(state: any/* games.jass.logic.redux.AppState */): games.jass.logic.server.data.models.config.ServerConfig;
|
|
2106
|
+
readonly __doNotUseOrImplementIt: {
|
|
2107
|
+
readonly GameServerHelper: unique symbol;
|
|
2108
|
+
};
|
|
2109
|
+
}
|
|
2074
2110
|
export declare interface TestHelper {
|
|
2075
2111
|
getPlayerAnswer(table: games.jass.logic.data.models.table.JassTable, playerId: string, botConfig: games.jass.logic.data.models.EngineBotConfig): games.jass.logic.redux.actions.client.from.FromClientAction;
|
|
2076
2112
|
getPlayerAnswerFromClientAction(table: games.jass.logic.data.models.table.JassTable, currentPlayerId: string, action: games.jass.logic.redux.actions.client.to.ToClientAction, botConfig: games.jass.logic.data.models.EngineBotConfig): Nullable<games.jass.logic.redux.actions.client.from.FromClientAction>;
|