@@ -14,7 +14,7 @@ const (
14
14
GameEventNone GameEventType = ""
15
15
GameEventBallLeftFieldTouchLine GameEventType = "ballLeftFieldTouchLine"
16
16
GameEventBallLeftFieldGoalLine GameEventType = "ballLeftFieldGoalLine"
17
- GameEventIcing GameEventType = "icing "
17
+ GameEventAimlessKick GameEventType = "aimlessKick "
18
18
GameEventGoal GameEventType = "goal"
19
19
GameEventIndirectGoal GameEventType = "indirectGoal"
20
20
GameEventChippedGoal GameEventType = "chippedGoal"
@@ -65,7 +65,7 @@ func AllGameEvents() []GameEventType {
65
65
return []GameEventType {
66
66
GameEventBallLeftFieldTouchLine ,
67
67
GameEventBallLeftFieldGoalLine ,
68
- GameEventIcing ,
68
+ GameEventAimlessKick ,
69
69
GameEventGoal ,
70
70
GameEventIndirectGoal ,
71
71
GameEventChippedGoal ,
@@ -210,8 +210,8 @@ func (e GameEvent) ToProto() *refproto.GameEvent {
210
210
protoEvent .Event = & refproto.GameEvent_BallLeftFieldGoalLine {BallLeftFieldGoalLine : e .Details .BallLeftFieldGoalLine }
211
211
case GameEventBallLeftFieldTouchLine :
212
212
protoEvent .Event = & refproto.GameEvent_BallLeftFieldTouchLine {BallLeftFieldTouchLine : e .Details .BallLeftFieldTouchLine }
213
- case GameEventIcing :
214
- protoEvent .Event = & refproto.GameEvent_Icing_ { Icing : e .Details .Icing }
213
+ case GameEventAimlessKick :
214
+ protoEvent .Event = & refproto.GameEvent_AimlessKick_ { AimlessKick : e .Details .AimlessKick }
215
215
case GameEventGoal :
216
216
protoEvent .Event = & refproto.GameEvent_Goal_ {Goal : e .Details .Goal }
217
217
case GameEventIndirectGoal :
@@ -289,7 +289,7 @@ func (e GameEvent) ToProto() *refproto.GameEvent {
289
289
type GameEventDetails struct {
290
290
BallLeftFieldTouchLine * refproto.GameEvent_BallLeftFieldEvent `json:"ballLeftFieldTouchLine,omitempty"`
291
291
BallLeftFieldGoalLine * refproto.GameEvent_BallLeftFieldEvent `json:"ballLeftFieldGoalLine,omitempty"`
292
- Icing * refproto.GameEvent_Icing `json:"icing ,omitempty"`
292
+ AimlessKick * refproto.GameEvent_AimlessKick `json:"aimlessKick ,omitempty"`
293
293
Goal * refproto.GameEvent_Goal `json:"goal,omitempty"`
294
294
IndirectGoal * refproto.GameEvent_IndirectGoal `json:"indirectGoal,omitempty"`
295
295
ChippedGoal * refproto.GameEvent_ChippedGoal `json:"chippedGoal,omitempty"`
@@ -332,8 +332,8 @@ func (d GameEventDetails) EventType() GameEventType {
332
332
if d .BallLeftFieldGoalLine != nil {
333
333
return GameEventBallLeftFieldGoalLine
334
334
}
335
- if d .Icing != nil {
336
- return GameEventIcing
335
+ if d .AimlessKick != nil {
336
+ return GameEventAimlessKick
337
337
}
338
338
if d .Goal != nil {
339
339
return GameEventGoal
@@ -450,9 +450,9 @@ func (d GameEventDetails) Description() string {
450
450
}
451
451
return ""
452
452
}
453
- if d .Icing != nil {
454
- if d .Icing .ByBot != nil {
455
- return fmt .Sprintf ("By bot %v" , * d .Icing .ByBot )
453
+ if d .AimlessKick != nil {
454
+ if d .AimlessKick .ByBot != nil {
455
+ return fmt .Sprintf ("By bot %v" , * d .AimlessKick .ByBot )
456
456
}
457
457
return ""
458
458
}
@@ -636,7 +636,7 @@ func (d GameEventDetails) Description() string {
636
636
func NewGameEventDetails (event refproto.GameEvent ) (d GameEventDetails ) {
637
637
d .BallLeftFieldTouchLine = event .GetBallLeftFieldTouchLine ()
638
638
d .BallLeftFieldGoalLine = event .GetBallLeftFieldGoalLine ()
639
- d .Icing = event .GetIcing ()
639
+ d .AimlessKick = event .GetAimlessKick ()
640
640
d .Goal = event .GetGoal ()
641
641
d .IndirectGoal = event .GetIndirectGoal ()
642
642
d .ChippedGoal = event .GetChippedGoal ()
0 commit comments