14 lines
175 B
Go
14 lines
175 B
Go
|
package game
|
||
|
|
||
|
import ()
|
||
|
|
||
|
func (gm *Game) GetGameInfo() *GameInfoJson {
|
||
|
gm.mu.Lock()
|
||
|
defer gm.mu.Unlock()
|
||
|
|
||
|
gameInfo := GameInfoJson{
|
||
|
Name: gm.name,
|
||
|
}
|
||
|
return &gameInfo
|
||
|
}
|