Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GameSettings

Hierarchy

  • GameSettings

Index

Methods

Static Deserialize

Static isValid

  • isValid(settings: GameSettings): boolean

Deserialize

Serialize

  • Serialize(writer: HazelWriter, version: number): void

clone

  • clone(): GameSettings

patch

  • patch(settings: Partial<AllGameSettings>): void

Properties

anonymousVotes

anonymousVotes: boolean

commonTasks

commonTasks: number

confirmEjects

confirmEjects: boolean

crewmateVision

crewmateVision: number

discussionTime

discussionTime: number

emergencyCooldown

emergencyCooldown: number

impostorVision

impostorVision: number

isDefaults

isDefaults: boolean

keywords

keywords: GameKeyword

killCooldown

killCooldown: number

killDistance

killDistance: KillDistance

longTasks

longTasks: number

map

map: GameMap

maxPlayers

maxPlayers: number

numEmergencies

numEmergencies: number

numImpostors

numImpostors: number

playerSpeed

playerSpeed: number

roleSettings

roleSettings: RoleSettings

shortTasks

shortTasks: number

taskbarUpdates

taskbarUpdates: TaskBarUpdate

visualTasks

visualTasks: boolean

votingTime

votingTime: number

Constructors

constructor

  • new GameSettings(settings?: Partial<{ anonymousVotes: boolean; commonTasks: number; confirmEjects: boolean; crewmateVision: number; discussionTime: number; emergencyCooldown: number; impostorVision: number; isDefaults: boolean; keywords: GameKeyword; killCooldown: number; killDistance: KillDistance; longTasks: number; map: GameMap; maxPlayers: number; numEmergencies: number; numImpostors: number; playerSpeed: number; roleSettings: Partial<{ roleChances: Partial<{ 0?: Partial<{ maxPlayers: number; chance: number; }> | undefined; 1?: Partial<{ maxPlayers: number; chance: number; }> | undefined; 2?: Partial<{ maxPlayers: number; chance: number; }> | undefined; 3?: Partial<...> | undefined; 4?: Partial<...> | undefined; 5?: Partial<...> | undefined; }>; ...>; shortTasks: number; taskbarUpdates: TaskBarUpdate; version: number; visualTasks: boolean; votingTime: number }>): GameSettings
  • Parameters

    • settings: Partial<{ anonymousVotes: boolean; commonTasks: number; confirmEjects: boolean; crewmateVision: number; discussionTime: number; emergencyCooldown: number; impostorVision: number; isDefaults: boolean; keywords: GameKeyword; killCooldown: number; killDistance: KillDistance; longTasks: number; map: GameMap; maxPlayers: number; numEmergencies: number; numImpostors: number; playerSpeed: number; roleSettings: Partial<{ roleChances: Partial<{ 0?: Partial<{ maxPlayers: number; chance: number; }> | undefined; 1?: Partial<{ maxPlayers: number; chance: number; }> | undefined; 2?: Partial<{ maxPlayers: number; chance: number; }> | undefined; 3?: Partial<...> | undefined; 4?: Partial<...> | undefined; 5?: Partial<...> | undefined; }>; ...>; shortTasks: number; taskbarUpdates: TaskBarUpdate; version: number; visualTasks: boolean; votingTime: number }> = {}

    Returns GameSettings

Generated using TypeDoc