Skip to content

Commit a26a061

Browse files
committed
Publish team color to remote-control
1 parent 3691237 commit a26a061

File tree

3 files changed

+71
-55
lines changed

3 files changed

+71
-55
lines changed

internal/app/rcon/server_remotecontrol.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ func (c *RemoteControlClient) replyWithState(reply *ControllerReply) {
157157

158158
response := &ControllerToRemoteControl{
159159
State: &RemoteControlTeamState{
160+
Team: c.team,
160161
KeeperId: teamState.Goalkeeper,
161162
AvailableRequests: availableRequests,
162163
ActiveRequests: activeRequests,

internal/app/rcon/ssl_gc_rcon_remotecontrol.pb.go

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

proto/ssl_gc_rcon_remotecontrol.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ message ControllerToRemoteControl {
6161

6262
// Current team state from Controller for remote control
6363
message RemoteControlTeamState {
64+
// the team that is controlled
65+
optional Team team = 12;
66+
6467
// list of all currently available request types that can be made
6568
repeated RemoteControlRequestType available_requests = 1;
6669

0 commit comments

Comments
 (0)