Beispiel #1
0
func (i *GameController) Clear() {
	gmech := i.server.mechanics

	gmech.gMutex.Lock()

	var mech *mechanics.GameMechanics
	if getMech, ok := gmech.games[i.gameID]; ok {
		mech = getMech
	}

	gmech.gMutex.Unlock()

	if mech != nil {
		mech.RemoveOutput(i.player)
	}
}