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

    Class LeagueDivision

    A WASM-friendly wrapper around LeagueDivision.

    Index

    Constructors

    Properties

    name: string

    Gets the division name.

    numTeams: number

    Returns the number of teams in this division.

    teams: any

    Returns the team IDs in this division.

    Methods

    • Adds a team to the division by ID.

      Parameters

      • team_id: number

      Returns void

    • Checks if a team is in this division.

      Parameters

      • team_id: number

      Returns boolean

    • Returns void

    • Returns the division as a JSON-serializable object.

      Returns any

    • Creates a new division with the given name.

      Parameters

      • name: string

      Returns LeagueDivision