Skip to content

Commit 076e272

Browse files
committed
[refactoring] Add yaml fields to Location for consistency
1 parent dd5706d commit 076e272

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/app/controller/state.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,8 @@ func (s *State) GetFirstGameEvent(gameEventType GameEventType) *GameEvent {
573573

574574
// Location is a two-dimensional coordinate
575575
type Location struct {
576-
X float64 `json:"x"`
577-
Y float64 `json:"y"`
576+
X float64 `json:"x" yaml:"x"`
577+
Y float64 `json:"y" yaml:"y"`
578578
}
579579

580580
func (l Location) toProto() (p *refproto.Location) {

0 commit comments

Comments
 (0)