Download src/models/Player.ts from ItsMa8di/idbot: direct link, hf CLI and curl.
- Browser
- Download file 1.53 kB
-
https://huggingface.co/spaces/ItsMa8di/idbot/resolve/main/src/models/Player.ts
- Command line
-
hf download hf://spaces/ItsMa8di/idbot/src/models/Player.ts
-
curl -L -o Player.ts https://huggingface.co/spaces/ItsMa8di/idbot/resolve/main/src/models/Player.ts
1.53 kB
| import { Gadget, Gear, StarPower } from "../../types"; | |
| class Icon { | |
| id: number; | |
| constructor(id: number) { | |
| this.id = id; | |
| } | |
| } | |
| class Club { | |
| tag: string; | |
| name: string; | |
| constructor(tag: string, name: string) { | |
| this.tag = tag; | |
| this.name = name; | |
| } | |
| } | |
| class Brawler { | |
| id: number; | |
| name: string; | |
| power: number; | |
| rank: number; | |
| trophies: number; | |
| highestTrophies: number; | |
| gears: Gear[]; | |
| starPowers: StarPower[]; | |
| gadgets: Gadget[]; | |
| constructor( | |
| id: number, | |
| name: string, | |
| power: number, | |
| rank: number, | |
| trophies: number, | |
| highestTrophies: number, | |
| gears: Gear[], | |
| starPowers: StarPower[], | |
| gadgets: Gadget[], | |
| ) { | |
| this.id = id; | |
| this.name = name; | |
| this.power = power; | |
| this.rank = rank; | |
| this.trophies = trophies; | |
| this.highestTrophies = highestTrophies; | |
| this.gears = gears; | |
| this.starPowers = starPowers; | |
| this.gadgets = gadgets; | |
| } | |
| } | |
| class Player { | |
| tag: string; | |
| name: string; | |
| icon: Icon; | |
| trophies: number; | |
| highestTrophies: number; | |
| expLevel: number; | |
| club: Club; | |
| brawlers: Brawler[]; | |
| constructor( | |
| tag: string, | |
| name: string, | |
| icon: Icon, | |
| trophies: number, | |
| highestTrophies: number, | |
| expLevel: number, | |
| club: Club, | |
| brawlers: Brawler[], | |
| ) { | |
| this.tag = tag; | |
| this.name = name; | |
| this.icon = icon; | |
| this.trophies = trophies; | |
| this.highestTrophies = highestTrophies; | |
| this.expLevel = expLevel; | |
| this.club = club; | |
| this.brawlers = brawlers; | |
| } | |
| } | |
| export { Player, Brawler }; | |