Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ type Result struct {
}

type ExtraOptions struct {
Freeplay bool `json:"freeplay"`
EnableRendering bool `json:"enableRendering"`
EnableStateSetting bool `json:"enableStateSetting"`
InstantStart bool `json:"instantStart"`
SkipReplays bool `json:"skipReplays"`
AutoSaveReplay bool `json:"autoSaveReplay"`
ExistingMatchBehavior byte `json:"existingMatchBehavior"`
AutoStartAgents bool `json:"autoStartAgents"`
WaitForAgents bool `json:"waitForAgents"`
Freeplay bool `json:"freeplay"`
EnableRendering flat.DebugRendering `json:"enableRendering"`
EnableStateSetting bool `json:"enableStateSetting"`
InstantStart bool `json:"instantStart"`
SkipReplays bool `json:"skipReplays"`
AutoSaveReplay bool `json:"autoSaveReplay"`
ExistingMatchBehavior byte `json:"existingMatchBehavior"`
AutoStartAgents bool `json:"autoStartAgents"`
WaitForAgents bool `json:"waitForAgents"`
}

type StartMatchOptions struct {
Expand Down Expand Up @@ -247,14 +247,14 @@ func (a *App) StartMatch(options StartMatchOptions) Result {

var gameMode flat.GameMode
switch options.GameMode {
case "Soccer":
gameMode = flat.GameModeSoccer
case "Soccar":
gameMode = flat.GameModeSoccar
case "Hoops":
gameMode = flat.GameModeHoops
case "Dropshot":
gameMode = flat.GameModeDropshot
case "Hockey":
gameMode = flat.GameModeHockey
case "Snowday":
gameMode = flat.GameModeSnowday
case "Rumble":
gameMode = flat.GameModeRumble
case "Heatseeker":
Expand All @@ -264,8 +264,8 @@ func (a *App) StartMatch(options StartMatchOptions) Result {
case "Knockout":
gameMode = flat.GameModeKnockout
default:
println("No mode chosen, defaulting to soccer")
gameMode = flat.GameModeSoccer
println("No mode chosen, defaulting to soccar")
gameMode = flat.GameModeSoccar
}

var launcher flat.Launcher
Expand Down
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
},
"dependencies": {
"@wailsio/runtime": "3.0.0-alpha.66",
"svelte": "^5.33.1",
"svelte": "^5.34.3",
"svelte-5-french-toast": "^2.0.4",
"svelte-dnd-action": "^0.9.61",
"svelte-portal": "^2.2.1"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@rsbuild/core": "^1.3.21",
"@rsbuild/core": "^1.3.22",
"@rsbuild/plugin-svelte": "^1.0.10",
"typescript": "^5.8.3"
}
Expand Down
Loading