knowyt/server/src/game/addQuote.go

13 lines
166 B
Go
Raw Normal View History

package game
import (
"sirlab.de/go/knowyt/quote"
)
func (gm *Game) AddQuote(qu *quote.Quote) {
gm.mu.Lock()
defer gm.mu.Unlock()
gm.quotes[qu.GetId()] = qu
}