game_client_logic_deb 1.5.0 → 1.5.2

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.
@@ -15,13 +15,14 @@ export declare namespace com.logic.data.models {
15
15
  }
16
16
  export declare namespace com.logic.data.models.player {
17
17
  class GameUserInfo implements com.logic.data.models.player.PlayerIdContract {
18
- constructor(playerId: string, name: string, avatarUrl?: Nullable<string>, isBot?: boolean, payload?: Nullable<any>);
18
+ constructor(playerId: string, name: string, avatarUrl?: Nullable<string>, isBot?: boolean, initialLuckyFactor?: Nullable<number>, payload?: Nullable<any>);
19
19
  get playerId(): string;
20
20
  get name(): string;
21
21
  get avatarUrl(): Nullable<string>;
22
22
  get isBot(): boolean;
23
+ get initialLuckyFactor(): Nullable<number>;
23
24
  get payload(): Nullable<any>;
24
- copy(playerId?: string, name?: string, avatarUrl?: Nullable<string>, isBot?: boolean, payload?: Nullable<any>): com.logic.data.models.player.GameUserInfo;
25
+ copy(playerId?: string, name?: string, avatarUrl?: Nullable<string>, isBot?: boolean, initialLuckyFactor?: Nullable<number>, payload?: Nullable<any>): com.logic.data.models.player.GameUserInfo;
25
26
  toString(): string;
26
27
  hashCode(): number;
27
28
  equals(other: Nullable<any>): boolean;
@@ -82,6 +83,18 @@ export declare namespace com.logic.data.models.player {
82
83
  } & any/* kotlinx.serialization.internal.SerializerFactory */;
83
84
  }
84
85
  }
