Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RoleSettings

Hierarchy

  • RoleSettings

Implements

  • AllRoleSettings

Index

Methods

Static Deserialize

Static isValid

  • isValid(settings: RoleSettings): boolean

Deserialize

Serialize

patch

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

Constructors

constructor

  • new RoleSettings(roleSettings: Partial<{ engineerCooldown: number; engineerInVentMaxTime: number; guardianAngelCooldown: number; impostorsCanSeeProtected: boolean; protectionDurationSeconds: number; 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; }>; scientistBatteryCharge: number; scientistCooldown: number; shapeshiftDuration: number; shapeshifterCooldown: number; shapeshifterLeaveSkin: boolean }>): RoleSettings
  • Parameters

    • roleSettings: Partial<{ engineerCooldown: number; engineerInVentMaxTime: number; guardianAngelCooldown: number; impostorsCanSeeProtected: boolean; protectionDurationSeconds: number; 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; }>; scientistBatteryCharge: number; scientistCooldown: number; shapeshiftDuration: number; shapeshifterCooldown: number; shapeshifterLeaveSkin: boolean }>

    Returns RoleSettings

Properties

engineerCooldown

engineerCooldown: number

engineerInVentMaxTime

engineerInVentMaxTime: number

guardianAngelCooldown

guardianAngelCooldown: number

impostorsCanSeeProtected

impostorsCanSeeProtected: boolean

protectionDurationSeconds

protectionDurationSeconds: number

roleChances

roleChances: Partial<Record<RoleType, RoleChanceSettings>>

scientistBatteryCharge

scientistBatteryCharge: number

scientistCooldown

scientistCooldown: number

shapeshiftDuration

shapeshiftDuration: number

shapeshifterCooldown

shapeshifterCooldown: number

shapeshifterLeaveSkin

shapeshifterLeaveSkin: boolean

Generated using TypeDoc