trucoshi 0.4.4 → 0.4.6

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/types.d.ts CHANGED
@@ -99,6 +99,7 @@ export declare enum EServerEvent {
99
99
  PREVIOUS_HAND = "PREVIOUS_HAND",
100
100
  UPDATE_MATCH = "UPDATE_MATCH",
101
101
  WAITING_PLAY = "WAITING_PLAY",
102
+ UPDATE_ACTIVE_MATCHES = "UPDATE_ACTIVE_MATCHES",
102
103
  PLAYER_USED_CARD = "PLAYER_USED_CARD",
103
104
  PLAYER_SAID_COMMAND = "PLAYER_SAID_COMMAND",
104
105
  WAITING_POSSIBLE_SAY = "WAITING_POSSIBLE_SAY",
@@ -125,6 +126,7 @@ export interface ServerToClientEvents {
125
126
  [EServerEvent.WAITING_POSSIBLE_SAY]: (match: IPublicMatch, callback: (data: IWaitingSayData) => void) => void;
126
127
  [EServerEvent.PREVIOUS_HAND]: (value: IMatchPreviousHand, callback: () => void) => void;
127
128
  [EServerEvent.UPDATE_CHAT]: (room: IPublicChatRoom, message?: IChatMessage) => void;
129
+ [EServerEvent.UPDATE_ACTIVE_MATCHES]: (activeMatches: IPublicMatchInfo[]) => void;
128
130
  [EServerEvent.UPDATE_MATCH]: (match: IPublicMatch) => void;
129
131
  [EServerEvent.PLAYER_USED_CARD]: (match: IPublicMatch, card: IPlayedCard) => void;
130
132
  [EServerEvent.PLAYER_SAID_COMMAND]: (match: IPublicMatch, command: ISaidCommand) => void;
@@ -151,6 +153,7 @@ export interface ClientToServerEvents {
151
153
  }>) => void;
152
154
  [EClientEvent.SET_SESSION]: (id: string | null, session: string | null, callback?: IEventCallback<{
153
155
  session?: string;
156
+ serverVersion: string;
154
157
  activeMatches: Array<IPublicMatchInfo>;
155
158
  }>) => void;
156
159
  [EClientEvent.JOIN_MATCH]: (matchSessionId: string, teamIdx: 0 | 1 | undefined, callback: IEventCallback<{
package/dist/types.js CHANGED
@@ -61,6 +61,7 @@ var EServerEvent;
61
61
  EServerEvent["PREVIOUS_HAND"] = "PREVIOUS_HAND";
62
62
  EServerEvent["UPDATE_MATCH"] = "UPDATE_MATCH";
63
63
  EServerEvent["WAITING_PLAY"] = "WAITING_PLAY";
64
+ EServerEvent["UPDATE_ACTIVE_MATCHES"] = "UPDATE_ACTIVE_MATCHES";
64
65
  EServerEvent["PLAYER_USED_CARD"] = "PLAYER_USED_CARD";
65
66
  EServerEvent["PLAYER_SAID_COMMAND"] = "PLAYER_SAID_COMMAND";
66
67
  EServerEvent["WAITING_POSSIBLE_SAY"] = "WAITING_POSSIBLE_SAY";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trucoshi",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "main": "dist/types.js",
5
5
  "license": "GPL-3.0",
6
6
  "scripts": {