knowyt/server/src/game/getGameInfo.go

14 lines
175 B
Go
Raw Normal View History

2022-02-27 19:54:13 +00:00
package game
import ()
func (gm *Game) GetGameInfo() *GameInfoJson {
gm.mu.Lock()
defer gm.mu.Unlock()
gameInfo := GameInfoJson{
Name: gm.name,
}
return &gameInfo
}