sync: MCQ justifications are given in the choice tag directly
This commit is contained in:
parent
d7f0425d8a
commit
33f7d104e4
2 changed files with 9 additions and 10 deletions
|
|
@ -27,13 +27,6 @@ type ExerciceUnlockFile struct {
|
|||
Filename string `toml:",omitempty"`
|
||||
}
|
||||
|
||||
// ExerciceFlagChoice holds informations about a choice (for MCQ and UCQ).
|
||||
type ExerciceFlagChoice struct {
|
||||
Label string `toml:",omitempty"`
|
||||
Value interface{} `toml:",omitempty"`
|
||||
Justification *ExerciceFlag `toml:",omitempty""`
|
||||
}
|
||||
|
||||
// ExerciceFlag holds informations about one flag.
|
||||
type ExerciceFlag struct {
|
||||
Id int64
|
||||
|
|
@ -52,6 +45,12 @@ type ExerciceFlag struct {
|
|||
NoShuffle bool
|
||||
}
|
||||
|
||||
// ExerciceFlagChoice holds informations about a choice (for MCQ and UCQ).
|
||||
type ExerciceFlagChoice struct {
|
||||
ExerciceFlag
|
||||
Value interface{} `toml:",omitempty"`
|
||||
}
|
||||
|
||||
// ExerciceParams contains values parsed from defines.txt.
|
||||
type ExerciceParams struct {
|
||||
Gain int64
|
||||
|
|
|
|||
Reference in a new issue