This repository was archived by the owner on Jul 21, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstruct.go
161 lines (153 loc) · 5.17 KB
/
struct.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
package main
type PlanetInfo struct {
allZones map[int][]int
}
type SelfInfo struct {
Response struct {
ActiveZoneGame string `json:"active_zone_game"`
ActiveBossGame string `json:"active_boss_game"`
ActiveZonePosition string `json:"active_zone_position"`
ActivePlanet string `json:"active_planet"`
TimeOnPlanet int `json:"time_on_planet"`
Score string `json:"score"`
Level int `json:"level"`
NextLevelScore string `json:"next_level_score"`
} `json:"response"`
}
type Score struct {
Response struct {
OldScore string `json:"old_score"`
OldLevel int `json:"old_level"`
NewScore string `json:"new_score"`
NewLevel int `json:"new_level"`
NextLevelScore string `json:"next_level_score"`
} `json:"response"`
}
type ZoneInfo struct {
Response struct {
ZoneInfo struct {
CaptureProgress float64 `json:"capture_progress"`
Captured bool `json:"captured"`
Difficulty int `json:"difficulty"`
Gameid string `json:"gameid"`
Leader struct {
Accountid int `json:"accountid"`
Avatar string `json:"avatar"`
Name string `json:"name"`
URL string `json:"url"`
} `json:"leader"`
TopClans []struct {
Accountid int `json:"accountid"`
Avatar string `json:"avatar"`
Name string `json:"name"`
URL string `json:"url"`
} `json:"top_clans"`
Type int `json:"type"`
ZonePosition int `json:"zone_position"`
} `json:"zone_info"`
} `json:"response"`
}
type PlanetDetail struct {
GiveawayApps []int `json:"giveaway_apps"`
ID string `json:"id"`
State struct {
ActivationTime int `json:"activation_time"`
Active bool `json:"active"`
CaptureProgress float64 `json:"capture_progress"`
Captured bool `json:"captured"`
CloudFilename string `json:"cloud_filename"`
CurrentPlayers int `json:"current_players"`
Difficulty int `json:"difficulty"`
GiveawayID string `json:"giveaway_id"`
ImageFilename string `json:"image_filename"`
LandFilename string `json:"land_filename"`
MapFilename string `json:"map_filename"`
Name string `json:"name"`
Position int `json:"position"`
Priority int `json:"priority"`
TagIds string `json:"tag_ids"`
TotalJoins int `json:"total_joins"`
} `json:"state"`
TopClans []struct {
ClanInfo struct {
Accountid int `json:"accountid"`
Avatar string `json:"avatar"`
Name string `json:"name"`
URL string `json:"url"`
} `json:"clan_info"`
NumZonesControled int `json:"num_zones_controled"`
} `json:"top_clans"`
Zones []struct {
CaptureProgress float64 `json:"capture_progress"`
Captured bool `json:"captured"`
Difficulty int `json:"difficulty"`
Gameid string `json:"gameid"`
Leader struct {
Accountid int `json:"accountid"`
Avatar string `json:"avatar"`
Name string `json:"name"`
URL string `json:"url"`
} `json:"leader"`
TopClans []struct {
Accountid int `json:"accountid"`
Avatar string `json:"avatar"`
Name string `json:"name"`
URL string `json:"url"`
} `json:"top_clans"`
Type int `json:"type"`
ZonePosition int `json:"zone_position"`
} `json:"zones"`
}
type Planets struct {
Response struct {
Planets []PlanetDetail `json:"planets"`
} `json:"response"`
}
type Boss struct {
Response struct {
BossStatus struct {
BossHp int `json:"boss_hp"`
BossMaxHp int `json:"boss_max_hp"`
BossPlayers []struct {
Accountid int `json:"accountid"`
ClanInfo struct {
Accountid int `json:"accountid"`
Avatar string `json:"avatar"`
Name string `json:"name"`
URL string `json:"url"`
} `json:"clan_info"`
Hp int `json:"hp"`
LevelOnJoin int `json:"level_on_join"`
MaxHp int `json:"max_hp"`
Name string `json:"name"`
NewLevel int `json:"new_level"`
NextLevelScore string `json:"next_level_score"`
Salien struct {
Arms int `json:"arms"`
BodyType int `json:"body_type"`
Eyes int `json:"eyes"`
HatItemid string `json:"hat_itemid"`
Legs int `json:"legs"`
Mouth int `json:"mouth"`
ShirtItemid string `json:"shirt_itemid"`
} `json:"salien"`
ScoreOnJoin string `json:"score_on_join"`
TimeJoined int `json:"time_joined"`
TimeLastSeen int `json:"time_last_seen"`
XpEarned int `json:"xp_earned"`
} `json:"boss_players"`
} `json:"boss_status"`
GameOver bool `json:"game_over"`
NumLaserUses int `json:"num_laser_uses"`
NumTeamHeals int `json:"num_team_heals"`
WaitingForPlayers bool `json:"waiting_for_players"`
} `json:"response"`
}
type Token struct {
PersonaName string `json:"persona_name"`
Steamid string `json:"steamid"`
Success int `json:"success"`
Token string `json:"token"`
WebapiHost string `json:"webapi_host"`
WebapiHostSecure string `json:"webapi_host_secure"`
}