Skip to content

Commit

Permalink
Add more config options to server template
Browse files Browse the repository at this point in the history
  • Loading branch information
juho05 committed Jun 18, 2022
1 parent 0d951d7 commit 0e07426
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions new/server/templates/main.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"os"
"strconv"
"time"

"{{.LibraryURL}}"
"{{.ModulePath}}/{{.PackageName}}"
Expand All @@ -26,8 +27,14 @@ func main() {
}

server := cg.NewServer("{{.Name}}", cg.ServerConfig{
DisplayName: "{{.Name}}",
Version: "0.1",
Description: "",
RepositoryURL: "",
Port: port,
CGEFilepath: "events.cge",
DeleteInactiveGameDelay: 24 * time.Hour,
KickInactivePlayerDelay: 24 * time.Hour,
})

server.Run(func(cgGame *cg.Game) {
Expand Down
6 changes: 3 additions & 3 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"server": {
"0.7": "0.3",
"0.8": "0.3"
"0.7": "0.4",
"0.8": "0.4"
},
"client": {
"0.8": "0.3"
"0.8": "0.4"
}
}

0 comments on commit 0e07426

Please sign in to comment.