Skip to content

Commit 1b56a5b

Browse files
committed
[#127] Add nearest_own_bot_distance field to PlacementFailed message
1 parent 90f8859 commit 1b56a5b

File tree

3 files changed

+179
-160
lines changed

3 files changed

+179
-160
lines changed

frontend/src/proto/ssl_gc_game_event.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,8 @@ export interface GameEvent_PlacementFailed {
774774
byTeam?: Team;
775775
/** the remaining distance [m] from ball to placement position */
776776
remainingDistance?: number;
777+
/** the distance [m] of the nearest own robot to the ball */
778+
nearestOwnBotDistance?: number;
777779
}
778780

779781
/** a team was found guilty for minor unsporting behavior */
@@ -1781,13 +1783,15 @@ export const GameEvent_PlacementFailed = {
17811783
return {
17821784
byTeam: isSet(object.byTeam) ? teamFromJSON(object.byTeam) : Team.UNKNOWN,
17831785
remainingDistance: isSet(object.remainingDistance) ? Number(object.remainingDistance) : 0,
1786+
nearestOwnBotDistance: isSet(object.nearestOwnBotDistance) ? Number(object.nearestOwnBotDistance) : 0,
17841787
};
17851788
},
17861789

17871790
toJSON(message: GameEvent_PlacementFailed): unknown {
17881791
const obj: any = {};
17891792
message.byTeam !== undefined && (obj.byTeam = teamToJSON(message.byTeam));
17901793
message.remainingDistance !== undefined && (obj.remainingDistance = message.remainingDistance);
1794+
message.nearestOwnBotDistance !== undefined && (obj.nearestOwnBotDistance = message.nearestOwnBotDistance);
17911795
return obj;
17921796
},
17931797
};

0 commit comments

Comments
 (0)