fbsim-core JavaScript & TypeScript API - v1.0.0-beta.2
    Preparing search index...

    Class LeagueConference

    A WASM-friendly wrapper around LeagueConference.

    Index

    Constructors

    Properties

    divisions: any

    Returns the divisions as a JSON array.

    name: string

    Gets the conference name.

    numDivisions: number

    Returns the number of divisions in this conference.

    numTeams: number

    Returns the total number of teams in this conference.

    Methods

    • Adds a division to the conference (takes ownership of the division).

      Parameters

      Returns void

    • Returns all team IDs across all divisions.

      Returns any

    • Checks if a team is in this conference.

      Parameters

      • team_id: number

      Returns boolean

    • Returns void

    • Returns the conference as a JSON-serializable object.

      Returns any

    • Creates a new conference with the given name.

      Parameters

      • name: string

      Returns LeagueConference