parent
9ef34d9294
commit
27601a61ff
1 changed files with 41 additions and 0 deletions
@ -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…
Reference in new issue