Creates a new team with default values.
The team will have the name "Null Island Defaults" and all attributes set to 50.
ReadonlydefenseGets the team's defensive overall rating.
ReadonlynameGets the team's name.
ReadonlyoffenseGets the team's offensive overall rating.
ReadonlyshortGets the team's short name / abbreviation.
Returns the team as a JSON-serializable object.
This allows full access to all team properties from JavaScript.
StaticfromCreates a team from a JSON object.
value - A JavaScript object with team propertiesReturns an error if the object is invalid or has out-of-range values.
StaticfromCreates a new team with the specified overall ratings.
name - The team's full name (max 64 characters)short_name - The team's abbreviation (max 4 characters)offense_overall - Overall offensive rating (0-100)defense_overall - Overall defensive rating (0-100)Returns an error if any rating is out of range or names are too long.
A WASM-friendly wrapper around
FootballTeam.This wrapper provides JavaScript-accessible constructors and methods for creating and manipulating football teams.