knowyt/server/src/game/addQuote.go

13 lines
164 B
Go
Raw Normal View History

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
}