@levrbet/shared 0.4.25 → 0.4.26

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.
@@ -7,7 +7,8 @@ export declare enum RoomEvent {
7
7
  export declare enum GameEvent {
8
8
  ScoreUpdate = "gameScoreUpdate",
9
9
  PhaseUpdate = "gamePhaseUpdate",
10
- GameTimeUpdate = "gameTimeUpdate"
10
+ GameTimeUpdate = "gameTimeUpdate",
11
+ StateUpdate = "gameStateUpdate"
11
12
  }
12
13
  export type GameScoreUpdate = Scores;
13
14
  export type GamePhaseUpdate = {
@@ -15,6 +16,13 @@ export type GamePhaseUpdate = {
15
16
  levrFixtureId: LevrFixtureId;
16
17
  phase: GamePhase;
17
18
  };
19
+ export type GameStateUpdate = {
20
+ chainId: number;
21
+ gameId: number;
22
+ levrFixtureId: LevrFixtureId;
23
+ phase: GamePhase;
24
+ paused: boolean;
25
+ };
18
26
  export type GameTimeUpdate = {
19
27
  chainId: number;
20
28
  gameObjectId: string;
@@ -12,6 +12,7 @@ var GameEvent;
12
12
  GameEvent["ScoreUpdate"] = "gameScoreUpdate";
13
13
  GameEvent["PhaseUpdate"] = "gamePhaseUpdate";
14
14
  GameEvent["GameTimeUpdate"] = "gameTimeUpdate";
15
+ GameEvent["StateUpdate"] = "gameStateUpdate";
15
16
  })(GameEvent || (exports.GameEvent = GameEvent = {}));
16
17
  // MARKET EVENTS AND TYPES
17
18
  var MarketEvent;
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/core/socket.io/events.ts"],"names":[],"mappings":";;;AAGA,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,kCAAqB,CAAA;IACrB,oCAAuB,CAAA;AAC3B,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAED,wBAAwB;AACxB,IAAY,SAIX;AAJD,WAAY,SAAS;IACjB,4CAA+B,CAAA;IAC/B,4CAA+B,CAAA;IAC/B,8CAAiC,CAAA;AACrC,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAgBD,0BAA0B;AAC1B,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,8CAA+B,CAAA;IAC/B,oDAAqC,CAAA;AACzC,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB"}
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/core/socket.io/events.ts"],"names":[],"mappings":";;;AAGA,IAAY,SAGX;AAHD,WAAY,SAAS;IACjB,kCAAqB,CAAA;IACrB,oCAAuB,CAAA;AAC3B,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAED,wBAAwB;AACxB,IAAY,SAKX;AALD,WAAY,SAAS;IACjB,4CAA+B,CAAA;IAC/B,4CAA+B,CAAA;IAC/B,8CAAiC,CAAA;IACjC,4CAA+B,CAAA;AACnC,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAuBD,0BAA0B;AAC1B,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,8CAA+B,CAAA;IAC/B,oDAAqC,CAAA;AACzC,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levrbet/shared",
3
- "version": "0.4.25",
3
+ "version": "0.4.26",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {