libram
    Preparing search index...

    Variable byClassConst

    byClass: <S>(
        options: Switch<string, S>,
        alternateSource?: string | ((...args: never[]) => string),
    ) => S = ...

    Picks an option based on your player class

    Type Declaration

      • <S>(
            options: Switch<string, S>,
            alternateSource?: string | ((...args: never[]) => string),
        ): S
      • Type Parameters

        • S

        Parameters

        • options: Switch<string, S>

          An object keyed by player class; it must either contain all classes, or have a default parameter.

        • OptionalalternateSource: string | ((...args: never[]) => string)

          An optional anternate way of determining which Class to choose by.

        Returns S

        The option corresponding to your player class.