13 lines
166 B
Go
13 lines
166 B
Go
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
|
|
}
|