Vinyl
    Preparing search index...

    Class PlayerRegistryImpl

    A registry of non-disposed players. Used for leak detection and debugging diagnostics.

    Implements

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    • Parameters

      • OptionalmaxPlayersWarning: number

        The number of concurrent players before a warning is logged. default: 5

      Returns PlayerRegistryImpl

    Properties

    maxPlayersWarning: number

    The number of concurrent players before a warning is logged. default: 5

    Accessors

    • get players(): readonly AnyRecord[]

      Returns the non-disposed Vinyl players.

      Returns readonly AnyRecord[]

    Methods

    • Adds a player reference. All players must be removed before disposing VinylGlobal.

      Parameters

      Returns void

    • Returns void

      An IllegalStateError if all players have not been removed.