This repository has been archived by the owner on Nov 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
data_battle.pb.go
294 lines (239 loc) · 10.5 KB
/
data_battle.pb.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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
// Code generated by protoc-gen-go.
// source: data_battle.proto
// DO NOT EDIT!
package protos
import proto "github.com/golang/protobuf/proto"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
// Ignoring public import of ContactSettings from data_player.proto
// Ignoring public import of PlayerAvatar from data_player.proto
// Ignoring public import of Currency from data_player.proto
// Ignoring public import of EquippedBadge from data_player.proto
// Ignoring public import of PlayerStats from data_player.proto
// Ignoring public import of PlayerCamera from data_player.proto
// Ignoring public import of PlayerCurrency from data_player.proto
// Ignoring public import of PlayerPublicProfile from data_player.proto
// Ignoring public import of DailyBonus from data_player.proto
// Ignoring public import of PokedexEntry from data.proto
// Ignoring public import of PlayerData from data.proto
// Ignoring public import of DownloadUrlEntry from data.proto
// Ignoring public import of AssetDigestEntry from data.proto
// Ignoring public import of PlayerBadge from data.proto
// Ignoring public import of PokemonData from data.proto
// Ignoring public import of BuddyPokemon from data.proto
// Ignoring public import of GymState from data_gym.proto
// Ignoring public import of GymMembership from data_gym.proto
type BattleType int32
const (
BattleType_BATTLE_TYPE_UNSET BattleType = 0
BattleType_BATTLE_TYPE_NORMAL BattleType = 1
BattleType_BATTLE_TYPE_TRAINING BattleType = 2
)
var BattleType_name = map[int32]string{
0: "BATTLE_TYPE_UNSET",
1: "BATTLE_TYPE_NORMAL",
2: "BATTLE_TYPE_TRAINING",
}
var BattleType_value = map[string]int32{
"BATTLE_TYPE_UNSET": 0,
"BATTLE_TYPE_NORMAL": 1,
"BATTLE_TYPE_TRAINING": 2,
}
func (x BattleType) String() string {
return proto.EnumName(BattleType_name, int32(x))
}
type BattleState int32
const (
BattleState_STATE_UNSET BattleState = 0
BattleState_ACTIVE BattleState = 1
BattleState_VICTORY BattleState = 2
BattleState_DEFEATED BattleState = 3
BattleState_TIMED_OUT BattleState = 4
)
var BattleState_name = map[int32]string{
0: "STATE_UNSET",
1: "ACTIVE",
2: "VICTORY",
3: "DEFEATED",
4: "TIMED_OUT",
}
var BattleState_value = map[string]int32{
"STATE_UNSET": 0,
"ACTIVE": 1,
"VICTORY": 2,
"DEFEATED": 3,
"TIMED_OUT": 4,
}
func (x BattleState) String() string {
return proto.EnumName(BattleState_name, int32(x))
}
type BattleActionType int32
const (
BattleActionType_ACTION_UNSET BattleActionType = 0
BattleActionType_ACTION_ATTACK BattleActionType = 1
BattleActionType_ACTION_DODGE BattleActionType = 2
BattleActionType_ACTION_SPECIAL_ATTACK BattleActionType = 3
BattleActionType_ACTION_SWAP_POKEMON BattleActionType = 4
BattleActionType_ACTION_FAINT BattleActionType = 5
BattleActionType_ACTION_PLAYER_JOIN BattleActionType = 6
BattleActionType_ACTION_PLAYER_QUIT BattleActionType = 7
BattleActionType_ACTION_VICTORY BattleActionType = 8
BattleActionType_ACTION_DEFEAT BattleActionType = 9
BattleActionType_ACTION_TIMED_OUT BattleActionType = 10
)
var BattleActionType_name = map[int32]string{
0: "ACTION_UNSET",
1: "ACTION_ATTACK",
2: "ACTION_DODGE",
3: "ACTION_SPECIAL_ATTACK",
4: "ACTION_SWAP_POKEMON",
5: "ACTION_FAINT",
6: "ACTION_PLAYER_JOIN",
7: "ACTION_PLAYER_QUIT",
8: "ACTION_VICTORY",
9: "ACTION_DEFEAT",
10: "ACTION_TIMED_OUT",
}
var BattleActionType_value = map[string]int32{
"ACTION_UNSET": 0,
"ACTION_ATTACK": 1,
"ACTION_DODGE": 2,
"ACTION_SPECIAL_ATTACK": 3,
"ACTION_SWAP_POKEMON": 4,
"ACTION_FAINT": 5,
"ACTION_PLAYER_JOIN": 6,
"ACTION_PLAYER_QUIT": 7,
"ACTION_VICTORY": 8,
"ACTION_DEFEAT": 9,
"ACTION_TIMED_OUT": 10,
}
func (x BattleActionType) String() string {
return proto.EnumName(BattleActionType_name, int32(x))
}
type BattleAction struct {
Type BattleActionType `protobuf:"varint,1,opt,enum=POGOProtos.Data.Battle.BattleActionType" json:"Type,omitempty"`
ActionStartMs int64 `protobuf:"varint,2,opt,name=action_start_ms" json:"action_start_ms,omitempty"`
DurationMs int32 `protobuf:"varint,3,opt,name=duration_ms" json:"duration_ms,omitempty"`
EnergyDelta int32 `protobuf:"varint,5,opt,name=energy_delta" json:"energy_delta,omitempty"`
AttackerIndex int32 `protobuf:"varint,6,opt,name=attacker_index" json:"attacker_index,omitempty"`
TargetIndex int32 `protobuf:"varint,7,opt,name=target_index" json:"target_index,omitempty"`
ActivePokemonId uint64 `protobuf:"fixed64,8,opt,name=active_pokemon_id" json:"active_pokemon_id,omitempty"`
PlayerJoined *BattleParticipant `protobuf:"bytes,9,opt,name=player_joined" json:"player_joined,omitempty"`
BattleResults *BattleResults `protobuf:"bytes,10,opt,name=battle_results" json:"battle_results,omitempty"`
DamageWindowsStartTimestampMs int64 `protobuf:"varint,11,opt,name=damage_windows_start_timestamp_ms" json:"damage_windows_start_timestamp_ms,omitempty"`
DamageWindowsEndTimestampMs int64 `protobuf:"varint,12,opt,name=damage_windows_end_timestamp_ms" json:"damage_windows_end_timestamp_ms,omitempty"`
PlayerLeft *BattleParticipant `protobuf:"bytes,13,opt,name=player_left" json:"player_left,omitempty"`
TargetPokemonId uint64 `protobuf:"fixed64,14,opt,name=target_pokemon_id" json:"target_pokemon_id,omitempty"`
}
func (m *BattleAction) Reset() { *m = BattleAction{} }
func (m *BattleAction) String() string { return proto.CompactTextString(m) }
func (*BattleAction) ProtoMessage() {}
func (m *BattleAction) GetPlayerJoined() *BattleParticipant {
if m != nil {
return m.PlayerJoined
}
return nil
}
func (m *BattleAction) GetBattleResults() *BattleResults {
if m != nil {
return m.BattleResults
}
return nil
}
func (m *BattleAction) GetPlayerLeft() *BattleParticipant {
if m != nil {
return m.PlayerLeft
}
return nil
}
type BattleParticipant struct {
ActivePokemon *BattlePokemonInfo `protobuf:"bytes,1,opt,name=active_pokemon" json:"active_pokemon,omitempty"`
TrainerPublicProfile *PlayerPublicProfile `protobuf:"bytes,2,opt,name=trainer_public_profile" json:"trainer_public_profile,omitempty"`
ReversePokemon []*BattlePokemonInfo `protobuf:"bytes,3,rep,name=reverse_pokemon" json:"reverse_pokemon,omitempty"`
DefeatedPokemon []*BattlePokemonInfo `protobuf:"bytes,4,rep,name=defeated_pokemon" json:"defeated_pokemon,omitempty"`
}
func (m *BattleParticipant) Reset() { *m = BattleParticipant{} }
func (m *BattleParticipant) String() string { return proto.CompactTextString(m) }
func (*BattleParticipant) ProtoMessage() {}
func (m *BattleParticipant) GetActivePokemon() *BattlePokemonInfo {
if m != nil {
return m.ActivePokemon
}
return nil
}
func (m *BattleParticipant) GetTrainerPublicProfile() *PlayerPublicProfile {
if m != nil {
return m.TrainerPublicProfile
}
return nil
}
func (m *BattleParticipant) GetReversePokemon() []*BattlePokemonInfo {
if m != nil {
return m.ReversePokemon
}
return nil
}
func (m *BattleParticipant) GetDefeatedPokemon() []*BattlePokemonInfo {
if m != nil {
return m.DefeatedPokemon
}
return nil
}
type BattlePokemonInfo struct {
PokemonData *PokemonData `protobuf:"bytes,1,opt,name=pokemon_data" json:"pokemon_data,omitempty"`
CurrentHealth int32 `protobuf:"varint,2,opt,name=current_health" json:"current_health,omitempty"`
CurrentEnergy int32 `protobuf:"varint,3,opt,name=current_energy" json:"current_energy,omitempty"`
}
func (m *BattlePokemonInfo) Reset() { *m = BattlePokemonInfo{} }
func (m *BattlePokemonInfo) String() string { return proto.CompactTextString(m) }
func (*BattlePokemonInfo) ProtoMessage() {}
func (m *BattlePokemonInfo) GetPokemonData() *PokemonData {
if m != nil {
return m.PokemonData
}
return nil
}
type BattleLog struct {
State BattleState `protobuf:"varint,1,opt,name=state,enum=POGOProtos.Data.Battle.BattleState" json:"state,omitempty"`
BattleType BattleType `protobuf:"varint,2,opt,name=battle_type,enum=POGOProtos.Data.Battle.BattleType" json:"battle_type,omitempty"`
ServerMs int64 `protobuf:"varint,3,opt,name=server_ms" json:"server_ms,omitempty"`
BattleActions []*BattleAction `protobuf:"bytes,4,rep,name=battle_actions" json:"battle_actions,omitempty"`
BattleStartTimestampMs int64 `protobuf:"varint,5,opt,name=battle_start_timestamp_ms" json:"battle_start_timestamp_ms,omitempty"`
BattleEndTimestampMs int64 `protobuf:"varint,6,opt,name=battle_end_timestamp_ms" json:"battle_end_timestamp_ms,omitempty"`
}
func (m *BattleLog) Reset() { *m = BattleLog{} }
func (m *BattleLog) String() string { return proto.CompactTextString(m) }
func (*BattleLog) ProtoMessage() {}
func (m *BattleLog) GetBattleActions() []*BattleAction {
if m != nil {
return m.BattleActions
}
return nil
}
type BattleResults struct {
GymState *GymState `protobuf:"bytes,1,opt,name=gym_state" json:"gym_state,omitempty"`
Attackers []*BattleParticipant `protobuf:"bytes,2,rep,name=attackers" json:"attackers,omitempty"`
PlayerExperienceAwarded []int32 `protobuf:"varint,3,rep,name=player_experience_awarded" json:"player_experience_awarded,omitempty"`
NextDefenderPokemonId int64 `protobuf:"varint,4,opt,name=next_defender_pokemon_id" json:"next_defender_pokemon_id,omitempty"`
GymPointsDelta int32 `protobuf:"varint,5,opt,name=gym_points_delta" json:"gym_points_delta,omitempty"`
}
func (m *BattleResults) Reset() { *m = BattleResults{} }
func (m *BattleResults) String() string { return proto.CompactTextString(m) }
func (*BattleResults) ProtoMessage() {}
func (m *BattleResults) GetGymState() *GymState {
if m != nil {
return m.GymState
}
return nil
}
func (m *BattleResults) GetAttackers() []*BattleParticipant {
if m != nil {
return m.Attackers
}
return nil
}
func init() {
proto.RegisterEnum("POGOProtos.Data.Battle.BattleType", BattleType_name, BattleType_value)
proto.RegisterEnum("POGOProtos.Data.Battle.BattleState", BattleState_name, BattleState_value)
proto.RegisterEnum("POGOProtos.Data.Battle.BattleActionType", BattleActionType_name, BattleActionType_value)
}