Base GameServerAdded

incorrect_closing_investigation
Evgeny Kovalev 2 years ago
parent 9ef34d9294
commit 27601a61ff
  1. 41
      internal/gameServer/gameServer.go

@ -0,0 +1,41 @@
package gameServer
import (
"daydev.org/shipsgs/internal/config"
"daydev.org/shipsgs/internal/utils"
)
type GameServer struct {
Logger *utils.Logger
Config *config.S_Config
maxLobbies int
currentLobbies int
maxPlayers int
currentPlayers int
}
func (m *GameServer) Init(logger *utils.Logger, config *config.S_Config) {
m.Logger = logger
m.Config = config
m.maxLobbies = m.Config.MaxLobbies
m.maxPlayers = m.Config.MaxPlayers
m.currentLobbies = 0
m.currentPlayers = 0
}
func (m *GameServer) Update() {
}
func (m *GameServer) Scheduled1S() {
}
func (m *GameServer) Scheduled10S() {
}
Loading…
Cancel
Save