@@ -58,6 +58,7 @@ export interface GameEvent {
5858 | { $case : "multipleCards" ; multipleCards : GameEvent_MultipleCards }
5959 | { $case : "multipleFouls" ; multipleFouls : GameEvent_MultipleFouls }
6060 | { $case : "botSubstitution" ; botSubstitution : GameEvent_BotSubstitution }
61+ | { $case : "excessiveBotSubstitution" ; excessiveBotSubstitution : GameEvent_ExcessiveBotSubstitution }
6162 | { $case : "tooManyRobots" ; tooManyRobots : GameEvent_TooManyRobots }
6263 | { $case : "challengeFlag" ; challengeFlag : GameEvent_ChallengeFlag }
6364 | { $case : "challengeFlagHandled" ; challengeFlagHandled : GameEvent_ChallengeFlagHandled }
@@ -125,6 +126,8 @@ export enum GameEvent_Type {
125126 BOT_TOO_FAST_IN_STOP = "BOT_TOO_FAST_IN_STOP" ,
126127 /** BOT_INTERFERED_PLACEMENT - triggered by autoRef */
127128 BOT_INTERFERED_PLACEMENT = "BOT_INTERFERED_PLACEMENT" ,
129+ /** EXCESSIVE_BOT_SUBSTITUTION - triggered by GC */
130+ EXCESSIVE_BOT_SUBSTITUTION = "EXCESSIVE_BOT_SUBSTITUTION" ,
128131 /** POSSIBLE_GOAL - triggered by autoRef */
129132 POSSIBLE_GOAL = "POSSIBLE_GOAL" ,
130133 /** GOAL - triggered by GC */
@@ -244,6 +247,9 @@ export function gameEvent_TypeFromJSON(object: any): GameEvent_Type {
244247 case 20 :
245248 case "BOT_INTERFERED_PLACEMENT" :
246249 return GameEvent_Type . BOT_INTERFERED_PLACEMENT ;
250+ case 48 :
251+ case "EXCESSIVE_BOT_SUBSTITUTION" :
252+ return GameEvent_Type . EXCESSIVE_BOT_SUBSTITUTION ;
247253 case 39 :
248254 case "POSSIBLE_GOAL" :
249255 return GameEvent_Type . POSSIBLE_GOAL ;
@@ -374,6 +380,8 @@ export function gameEvent_TypeToJSON(object: GameEvent_Type): string {
374380 return "BOT_TOO_FAST_IN_STOP" ;
375381 case GameEvent_Type . BOT_INTERFERED_PLACEMENT :
376382 return "BOT_INTERFERED_PLACEMENT" ;
383+ case GameEvent_Type . EXCESSIVE_BOT_SUBSTITUTION :
384+ return "EXCESSIVE_BOT_SUBSTITUTION" ;
377385 case GameEvent_Type . POSSIBLE_GOAL :
378386 return "POSSIBLE_GOAL" ;
379387 case GameEvent_Type . GOAL :
@@ -828,6 +836,12 @@ export interface GameEvent_BotSubstitution {
828836 byTeam ?: Team ;
829837}
830838
839+ /** A foul for excessive bot substitutions */
840+ export interface GameEvent_ExcessiveBotSubstitution {
841+ /** the team that substitutes robots */
842+ byTeam ?: Team ;
843+ }
844+
831845/** A challenge flag, requested by a team previously, is flagged */
832846export interface GameEvent_ChallengeFlag {
833847 /** the team that requested the challenge flag */
@@ -990,6 +1004,11 @@ export const GameEvent = {
9901004 ? { $case : "multipleFouls" , multipleFouls : GameEvent_MultipleFouls . fromJSON ( object . multipleFouls ) }
9911005 : isSet ( object . botSubstitution )
9921006 ? { $case : "botSubstitution" , botSubstitution : GameEvent_BotSubstitution . fromJSON ( object . botSubstitution ) }
1007+ : isSet ( object . excessiveBotSubstitution )
1008+ ? {
1009+ $case : "excessiveBotSubstitution" ,
1010+ excessiveBotSubstitution : GameEvent_ExcessiveBotSubstitution . fromJSON ( object . excessiveBotSubstitution ) ,
1011+ }
9931012 : isSet ( object . tooManyRobots )
9941013 ? { $case : "tooManyRobots" , tooManyRobots : GameEvent_TooManyRobots . fromJSON ( object . tooManyRobots ) }
9951014 : isSet ( object . challengeFlag )
@@ -1166,6 +1185,10 @@ export const GameEvent = {
11661185 message . event ?. $case === "botSubstitution" && ( obj . botSubstitution = message . event ?. botSubstitution
11671186 ? GameEvent_BotSubstitution . toJSON ( message . event ?. botSubstitution )
11681187 : undefined ) ;
1188+ message . event ?. $case === "excessiveBotSubstitution" &&
1189+ ( obj . excessiveBotSubstitution = message . event ?. excessiveBotSubstitution
1190+ ? GameEvent_ExcessiveBotSubstitution . toJSON ( message . event ?. excessiveBotSubstitution )
1191+ : undefined ) ;
11691192 message . event ?. $case === "tooManyRobots" && ( obj . tooManyRobots = message . event ?. tooManyRobots
11701193 ? GameEvent_TooManyRobots . toJSON ( message . event ?. tooManyRobots )
11711194 : undefined ) ;
@@ -1890,6 +1913,18 @@ export const GameEvent_BotSubstitution = {
18901913 } ,
18911914} ;
18921915
1916+ export const GameEvent_ExcessiveBotSubstitution = {
1917+ fromJSON ( object : any ) : GameEvent_ExcessiveBotSubstitution {
1918+ return { byTeam : isSet ( object . byTeam ) ? teamFromJSON ( object . byTeam ) : Team . UNKNOWN } ;
1919+ } ,
1920+
1921+ toJSON ( message : GameEvent_ExcessiveBotSubstitution ) : unknown {
1922+ const obj : any = { } ;
1923+ message . byTeam !== undefined && ( obj . byTeam = teamToJSON ( message . byTeam ) ) ;
1924+ return obj ;
1925+ } ,
1926+ } ;
1927+
18931928export const GameEvent_ChallengeFlag = {
18941929 fromJSON ( object : any ) : GameEvent_ChallengeFlag {
18951930 return { byTeam : isSet ( object . byTeam ) ? teamFromJSON ( object . byTeam ) : Team . UNKNOWN } ;
0 commit comments