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"
|
"github.com/go-chi/chi/v5"
|
||||||
"gitlab.com/zephyrtronium/sq"
|
"gitlab.com/zephyrtronium/sq"
|
||||||
|
"nhooyr.io/websocket"
|
||||||
|
|
||||||
"git.sunturtle.xyz/studio/shotgun/lobby"
|
"git.sunturtle.xyz/studio/shotgun/lobby"
|
||||||
"git.sunturtle.xyz/studio/shotgun/player"
|
"git.sunturtle.xyz/studio/shotgun/player"
|
||||||
@ -40,6 +41,7 @@ func main() {
|
|||||||
l: lobby.New(),
|
l: lobby.New(),
|
||||||
creds: sessions,
|
creds: sessions,
|
||||||
sessions: sessions,
|
sessions: sessions,
|
||||||
|
pp: map[player.ID]*websocket.Conn{},
|
||||||
}
|
}
|
||||||
|
|
||||||
r := chi.NewRouter()
|
r := chi.NewRouter()
|
||||||
|
Loading…
Reference in New Issue
Block a user