Added tracking of a player's state
This commit is contained in:
parent
64a2d4f9cb
commit
332cfd9fca
10 changed files with 95 additions and 19 deletions
|
|
@ -17,6 +17,7 @@ type Choice struct {
|
|||
}
|
||||
|
||||
type Question struct {
|
||||
ID string
|
||||
Text string
|
||||
Choices []Choice
|
||||
Fact string
|
||||
|
|
@ -38,6 +39,7 @@ func (q Question) Render() (RenderedQuestion, error) {
|
|||
}
|
||||
|
||||
return RenderedQuestion{
|
||||
ID: q.ID,
|
||||
Question: q.Text,
|
||||
Fact: q.Fact,
|
||||
Choices: choices,
|
||||
|
|
@ -51,6 +53,7 @@ type RenderedChoice struct {
|
|||
}
|
||||
|
||||
type RenderedQuestion struct {
|
||||
ID string
|
||||
Question string
|
||||
Fact string
|
||||
Choices []RenderedChoice
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue