Skip to content

Commit 5457ee6

Browse files
committed
Set common game events to accept by default
This is, how we usually configure it during official tournaments.
1 parent fcb5e3a commit 5457ee6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/app/engine/config.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ func DefaultConfig() (x Config) {
6262
for _, event := range state.GameEventsForBehaviorConfig() {
6363
x.GameEventBehavior[event.String()] = Config_BEHAVIOR_ACCEPT_MAJORITY
6464
}
65+
// Set common defaults that are usually set at a competition
66+
x.GameEventBehavior[state.GameEvent_POSSIBLE_GOAL.String()] = Config_BEHAVIOR_ACCEPT
67+
x.GameEventBehavior[state.GameEvent_BALL_LEFT_FIELD_GOAL_LINE.String()] = Config_BEHAVIOR_ACCEPT
68+
x.GameEventBehavior[state.GameEvent_BALL_LEFT_FIELD_TOUCH_LINE.String()] = Config_BEHAVIOR_ACCEPT
69+
6570
x.Teams = defaultTeams
6671
x.AutoContinue = new(bool)
6772
*x.AutoContinue = true

0 commit comments

Comments
 (0)