game_client_logic_deb 1.3.48 → 1.3.64

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.
@@ -80,6 +80,9 @@ export namespace com.logic.data.models.player {
80
80
  static valueOf(value: string): com.logic.data.models.player.PlayerConnectionState;
81
81
  get name(): "LIVE" | "TIMEOUT" | "LOST_CONNECTION" | "LEFT" | "DISCONNECTING" | "DELETED";
82
82
  get ordinal(): 0 | 1 | 2 | 3 | 4 | 5;
83
+ static get Companion(): {
84
+ serializer(): any/* kotlinx.serialization.KSerializer<com.logic.data.models.player.PlayerConnectionState> */;
85
+ } & any/* kotlinx.serialization.internal.SerializerFactory */;
83
86
  }
84
87
  }
85
88
  export namespace com.logic.data.models.rules {
@@ -190,6 +193,18 @@ export namespace com.logic.redux.actions {
190
193
  readonly __doNotUseIt: __doNotImplementIt;
191
194
  }
192
195
  }
196
+ export namespace com.logic.redux.actions.validation {
197
+ interface NotValidateIfGameFinished {
198
+ notValidateWhenFinished(): boolean;
199
+ readonly __doNotUseIt: __doNotImplementIt;
200
+ }
201
+ }
202
+ export namespace com.logic.redux.actions.validation {
203
+ interface NotValidateIfGameFinishing {
204
+ notValidateWhenFinishing(): boolean;
205
+ readonly __doNotUseIt: __doNotImplementIt;
206
+ }
207
+ }
193
208
  export namespace com.logic.utils.logger.game {
194
209
  interface LoggerPayload {
195
210
  readonly __doNotUseIt: __doNotImplementIt;
@@ -295,6 +310,9 @@ export namespace com.debertz.logic.data.models.table.config {
295
310
  static valueOf(value: string): com.debertz.logic.data.models.table.config.BotIntelligenceLevel;
296
311
  get name(): "SUPER_HARD" | "HARD" | "MEDIUM" | "EASY" | "SUPER_EASY";
297
312
  get ordinal(): 0 | 1 | 2 | 3 | 4;
313
+ static get Companion(): {
314
+ serializer(): any/* kotlinx.serialization.KSerializer<com.debertz.logic.data.models.table.config.BotIntelligenceLevel> */;
315
+ } & any/* kotlinx.serialization.internal.SerializerFactory */;
298
316
  }
299
317
  function getLevel(_this_: com.debertz.logic.data.models.table.config.BotIntelligenceLevel): number;
300
318
  }
@@ -370,7 +388,8 @@ export namespace com.debertz.logic.data.models.table.config {
370
388
  get ordinal(): 0 | 1 | 2 | 3;
371
389
  static get Companion(): {
372
390
  create(points: number): com.debertz.logic.data.models.table.config.PlayersMode;
373
- };
391
+ serializer(): any/* kotlinx.serialization.KSerializer<com.debertz.logic.data.models.table.config.PlayersMode> */;
392
+ } & any/* kotlinx.serialization.internal.SerializerFactory */;
374
393
  }
375
394
  }
376
395
  export namespace com.debertz.logic.data.models.table.config {
@@ -399,7 +418,8 @@ export namespace com.debertz.logic.data.models.table.config {
399
418
  get ordinal(): 0 | 1 | 2 | 3;
400
419
  static get Companion(): {
401
420
  create(points: number): com.debertz.logic.data.models.table.config.PointsMode;
402
- };
421
+ serializer(): any/* kotlinx.serialization.KSerializer<com.debertz.logic.data.models.table.config.PointsMode> */;
422
+ } & any/* kotlinx.serialization.internal.SerializerFactory */;
403
423
  }
404
424
  }
405
425
  export namespace com.debertz.logic.redux.actions {
@@ -408,7 +428,7 @@ export namespace com.debertz.logic.redux.actions {
408
428
  get actionTag(): string;
409
429
  notValidateWhenFinishing(): boolean;
410
430
  notValidateWhenFinished(): boolean;
411
- } & com.logic.domain.engine.definitions.Action & com.debertz.logic.redux.middlewares.validation.NotValidateIfGameFinishing & com.debertz.logic.redux.middlewares.validation.NotValidateIfGameFinished;
431
+ } & com.logic.domain.engine.definitions.Action & com.logic.redux.actions.validation.NotValidateIfGameFinishing & com.logic.redux.actions.validation.NotValidateIfGameFinished;
412
432
  }
