-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
28 lines (20 loc) · 686 Bytes
/
main.go
File metadata and controls
28 lines (20 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package main
import "github.com/icza/gowut/gwu"
const Templates = "simulation/templates/"
const Portraits = "art/textures/ui/session/portraits/"
const Actors = "art/actors/"
const Meshes = "art/meshes/"
const Sounds = "audio/"
const Textures = "art/textures/skins/"
const Components = "simulation/components/"
const Github = "https://raw.githubusercontent.com/0ad/0ad/master/binaries/data/mods/public/"
var Server gwu.Server
func main() {
ActiveMod.Load()
//GUI
Server = gwu.NewServer("0ed", "localhost:8081")
Server.SetText("0ed")
Server.AddStaticDir("js", "./js")
Server.AddWin(CreateStartupWindow())
Server.Start("startup") // Also opens windows list in browser
}