game_client_logic_deb 1.3.48 → 1.3.49
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/88b0986a7186d029-atomicfu-js-ir.js +53 -53
- package/Kaverit-kaverit-js-ir.js +85 -85
- package/Kodein-kodein-di-js-ir.js +648 -648
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js +222 -41
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map +1 -1
- package/Logic_Debertz-core.js +1869 -757
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +22706 -10527
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client_logic_deb.d.ts +69 -1
- package/Logic_Debertz-game_client_logic_deb.js +4048 -4037
- package/Logic_Debertz-game_client_logic_deb.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +4145 -1884
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +3798 -733
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +4869 -118
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +2552 -2552
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/package.json +1 -1
- package/uuid-js-ir.js +38 -38
|
@@ -558,12 +558,79 @@ export namespace com.debertz.logic.redux.middlewares.validation {
|
|
|
558
558
|
export const ERROR: string;
|
|
559
559
|
export const DEBUG: string;
|
|
560
560
|
export const WARN: string;
|
|
561
|
+
export interface ParserHelper {
|
|
562
|
+
encodeFromClientEvent(action: com.debertz.logic.redux.actions.client.from.FromClientAction): string;
|
|
563
|
+
decodeFromClientEvent(fromPlayerId: string, json: string): com.debertz.logic.redux.actions.client.from.FromClientAction;
|
|
564
|
+
encodeToClientEvent(action: com.debertz.logic.redux.actions.client.to.ToClientAction): string;
|
|
565
|
+
decodeToClientEvent(playerId: string, table: com.debertz.logic.data.models.table.DebertzTable, json: string): com.debertz.logic.redux.actions.client.to.ToClientAction;
|
|
566
|
+
decodeToClientEventToMechanicAction(playerId: string, json: string): com.debertz.logic.redux.actions.mechanic.MechanicAction;
|
|
567
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
568
|
+
}
|
|
569
|
+
export namespace com.debertz.logic.client.domain.mechanic {
|
|
570
|
+
interface GameMechanic /* extends com.debertz.logic.client.domain.scenes.PlayersSceneContract */ {
|
|
571
|
+
onCreate(): void;
|
|
572
|
+
onDestroy(): void;
|
|
573
|
+
getConfig(): com.debertz.logic.data.models.table.config.Config;
|
|
574
|
+
getClientConfig(): any/* com.debertz.logic.client.data.models.config.ClientConfig */;
|
|
575
|
+
observeConfig(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.data.models.table.config.Config> */;
|
|
576
|
+
observeUsers(): any/* kotlinx.coroutines.flow.Flow<kotlin.collections.List<com.logic.data.models.player.GameUserInfo>> */;
|
|
577
|
+
observeClientConfig(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.config.ClientConfig> */;
|
|
578
|
+
observeGameLifecycle(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.GameLifecycleViewModel> */;
|
|
579
|
+
observeRestartGameExpectant(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.client.data.models.expectants.RestartGameExpectant>> */;
|
|
580
|
+
observeScene(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.SceneViewModel> */;
|
|
581
|
+
observeSceneId(): any/* kotlinx.coroutines.flow.Flow<string> */;
|
|
582
|
+
observeError(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.client.redux.state.ErrorState>> */;
|
|
583
|
+
observeInfoMessage(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.data.models.messages.Message>> */;
|
|
584
|
+
observeGameType(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.config.GameType> */;
|
|
585
|
+
observeChatOpened(): any/* kotlinx.coroutines.flow.Flow<boolean> */;
|
|
586
|
+
observeLastBribe(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.client.data.models.LastBribeViewModel>> */;
|
|
587
|
+
observeGameInfo(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.client.data.models.GameInfoViewModel>> */;
|
|
588
|
+
observeSettingsOpened(): any/* kotlinx.coroutines.flow.Flow<boolean> */;
|
|
589
|
+
switchLastBribe(open: boolean): void;
|
|
590
|
+
switchGameInfo(open: boolean): void;
|
|
591
|
+
switchSettings(open: boolean): void;
|
|
592
|
+
switchChat(open: boolean): void;
|
|
593
|
+
foreground(foreground: boolean): void;
|
|
594
|
+
updateConfig(updateConfig: any/* com.debertz.logic.client.data.models.config.UpdateConfigModel */): void;
|
|
595
|
+
observeShowTutorial(): any/* kotlinx.coroutines.flow.Flow<boolean> */;
|
|
596
|
+
tutorialPassed(skipped: boolean): void;
|
|
597
|
+
playerExit(): void;
|
|
598
|
+
readonly __doNotUseIt: __doNotImplementIt;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
561
601
|
export namespace com.debertz.logic.client.domain.mechanic.online {
|
|
562
|
-
interface OnlineGameMechanic
|
|
602
|
+
interface OnlineGameMechanic extends com.debertz.logic.client.domain.mechanic.GameMechanic {
|
|
563
603
|
readonly currentPlayerId: string;
|
|
564
604
|
observeFromClientAction(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.redux.actions.client.from.FromClientAction> */;
|
|
565
605
|
mechanicAction(action: com.debertz.logic.redux.actions.mechanic.MechanicAction): void;
|
|
566
606
|
error(error: Nullable<com.debertz.logic.client.redux.state.ErrorState>): void;
|
|
607
|
+
onCreate(): void;
|
|
608
|
+
onDestroy(): void;
|
|
609
|
+
getConfig(): com.debertz.logic.data.models.table.config.Config;
|
|
610
|
+
getClientConfig(): any/* com.debertz.logic.client.data.models.config.ClientConfig */;
|
|
611
|
+
observeConfig(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.data.models.table.config.Config> */;
|
|
612
|
+
observeUsers(): any/* kotlinx.coroutines.flow.Flow<kotlin.collections.List<com.logic.data.models.player.GameUserInfo>> */;
|
|
613
|
+
observeClientConfig(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.config.ClientConfig> */;
|
|
614
|
+
observeGameLifecycle(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.GameLifecycleViewModel> */;
|
|
615
|
+
observeRestartGameExpectant(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.client.data.models.expectants.RestartGameExpectant>> */;
|
|
616
|
+
observeScene(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.SceneViewModel> */;
|
|
617
|
+
observeSceneId(): any/* kotlinx.coroutines.flow.Flow<string> */;
|
|
618
|
+
observeError(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.client.redux.state.ErrorState>> */;
|
|
619
|
+
observeInfoMessage(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.data.models.messages.Message>> */;
|
|
620
|
+
observeGameType(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.config.GameType> */;
|
|
621
|
+
observeChatOpened(): any/* kotlinx.coroutines.flow.Flow<boolean> */;
|
|
622
|
+
observeLastBribe(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.client.data.models.LastBribeViewModel>> */;
|
|
623
|
+
observeGameInfo(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.client.data.models.GameInfoViewModel>> */;
|
|
624
|
+
observeSettingsOpened(): any/* kotlinx.coroutines.flow.Flow<boolean> */;
|
|
625
|
+
switchLastBribe(open: boolean): void;
|
|
626
|
+
switchGameInfo(open: boolean): void;
|
|
627
|
+
switchSettings(open: boolean): void;
|
|
628
|
+
switchChat(open: boolean): void;
|
|
629
|
+
foreground(foreground: boolean): void;
|
|
630
|
+
updateConfig(updateConfig: any/* com.debertz.logic.client.data.models.config.UpdateConfigModel */): void;
|
|
631
|
+
observeShowTutorial(): any/* kotlinx.coroutines.flow.Flow<boolean> */;
|
|
632
|
+
tutorialPassed(skipped: boolean): void;
|
|
633
|
+
playerExit(): void;
|
|
567
634
|
readonly __doNotUseIt: __doNotImplementIt;
|
|
568
635
|
}
|
|
569
636
|
}
|
|
@@ -583,6 +650,7 @@ export namespace com.debertz.logic.client.redux.state {
|
|
|
583
650
|
}
|
|
584
651
|
}
|
|
585
652
|
export interface GameClientEngineController {
|
|
653
|
+
readonly parser: ParserHelper;
|
|
586
654
|
setEnableLogger(enabled: boolean): void;
|
|
587
655
|
createOnlineGameEngine(currentPlayerId: string): com.debertz.logic.client.domain.mechanic.online.OnlineGameMechanic;
|
|
588
656
|
createOnlineGameEngineWithLogic(currentPlayerId: string, reducers?: Array<(p0: any/* com.debertz.logic.redux.AppState */, p1: any) => any/* com.debertz.logic.redux.AppState */>, middlewares?: Array<(p0: com.logic.domain.engine.definitions.Store<any/* com.debertz.logic.redux.AppState */>, p1: (p0: com.logic.domain.engine.definitions.Action) => void, p2: any) => void>, isAutoStepCurrentPlayer?: boolean): com.debertz.logic.client.domain.mechanic.online.OnlineGameMechanic;
|