-
Notifications
You must be signed in to change notification settings - Fork 2
/
encyclopedia_vehicleprofile.go
183 lines (180 loc) · 5.95 KB
/
encyclopedia_vehicleprofile.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
// Auto generated file!
package wotb
type EncyclopediaVehicleprofileOptions struct {
// Engine ID. If module is not specified, standard module is used by default.
EngineId *int `json:"engine_id,omitempty"`
// Response field. The fields are separated with commas. Embedded fields are separated with dots. To exclude a field, use "-" in front of its name. In case the parameter is not defined, the method returns all fields. Maximum limit: 100.
Fields []string `json:"fields,omitempty"`
// Gun ID. If module is not specified, standard module is used by default.
GunId *int `json:"gun_id,omitempty"`
// Localization language. Default is "en". Valid values:
//
// "en" - English (by default)
// "ru" - Русский
// "pl" - Polski
// "de" - Deutsch
// "fr" - Français
// "es" - Español
// "zh-cn" - 简体中文
// "zh-tw" - 繁體中文
// "tr" - Türkçe
// "cs" - Čeština
// "th" - ไทย
// "vi" - Tiếng Việt
// "ko" - 한국어
Language *string `json:"language,omitempty"`
// Configuration ID. If specified, parameters of IDs of separate modules are ignored.
ProfileId *string `json:"profile_id,omitempty"`
// Suspension ID. If module is not specified, standard module is used by default.
SuspensionId *int `json:"suspension_id,omitempty"`
// Turret ID. If module is not specified, standard module is used by default.
TurretId *int `json:"turret_id,omitempty"`
}
type EncyclopediaVehicleprofile struct {
// Armor
Armor *struct {
// Hull armor
Hull *struct {
// Front (mm)
Front *int `json:"front,omitempty"`
// Rear (mm)
Rear *int `json:"rear,omitempty"`
// Sides (mm)
Sides *int `json:"sides,omitempty"`
} `json:"hull,omitempty"`
// Turret armor
Turret *struct {
// Front (mm)
Front *int `json:"front,omitempty"`
// Rear (mm)
Rear *int `json:"rear,omitempty"`
// Sides (mm)
Sides *int `json:"sides,omitempty"`
} `json:"turret,omitempty"`
} `json:"armor,omitempty"`
// The highest battle Tier of the vehicle
BattleLevelRangeMax *int `json:"battle_level_range_max,omitempty"`
// The lowest battle Tier of the vehicle
BattleLevelRangeMin *int `json:"battle_level_range_min,omitempty"`
// Engine characteristics
Engine *struct {
// Chance of engine fire
FireChance *float32 `json:"fire_chance,omitempty"`
// Vehicle name
Name *string `json:"name,omitempty"`
// Engine Power (hp)
Power *int `json:"power,omitempty"`
// Tier
Tier *int `json:"tier,omitempty"`
// Weight (kg)
Weight *int `json:"weight,omitempty"`
} `json:"engine,omitempty"`
// Engine ID
EngineId *int `json:"engine_id,omitempty"`
// Firepower (%)
Firepower *int `json:"firepower,omitempty"`
// Gun characteristics
Gun *struct {
// Aiming time (s)
AimTime *float32 `json:"aim_time,omitempty"`
// Caliber (mm)
Caliber *int `json:"caliber,omitempty"`
// Number of shells in the ammo
ClipCapacity *int `json:"clip_capacity,omitempty"`
// Reload time
ClipReloadTime *float32 `json:"clip_reload_time,omitempty"`
// Dispersion at 100 m (m)
Dispersion *float32 `json:"dispersion,omitempty"`
// Rate of fire (rounds/min)
FireRate *float32 `json:"fire_rate,omitempty"`
// Depression angle (deg)
MoveDownArc *int `json:"move_down_arc,omitempty"`
// Elevation angle (deg)
MoveUpArc *int `json:"move_up_arc,omitempty"`
// Vehicle name
Name *string `json:"name,omitempty"`
// Reload time (s)
ReloadTime *float32 `json:"reload_time,omitempty"`
// Tier
Tier *int `json:"tier,omitempty"`
// Traverse speed (deg/s)
TraverseSpeed *float32 `json:"traverse_speed,omitempty"`
// Weight (kg)
Weight *int `json:"weight,omitempty"`
} `json:"gun,omitempty"`
// Gun ID
GunId *int `json:"gun_id,omitempty"`
// Hit points
Hp *int `json:"hp,omitempty"`
// Hull HP
HullHp *int `json:"hull_hp,omitempty"`
// Hull weight (kg)
HullWeight *int `json:"hull_weight,omitempty"`
// Standard configuration
IsDefault *bool `json:"is_default,omitempty"`
// Maneuverability (%)
Maneuverability *int `json:"maneuverability,omitempty"`
// Ammunition
MaxAmmo *int `json:"max_ammo,omitempty"`
// Load limit (kg)
MaxWeight *int `json:"max_weight,omitempty"`
// Vehicle Configuration ID
ProfileId *string `json:"profile_id,omitempty"`
// Armor protection (%)
Protection *int `json:"protection,omitempty"`
// Gun shells characteristics
Shells *struct {
// Average damage (HP)
Damage *int `json:"damage,omitempty"`
// Average penetration (mm)
Penetration *int `json:"penetration,omitempty"`
// Type
Type *string `json:"type,omitempty"`
} `json:"shells,omitempty"`
// Shot efficiency (%)
ShotEfficiency *int `json:"shot_efficiency,omitempty"`
// Signal range
SignalRange *int `json:"signal_range,omitempty"`
// Top reverse speed (km/h)
SpeedBackward *int `json:"speed_backward,omitempty"`
// Top speed (km/h)
SpeedForward *int `json:"speed_forward,omitempty"`
// Suspension characteristics
Suspension *struct {
// Load limit (kg)
LoadLimit *int `json:"load_limit,omitempty"`
// Vehicle name
Name *string `json:"name,omitempty"`
// Tier
Tier *int `json:"tier,omitempty"`
// Traverse speed (deg/s)
TraverseSpeed *int `json:"traverse_speed,omitempty"`
// Weight (kg)
Weight *int `json:"weight,omitempty"`
} `json:"suspension,omitempty"`
// Suspension ID
SuspensionId *int `json:"suspension_id,omitempty"`
// Turret characteristics
Turret *struct {
// Hit points
Hp *int `json:"hp,omitempty"`
// Vehicle name
Name *string `json:"name,omitempty"`
// Tier
Tier *int `json:"tier,omitempty"`
// Traverse angle, left (deg)
TraverseLeftArc *int `json:"traverse_left_arc,omitempty"`
// Traverse angle, right (deg)
TraverseRightArc *int `json:"traverse_right_arc,omitempty"`
// Traverse speed (deg/s)
TraverseSpeed *int `json:"traverse_speed,omitempty"`
// View range (m)
ViewRange *int `json:"view_range,omitempty"`
// Weight (kg)
Weight *int `json:"weight,omitempty"`
} `json:"turret,omitempty"`
// Turret ID
TurretId *int `json:"turret_id,omitempty"`
// Weight (kg)
Weight *int `json:"weight,omitempty"`
}