initialize server players map
This commit is contained in:
parent
2314b61671
commit
8343dc60c7
2
main.go
2
main.go
@ -8,6 +8,7 @@ import (
|
||||
|
||||
"github.com/go-chi/chi/v5"
|
||||
"gitlab.com/zephyrtronium/sq"
|
||||
"nhooyr.io/websocket"
|
||||
|
||||
"git.sunturtle.xyz/studio/shotgun/lobby"
|
||||
"git.sunturtle.xyz/studio/shotgun/player"
|
||||
@ -40,6 +41,7 @@ func main() {
|
||||
l: lobby.New(),
|
||||
creds: sessions,
|
||||
sessions: sessions,
|
||||
pp: map[player.ID]*websocket.Conn{},
|
||||
}
|
||||
|
||||
r := chi.NewRouter()
|
||||
|
Loading…
Reference in New Issue
Block a user