trucoshi 13.1.0 → 13.2.1

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/dist/events.d.ts CHANGED
@@ -63,6 +63,7 @@ export declare enum EClientEvent {
63
63
  LIST_MATCHES = "LIST_MATCHES",
64
64
  LIST_RANKING = "LIST_RANKING",
65
65
  SET_PLAYER_READY = "SET_PLAYER_READY",
66
+ SET_SHOW_CARDS_AT_HAND_END = "SET_SHOW_CARDS_AT_HAND_END",
66
67
  JOIN_MATCH = "JOIN_MATCH",
67
68
  START_MATCH = "START_MATCH",
68
69
  PAUSE_MATCH = "PAUSE_MATCH",
@@ -117,6 +118,7 @@ export interface ClientToServerEvents {
117
118
  [EClientEvent.SET_PLAYER_READY]: (matchSessionId: string, ready: boolean, callback: IEventCallback<{
118
119
  match?: IPublicMatch;
119
120
  }>) => void;
121
+ [EClientEvent.SET_SHOW_CARDS_AT_HAND_END]: (matchSessionId: string, showCards: boolean, callback: IEventCallback<{}>) => void;
120
122
  [EClientEvent.JOIN_MATCH]: (matchSessionId: string, teamIdx: 0 | 1 | undefined, callback: IEventCallback<{
121
123
  match?: IPublicMatch;
122
124
  activeMatches?: IPublicMatchInfo[];
package/dist/events.js CHANGED
@@ -35,6 +35,7 @@ export var EClientEvent;
35
35
  EClientEvent["LIST_MATCHES"] = "LIST_MATCHES";
36
36
  EClientEvent["LIST_RANKING"] = "LIST_RANKING";
37
37
  EClientEvent["SET_PLAYER_READY"] = "SET_PLAYER_READY";
38
+ EClientEvent["SET_SHOW_CARDS_AT_HAND_END"] = "SET_SHOW_CARDS_AT_HAND_END";
38
39
  EClientEvent["JOIN_MATCH"] = "JOIN_MATCH";
39
40
  EClientEvent["START_MATCH"] = "START_MATCH";
40
41
  EClientEvent["PAUSE_MATCH"] = "PAUSE_MATCH";
package/dist/types.d.ts CHANGED
@@ -173,6 +173,10 @@ export interface IMatchPreviousHand {
173
173
  cards: ICard[];
174
174
  }>;
175
175
  } | null;
176
+ revealedHands: Array<{
177
+ idx: number;
178
+ cards: ICard[];
179
+ }>;
176
180
  rounds: IPlayedCard[][];
177
181
  points: IHandPoints;
178
182
  matchSessionId: string;
@@ -561,6 +565,7 @@ export interface IPlayer {
561
565
  hasSaidEnvidoPoints: boolean;
562
566
  hasSaidTruco: boolean;
563
567
  hasPassed: boolean;
568
+ showCardsAtHandEnd: boolean;
564
569
  isEnvidoTurn: boolean;
565
570
  isOwner: boolean;
566
571
  disabled: boolean;
@@ -578,6 +583,7 @@ export interface IPlayer {
578
583
  saidFlor(): void;
579
584
  saidTruco(): void;
580
585
  passed(): void;
586
+ setShowCardsAtHandEnd(showCards: boolean): void;
581
587
  resetPassed(): void;
582
588
  resetCommands(): void;
583
589
  calculateEnvido(): Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trucoshi",
3
- "version": "13.1.0",
3
+ "version": "13.2.1",
4
4
  "description": "Truco Game Server",
5
5
  "main": "dist/types.js",
6
6
  "license": "GPL-3.0",