SkeldJS
    Preparing search index...

    Class SwitchSystem<RoomType>

    Represents a system responsible for handling switches in Electrical.

    See SwitchSystemEvents for events to listen to.

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    alwaysFlipSwitch: number = 2
    brightnessChangePerTick: number = 3
    flipChance: number = 0.5
    maxBrightness: number = 255
    minBrightness: number = 0
    updateCooldownDuration: number = 0.03
    actual: SwitchSetup = ...

    The current switch states.

    brightness: number = SwitchSystem.maxBrightness

    The brightness of lights.

    expected: SwitchSetup = ...

    The switch states that are expected.

    isDirty: boolean = false
    shipStatus: ShipStatus<RoomType>
    systemType: SystemType

    Accessors

    Methods

    • Sabotage this system. This is an authoritative operation and can result in a client being banned for hacking if called improperly.

      Returns Promise<void>