-
Notifications
You must be signed in to change notification settings - Fork 2
/
encyclopedia_modules.go
136 lines (133 loc) · 3.99 KB
/
encyclopedia_modules.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
// Auto generated file!
package wotb
type EncyclopediaModulesOptions struct {
// 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"`
// 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"`
// Module ID. Maximum limit: 100.
ModuleId []int `json:"module_id,omitempty"`
// Nation
Nation *string `json:"nation,omitempty"`
// Module type. Valid values:
//
// "vehicleEngine" - Engines
// "vehicleGun" - Gun
// "vehicleChassis" - Suspension
// "vehicleTurret" - Turret
Type *string `json:"type,omitempty"`
}
type EncyclopediaModules struct {
// Engine characteristics
Engines []*struct {
// Chance of engine fire
FireChance *float32 `json:"fire_chance,omitempty"`
// Module ID
ModuleId *int `json:"module_id,omitempty"`
// Vehicle name
Name *string `json:"name,omitempty"`
// Nation
Nation *string `json:"nation,omitempty"`
// Engine Power (hp)
Power *int `json:"power,omitempty"`
// List of compatible vehicles
Tanks []int `json:"tanks,omitempty"`
// Tier
Tier *int `json:"tier,omitempty"`
// Weight (kg)
Weight *int `json:"weight,omitempty"`
} `json:"engines,omitempty"`
// Gun characteristics
Guns []*struct {
// Aiming time (s)
AimTime *float32 `json:"aim_time,omitempty"`
// Dispersion at 100 m (m)
Dispersion *float32 `json:"dispersion,omitempty"`
// Module ID
ModuleId *int `json:"module_id,omitempty"`
// Vehicle name
Name *string `json:"name,omitempty"`
// Nation
Nation *string `json:"nation,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"`
// List of compatible vehicles
Tanks []int `json:"tanks,omitempty"`
// Tier
Tier *int `json:"tier,omitempty"`
// Weight (kg)
Weight *int `json:"weight,omitempty"`
} `json:"guns,omitempty"`
// Suspension characteristics
Suspensions []*struct {
// Load limit (kg)
LoadLimit *int `json:"load_limit,omitempty"`
// Module ID
ModuleId *int `json:"module_id,omitempty"`
// Vehicle name
Name *string `json:"name,omitempty"`
// Nation
Nation *string `json:"nation,omitempty"`
// List of compatible vehicles
Tanks []int `json:"tanks,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:"suspensions,omitempty"`
// Turret characteristics
Turrets []*struct {
// Armor
Armor *struct {
// Front (mm)
Front *int `json:"front,omitempty"`
// Rear (mm)
Rear *int `json:"rear,omitempty"`
// Sides (mm)
Sides *int `json:"sides,omitempty"`
} `json:"armor,omitempty"`
// Hit points
Hp *int `json:"hp,omitempty"`
// Module ID
ModuleId *int `json:"module_id,omitempty"`
// Vehicle name
Name *string `json:"name,omitempty"`
// Nation
Nation *string `json:"nation,omitempty"`
// List of compatible vehicles
Tanks []int `json:"tanks,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"`
// View range (m)
ViewRange *int `json:"view_range,omitempty"`
// Weight (kg)
Weight *int `json:"weight,omitempty"`
} `json:"turrets,omitempty"`
}