Documentation ¶
Overview ¶
Package sc2gd contains types for the Starcraft 2 Game Data APIs
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ladder ¶
type Ladder struct { Team []struct { ID uint64 `json:"id"` Rating int `json:"rating"` Wins int `json:"wins"` Losses int `json:"losses"` Ties int `json:"ties"` Points int `json:"points"` LongestWinStreak int `json:"longest_win_streak"` CurrentWinStreak int `json:"current_win_streak"` CurrentRank int `json:"current_rank"` HighestRank int `json:"highest_rank"` PreviousRank int `json:"previous_rank"` JoinTimeStamp int `json:"join_time_stamp"` LastPlayedTimeStamp int `json:"last_played_time_stamp"` Member []struct { LegacyLink struct { ID int `json:"id"` Realm int `json:"realm"` Name string `json:"name"` Path string `json:"path"` } `json:"legacy_link"` PlayedRaceCount []struct { Race string `json:"race"` Count int `json:"count"` } `json:"played_race_count"` CharacterLink struct { ID int `json:"id"` BattleTag string `json:"battle_tag"` Key struct { Href string `json:"href"` } `json:"key"` } `json:"character_link"` ClanLink struct { ID int `json:"id"` ClanTag string `json:"clan_tag"` ClanName string `json:"clan_name"` IconURL string `json:"icon_url"` DecalURL string `json:"decal_url"` } `json:"clan_link"` } `json:"member"` } `json:"team"` }
Ladder structure
type League ¶
type League struct { Links struct { Self struct { Href string `json:"href"` } `json:"self"` } `json:"_links"` Key struct { LeagueID int `json:"league_id"` SeasonID int `json:"season_id"` QueueID int `json:"queue_id"` TeamType int `json:"team_type"` } `json:"key"` Tier []struct { ID int `json:"id"` MinRating int `json:"min_rating"` MaxRating int `json:"max_rating"` Division []struct { ID int `json:"id"` LadderID int `json:"ladder_id"` MemberCount int `json:"member_count"` } `json:"division"` } `json:"tier"` }
League structure
type QueueID ¶
type QueueID int
QueueID IDs for different league queues
const ( WoL1v1 QueueID WoL2v2 WoL3v3 WoL4v4 )
QueueID constants (1=WoL 1v1, 2=WoL 2v2, 3=WoL 3v3, 4=WoL 4v4) DO NOT REARRANGE
const ( HotS1v1 QueueID HotS2v2 HotS3v3 HotS4v4 )
QueueID constants (101=HotS 1v1, 102=HotS 2v2, 103=HotS 3v3, 104=HotS 4v4) DO NOT REARRANGE
const ( LotV1v1 QueueID LotV2v2 LotV3v3 LotV4v4 LotVArchon )
QueueID constants (201=LotV 1v1, 202=LotV 2v2, 203=LotV 3v3, 204=LotV 4v4, 206=LotV Archon) DO NOT REARRANGE
Click to show internal directories.
Click to hide internal directories.