86
+ export declare namespace com.logic.data.models.player {
87
+ class PlayerLuckyFactor implements com.logic.data.models.player.PlayerIdContract {
88
+ constructor(playerId: string, factor: number);
89
+ get playerId(): string;
90
+ get factor(): number;
91
+ copy(playerId?: string, factor?: number): com.logic.data.models.player.PlayerLuckyFactor;
92
+ toString(): string;
93
+ hashCode(): number;
94
+ equals(other: Nullable<any>): boolean;
95
+ readonly __doNotUseOrImplementIt: com.logic.data.models.player.PlayerIdContract["__doNotUseOrImplementIt"];
96
+ }
97
+ }
85
98
  export declare namespace com.logic.data.models.rules {
86
99
  class Rules {
87
100
  constructor(needToPutHigherTrump: boolean, distributePoints: boolean, protectBella: boolean, oneTryToProtectBella: boolean, enableFourSevensCombination: boolean, enableTrumpSevenCombination: boolean, enableTrumpSevenCombinationAfterDistribution: boolean, playerWhoChooseSuitGoFirst: boolean, winnerShuffleCards: boolean, playWithoutLiabilities: boolean, trumpCardGoToPlayerWhoShuffleCards: boolean, enableFineIfNoBribes: boolean, fineIfNoBribes: number, enableFineAfterThirdByte: boolean, checkTrumpCombination: boolean, checkOnlyTrumpDebertz: boolean, tenCardsInHand: boolean);
@@ -644,7 +657,7 @@ export declare namespace com.debertz.logic.redux.actions.game {
644
657
  get actionTag(): string;
645
658
  }
646
659
  class PartyEndedAction extends com.debertz.logic.redux.actions.game.GameAction {
647
- constructor(roomId: string, partyNumber: number, earnedBiggestPointPlayerId: string, partyLosers: Array<string>, partyWinners: Array<string>, gameLosers?: Nullable<Array<string>>, gameWinners?: Nullable<Array<string>>);
660
+ constructor(roomId: string, partyNumber: number, earnedBiggestPointPlayerId: string, partyLosers: Array<string>, partyWinners: Array<string>, gameLosers?: Nullable<Array<string>>, gameWinners?: Nullable<Array<string>>, luckyFactors?: Nullable<Array<com.logic.data.models.player.PlayerLuckyFactor>>);
648
661
  get roomId(): string;
649
662
  get partyNumber(): number;
650
663
  get earnedBiggestPointPlayerId(): string;
@@ -652,10 +665,11 @@ export declare namespace com.debertz.logic.redux.actions.game {
652
665
  get partyWinners(): Array<string>;
653
666
  get gameLosers(): Nullable<Array<string>>;
654
667
  get gameWinners(): Nullable<Array<string>>;
668
+ get luckyFactors(): Nullable<Array<com.logic.data.models.player.PlayerLuckyFactor>>;
655
669
  get isGameFinished(): boolean;
656
670
  equals(other: Nullable<any>): boolean;
657
671
  hashCode(): number;
658
- copy(roomId?: string, partyNumber?: number, earnedBiggestPointPlayerId?: string, partyLosers?: Array<string>, partyWinners?: Array<string>, gameLosers?: Nullable<Array<string>>, gameWinners?: Nullable<Array<string>>): com.debertz.logic.redux.actions.game.PartyEndedAction;
672
+ copy(roomId?: string, partyNumber?: number, earnedBiggestPointPlayerId?: string, partyLosers?: Array<string>, partyWinners?: Array<string>, gameLosers?: Nullable<Array<string>>, gameWinners?: Nullable<Array<string>>, luckyFactors?: Nullable<Array<com.logic.data.models.player.PlayerLuckyFactor>>): com.debertz.logic.redux.actions.game.PartyEndedAction;
659
673
  toString(): string;
660
674
  get actionTag(): string;
661
675
  }
@@ -758,7 +772,7 @@ export declare interface ParserHelper {
758
772
  encodeFromClientEvent(action: com.debertz.logic.redux.actions.client.from.FromClientAction): string;
759
773
  decodeFromClientEvent(fromPlayerId: string, json: string): com.debertz.logic.redux.actions.client.from.FromClientAction;
760
774
  encodeToClientEvent(action: com.debertz.logic.redux.actions.client.to.ToClientAction): string;
761
- decodeToClientEventToMechanicAction(playerId: string, engine: com.debertz.logic.GameStoreContract, json: string): com.debertz.logic.redux.actions.mechanic.MechanicAction;
775
+ decodeToClientEventToMechanicAction(playerId: string, engine: com.debertz.logic.GameStoreContract, json: string): Array<com.debertz.logic.redux.actions.mechanic.MechanicAction>;
762
776
  readonly __doNotUseOrImplementIt: {
763
777
  readonly ParserHelper: unique symbol;
764
778
  };
@@ -772,6 +786,7 @@ export declare namespace com.debertz.logic.client.domain.mechanic {
772
786
  observeConfig(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.data.models.table.config.Config> */;
773
787
  observeUsers(): any/* kotlinx.coroutines.flow.Flow<kotlin.collections.List<com.logic.data.models.player.GameUserInfo>> */;
774
788
  observeClientConfig(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.config.ClientConfig> */;
789
+ observePlayersHandsMetadata(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.PlayersHandsMetadataViewModel> */;
775
790
  observeGameLifecycle(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.GameLifecycleViewModel> */;
776
791
  observeRestartGameExpectant(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.client.data.models.expectants.RestartGameExpectant>> */;
777
792
  observeScene(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.SceneViewModel> */;
@@ -806,7 +821,7 @@ export declare namespace com.debertz.logic.client.domain.mechanic.online {
806
821
  interface OnlineGameMechanic extends com.debertz.logic.client.domain.mechanic.GameMechanic {
807
822
  readonly currentPlayerId: string;
808
823
  observeFromClientAction(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.redux.actions.client.from.FromClientAction> */;
809
- mechanicAction(action: com.debertz.logic.redux.actions.mechanic.MechanicAction): void;
824
+ mechanicAction(action: Array<com.debertz.logic.redux.actions.mechanic.MechanicAction>): void;
810
825
  onCreate(): void;
811
826
  onDestroy(): void;
812
827
  getConfig(): com.debertz.logic.data.models.table.config.Config;
@@ -814,6 +829,7 @@ export declare namespace com.debertz.logic.client.domain.mechanic.online {
814
829
  observeConfig(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.data.models.table.config.Config> */;
815
830
  observeUsers(): any/* kotlinx.coroutines.flow.Flow<kotlin.collections.List<com.logic.data.models.player.GameUserInfo>> */;
816
831
  observeClientConfig(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.config.ClientConfig> */;
832
+ observePlayersHandsMetadata(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.PlayersHandsMetadataViewModel> */;
817
833
  observeGameLifecycle(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.GameLifecycleViewModel> */;
818
834
  observeRestartGameExpectant(): any/* kotlinx.coroutines.flow.Flow<Nullable<com.debertz.logic.client.data.models.expectants.RestartGameExpectant>> */;
819
835
  observeScene(): any/* kotlinx.coroutines.flow.Flow<com.debertz.logic.client.data.models.SceneViewModel> */;