knowyt/server/src/game/saveQuote.go
2021-10-15 23:07:41 +02:00

21 lines
378 B
Go

package game
import (
"fmt"
)
func (gm *Game) SaveQuote(usrId string, quoteId string, quoteText string) error {
quote, err := gm.getQuoteById(quoteId)
if err != nil {
return err
}
if quote.GetSourceId() != usrId {
return fmt.Errorf("usrId does not match quote source id")
}
fmt.Printf("%v\n", quote)
return fmt.Errorf("Game::SaveQuote() not yet implemented")
}