Skip to content

Commit 7285f6e

Browse files
committed
[feature] Add bot substitution intent to referee message
1 parent 6f00633 commit 7285f6e

File tree

5 files changed

+105
-90
lines changed

5 files changed

+105
-90
lines changed

internal/app/controller/publisher.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ func initTeamInfo(t *refproto.Referee_TeamInfo) {
9696
t.BallPlacementFailures = new(uint32)
9797
t.CanPlaceBall = new(bool)
9898
t.MaxAllowedBots = new(uint32)
99+
t.BotSubstitutionIntent = new(bool)
99100
}
100101

101102
// Publish the state and command
@@ -254,6 +255,7 @@ func (p *RefMessage) updateTeam(teamInfo *refproto.Referee_TeamInfo, state *Team
254255
*teamInfo.BallPlacementFailures = uint32(state.BallPlacementFailures)
255256
*teamInfo.CanPlaceBall = state.CanPlaceBall
256257
*teamInfo.MaxAllowedBots = uint32(state.MaxAllowedBots)
258+
*teamInfo.BotSubstitutionIntent = state.BotSubstitutionIntend
257259

258260
if state.TimeoutTimeLeft.Nanoseconds() > 0 {
259261
*teamInfo.TimeoutTime = uint32(state.TimeoutTimeLeft.Nanoseconds() / 1000)

pkg/refproto/ssl_game_controller_team.pb.go

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/refproto/ssl_game_event_2019.pb.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)