413
433
  export namespace com.debertz.logic.redux.actions.client.from {
414
434
  abstract class FromClientAction implements com.logic.domain.engine.definitions.Action {
@@ -495,7 +515,7 @@ export namespace com.debertz.logic.redux.actions.mechanic {
495
515
  readonly actionTag: string;
496
516
  readonly __doNotUseIt: __doNotImplementIt;
497
517
  }
498
- class SceneMechanicAction extends com.debertz.logic.redux.actions.mechanic.MechanicAction implements com.debertz.logic.redux.actions.mechanic.NavigationMechanicAction, com.logic.redux.actions.ReleaseBufferTriggerAction, com.debertz.logic.redux.middlewares.validation.NotValidateIfGameFinishing, com.debertz.logic.redux.middlewares.validation.NotValidateIfGameFinished/*, com.debertz.logic.redux.actions.mechanic.NextPlayerTurnAction */ {
518
+ class SceneMechanicAction extends com.debertz.logic.redux.actions.mechanic.MechanicAction implements com.debertz.logic.redux.actions.mechanic.NavigationMechanicAction, com.logic.redux.actions.ReleaseBufferTriggerAction, com.logic.redux.actions.validation.NotValidateIfGameFinishing, com.logic.redux.actions.validation.NotValidateIfGameFinished/*, com.debertz.logic.redux.actions.mechanic.NextPlayerTurnAction */ {
499
519
  constructor(sceneId: string, actId?: Nullable<string>, scenePayload?: Nullable<com.debertz.logic.data.models.scenes.SceneData>, actPayload?: Nullable<com.debertz.logic.data.models.scenes.ActData>);
500
520
  get sceneId(): string;
501
521
  get actId(): Nullable<string>;
@@ -520,7 +540,7 @@ export namespace com.debertz.logic.redux.actions.mechanic {
520
540
  readonly actionTag: string;
521
541
  readonly __doNotUseIt: __doNotImplementIt;
522
542
  }
523
- class PlayerConnectionChangedMechanicAction extends com.debertz.logic.redux.actions.mechanic.MechanicAction implements com.debertz.logic.redux.middlewares.validation.NotValidateIfGameFinishing, com.debertz.logic.redux.middlewares.validation.NotValidateIfGameFinished {
543
+ class PlayerConnectionChangedMechanicAction extends com.debertz.logic.redux.actions.mechanic.MechanicAction implements com.logic.redux.actions.validation.NotValidateIfGameFinishing, com.logic.redux.actions.validation.NotValidateIfGameFinished {
524
544
  constructor(playerId: string, state: com.logic.data.models.player.PlayerConnectionState, isNoneActivePlayers: boolean);
525
545
  get playerId(): string;
526
546
  get state(): com.logic.data.models.player.PlayerConnectionState;
@@ -545,25 +565,82 @@ export namespace com.debertz.logic.redux.actions.mechanic {
545
565
  readonly __doNotUseIt: __doNotImplementIt;
546
566
  }
547
567
  }
548
- export namespace com.debertz.logic.redux.middlewares.validation {
549
- interface NotValidateIfGameFinishing {
550
- notValidateWhenFinishing(): boolean;
551
- readonly __doNotUseIt: __doNotImplementIt;
552
- }
553
- interface NotValidateIfGameFinished {
554
- notValidateWhenFinished(): boolean;
555
- readonly __doNotUseIt: __doNotImplementIt;
556
- }
557
- }
558
568
  export const ERROR: string;
559
569
  export const DEBUG: string;
560
570
  export const WARN: string;
571
+ export interface ParserHelper {
572
+ encodeFromClientEvent(action: com.debertz.logic.redux.actions.client.from.FromClientAction): string;
573
+ decodeFromClientEvent(fromPlayerId: string, json: string): com.debertz.logic.redux.actions.client.from.FromClientAction;
574
+ encodeToClientEvent(action: com.debertz.logic.redux.actions.client.to.ToClientAction): string;
575
+ decodeToClientEvent(playerId: string, table: com.debertz.logic.data.models.table.DebertzTable, json: string): com.debertz.logic.redux.actions.client.to.ToClientAction;
576
+ decodeToClientEventToMechanicAction(playerId: string, json: string): com.debertz.logic.redux.actions.mechanic.MechanicAction;
577
+ readonly __doNotUseIt: __doNotImplementIt;
578
+ }
579
+ export namespace com.debertz.logic.client.domain.mechanic {
580
+ interface GameMechanic /* extends com.debertz.logic.client.domain.scenes.PlayersSceneContract */ {
581
+ onCreate(): void;
582
+ onDestroy(): void;
583
+ getConfig(): com.debertz.logic.data.models.table.config.Config;
584
+ getClientConfig(): any/* com.debertz.logic.client.data.models.config.ClientConfig */;
585
+ observeConfig(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.data.models.table.config.Config> */;
586
+ observeUsers(): any/* kotlinx.coroutines.flow.Flow<kotlin.collections.List<com.logic.data.models.player.GameUserInfo>> */;
587
+ observeClientConfig(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.config.ClientConfig> */;
588
+ observeGameLifecycle(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.GameLifecycleViewModel> */;
589
+ observeRestartGameExpectant(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.client.data.models.expectants.RestartGameExpectant>> */;
590
+ observeScene(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.SceneViewModel> */;
591
+ observeSceneId(): any/* kotlinx.coroutines.flow.Flow<string> */;
592
+ observeError(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.client.redux.state.ErrorState>> */;
593
+ observeInfoMessage(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.data.models.messages.Message>> */;
594
+ observeGameType(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.config.GameType> */;
595
+ observeChatOpened(): any/* kotlinx.coroutines.flow.Flow<boolean> */;
596
+ observeLastBribe(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.client.data.models.LastBribeViewModel>> */;
597
+ observeGameInfo(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.client.data.models.GameInfoViewModel>> */;
598
+ observeSettingsOpened(): any/* kotlinx.coroutines.flow.Flow<boolean> */;
599
+ switchLastBribe(open: boolean): void;
600
+ switchGameInfo(open: boolean): void;
601
+ switchSettings(open: boolean): void;
602
+ switchChat(open: boolean): void;
603
+ foreground(foreground: boolean): void;
604
+ updateConfig(updateConfig: any/* com.debertz.logic.client.data.models.config.UpdateConfigModel */): void;
605
+ observeShowTutorial(): any/* kotlinx.coroutines.flow.Flow<boolean> */;
606
+ tutorialPassed(skipped: boolean): void;
607
+ playerExit(): void;
608
+ readonly __doNotUseIt: __doNotImplementIt;
609
+ }
610
+ }
561
611
  export namespace com.debertz.logic.client.domain.mechanic.online {
562
- interface OnlineGameMechanic /* extends com.debertz.logic.client.domain.mechanic.GameMechanic */ {
612
+ interface OnlineGameMechanic extends com.debertz.logic.client.domain.mechanic.GameMechanic {
563
613
  readonly currentPlayerId: string;
564
614
  observeFromClientAction(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.redux.actions.client.from.FromClientAction> */;
565
615
  mechanicAction(action: com.debertz.logic.redux.actions.mechanic.MechanicAction): void;
566
616
  error(error: Nullable<com.debertz.logic.client.redux.state.ErrorState>): void;
617
+ onCreate(): void;
618
+ onDestroy(): void;
619
+ getConfig(): com.debertz.logic.data.models.table.config.Config;
620
+ getClientConfig(): any/* com.debertz.logic.client.data.models.config.ClientConfig */;
621
+ observeConfig(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.data.models.table.config.Config> */;
622
+ observeUsers(): any/* kotlinx.coroutines.flow.Flow<kotlin.collections.List<com.logic.data.models.player.GameUserInfo>> */;
623
+ observeClientConfig(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.config.ClientConfig> */;
624
+ observeGameLifecycle(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.GameLifecycleViewModel> */;
625
+ observeRestartGameExpectant(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.client.data.models.expectants.RestartGameExpectant>> */;
626
+ observeScene(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.SceneViewModel> */;
627
+ observeSceneId(): any/* kotlinx.coroutines.flow.Flow<string> */;
628
+ observeError(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.client.redux.state.ErrorState>> */;
629
+ observeInfoMessage(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.data.models.messages.Message>> */;
630
+ observeGameType(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.config.GameType> */;
631
+ observeChatOpened(): any/* kotlinx.coroutines.flow.Flow<boolean> */;
632
+ observeLastBribe(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.client.data.models.LastBribeViewModel>> */;
633
+ observeGameInfo(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.client.data.models.GameInfoViewModel>> */;
634
+ observeSettingsOpened(): any/* kotlinx.coroutines.flow.Flow<boolean> */;
635
+ switchLastBribe(open: boolean): void;
636
+ switchGameInfo(open: boolean): void;
637
+ switchSettings(open: boolean): void;
638
+ switchChat(open: boolean): void;
639
+ foreground(foreground: boolean): void;
640
+ updateConfig(updateConfig: any/* com.debertz.logic.client.data.models.config.UpdateConfigModel */): void;
641
+ observeShowTutorial(): any/* kotlinx.coroutines.flow.Flow<boolean> */;
642
+ tutorialPassed(skipped: boolean): void;
643
+ playerExit(): void;
567
644
  readonly __doNotUseIt: __doNotImplementIt;
568
645
  }
569
646
  }
@@ -583,10 +660,11 @@ export namespace com.debertz.logic.client.redux.state {
583
660
  }
584
661
  }
585
662
  export interface GameClientEngineController {
663
+ readonly parser: ParserHelper;
586
664
  setEnableLogger(enabled: boolean): void;
587
665
  createOnlineGameEngine(currentPlayerId: string): com.debertz.logic.client.domain.mechanic.online.OnlineGameMechanic;
588
666
  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;
589
667
  readonly __doNotUseIt: __doNotImplementIt;
590
668
  }
591
669
  export function createGameClientController(loggerCallback: (p0: string, p1: Nullable<string>, p2: string, p3: Nullable<Error>, p4: Nullable<com.logic.utils.logger.game.LoggerPayload>) => void): GameClientEngineController;
592
- export as namespace Logic_Debertz_game_client_logic_deb;
670
+ export as namespace Logic_Debertz_game_client;