@wvdsh/api 0.1.64 → 0.1.66

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.
@@ -38,6 +38,7 @@ export declare const GAME_ENGINE: {
38
38
  readonly RENPY: "RENPY";
39
39
  readonly CUSTOM: "CUSTOM";
40
40
  };
41
+ export declare const MAX_LOBBY_USERS = 100;
41
42
  export declare const LOBBY_DEFAULTS: {
42
43
  readonly MAX_PLAYERS: 100;
43
44
  readonly EXPIRY_HOURS: 24;
@@ -204,6 +205,7 @@ export type IFrameEventPayloadMap = {
204
205
  contentIdentifiers: string[];
205
206
  };
206
207
  };
208
+ export declare const LAUNCH_PARAM_PREFIX = "wvdsh_";
207
209
  export interface GameLaunchParams {
208
210
  lobby?: GenericId<'lobbies'>;
209
211
  [key: string]: string | undefined;
@@ -12,8 +12,9 @@ export const GAME_ENGINE = {
12
12
  };
13
13
  // ========== LOBBIES ==========
14
14
  const LOBBY_EXPIRY_HOURS = 24;
15
+ export const MAX_LOBBY_USERS = 100;
15
16
  export const LOBBY_DEFAULTS = {
16
- MAX_PLAYERS: 100,
17
+ MAX_PLAYERS: MAX_LOBBY_USERS,
17
18
  EXPIRY_HOURS: LOBBY_EXPIRY_HOURS,
18
19
  EXPIRY_MS: LOBBY_EXPIRY_HOURS * 60 * 60 * 1000
19
20
  };
@@ -127,6 +128,8 @@ export const SW_PRELOAD_MESSAGE_TYPE = {
127
128
  READY: 'sw-ready',
128
129
  FAILED: 'sw-failed'
129
130
  };
131
+ // Launch params passed from URL query params to the game SDK
132
+ export const LAUNCH_PARAM_PREFIX = 'wvdsh_';
130
133
  // URL params referenced by external consumers
131
134
  export const UrlParams = {
132
135
  RedirectUrl: 'rdurl',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wvdsh/api",
3
- "version": "0.1.64",
3
+ "version": "0.1.66",
4
4
  "description": "Public API types and shared constants for the Wavedash platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",