trucoshi 0.6.3 → 0.6.5

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
@@ -1,7 +1,12 @@
1
1
  import { IHand } from "./lib";
2
- import { EMatchState } from "@prisma/client";
3
2
  import { CARDS, CARDS_HUMAN_READABLE } from "./lib/constants";
4
- export { CARDS, CARDS_HUMAN_READABLE, EMatchState };
3
+ export { CARDS, CARDS_HUMAN_READABLE };
4
+ export declare enum EMatchState {
5
+ UNREADY = "UNREADY",
6
+ READY = "READY",
7
+ STARTED = "STARTED",
8
+ FINISHED = "FINISHED"
9
+ }
5
10
  export interface ILobbyOptions {
6
11
  maxPlayers: 2 | 4 | 6;
7
12
  faltaEnvido: 1 | 2;
@@ -28,8 +33,10 @@ export interface IPublicMatch {
28
33
  teams: Array<IPublicTeam>;
29
34
  players: Array<IPublicPlayer>;
30
35
  me: IPublicPlayer | null;
31
- isNewHand: boolean;
36
+ freshHand: boolean;
32
37
  rounds: IPlayedCard[][];
38
+ lastCard?: ICard | null;
39
+ lastCommand?: ECommand | number | null;
33
40
  }
34
41
  export interface IPublicMatchInfo {
35
42
  ownerId: string;
package/dist/types.js CHANGED
@@ -1,11 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GAME_ERROR = exports.TMap = exports.EClientEvent = exports.EServerEvent = exports.EHandState = exports.EEnvidoCommand = exports.EEnvidoAnswerCommand = exports.EAnswerCommand = exports.ETrucoCommand = exports.EFlorCommand = exports.ESayCommand = exports.EChatSystem = exports.EMatchState = exports.CARDS_HUMAN_READABLE = exports.CARDS = void 0;
4
- const client_1 = require("@prisma/client");
5
- Object.defineProperty(exports, "EMatchState", { enumerable: true, get: function () { return client_1.EMatchState; } });
6
4
  const constants_1 = require("./lib/constants");
7
5
  Object.defineProperty(exports, "CARDS", { enumerable: true, get: function () { return constants_1.CARDS; } });
8
6
  Object.defineProperty(exports, "CARDS_HUMAN_READABLE", { enumerable: true, get: function () { return constants_1.CARDS_HUMAN_READABLE; } });
7
+ var EMatchState;
8
+ (function (EMatchState) {
9
+ EMatchState["UNREADY"] = "UNREADY";
10
+ EMatchState["READY"] = "READY";
11
+ EMatchState["STARTED"] = "STARTED";
12
+ EMatchState["FINISHED"] = "FINISHED";
13
+ })(EMatchState = exports.EMatchState || (exports.EMatchState = {}));
9
14
  var EChatSystem;
10
15
  (function (EChatSystem) {
11
16
  EChatSystem[EChatSystem["TEAM_0"] = 0] = "TEAM_0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trucoshi",
3
- "version": "0.6.3",
3
+ "version": "0.6.5",
4
4
  "main": "dist/types.js",
5
5
  "license": "GPL-3.0",
6
6
  "scripts": {