13 lines
164 B
Go
13 lines
164 B
Go
|
package game
|
||
|
|
||
|
import (
|
||
|
"sirlab.de/go/knyt/quote"
|
||
|
)
|
||
|
|
||
|
func (gm *Game) AddQuote(qu *quote.Quote) {
|
||
|
gm.mu.Lock()
|
||
|
defer gm.mu.Unlock()
|
||
|
|
||
|
gm.quotes[qu.GetId()] = qu
|
||
|
}
|