@seriousgaming/sdk-tools 1.2.0 → 1.3.0

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.
@@ -26,6 +26,12 @@
26
26
  * (§14).
27
27
  */
28
28
  import { EventEmitter } from 'events';
29
+ /**
30
+ * Longest name a participant may give themselves (§12.5). Their name reaches
31
+ * the host's own chrome and every roster, as a team's does, so it takes the
32
+ * team name's ceiling.
33
+ */
34
+ export declare const MAX_PARTICIPANT_NAME_LENGTH = 60;
29
35
  export interface ParticipantRecord {
30
36
  id: string;
31
37
  teamId: string;
@@ -12,7 +12,7 @@
12
12
  */
13
13
  import type { Participant } from '@seriousgaming/sdk';
14
14
  import type { ResolvedGameSettings } from './game-settings';
15
- import type { ParticipantRecord } from './participant-registry';
15
+ import { type ParticipantRecord } from './participant-registry';
16
16
  import type { MutationCommand } from './protocol';
17
17
  import type { SessionHost, TeamBounds } from './session-host';
18
18
  /**
@@ -105,6 +105,9 @@ export declare class SessionRoster {
105
105
  renameOwnTeam(command: Extract<MutationCommand, {
106
106
  type: 'renameOwnTeam';
107
107
  }>): undefined;
108
+ renameSelf(command: Extract<MutationCommand, {
109
+ type: 'renameSelf';
110
+ }>): undefined;
108
111
  addParticipant(teamId: string, name?: string): Promise<undefined>;
109
112
  renameParticipant(participantId: string, name: string): undefined;
110
113
  moveParticipant(participantId: string, toTeamId: string): Promise<undefined>;