sync: add a new section to allow locking file waiting flag validation

This commit is contained in:
nemunaire 2018-09-07 19:41:54 +02:00 committed by Pierre-Olivier Mercier
commit f9e1cf6691
2 changed files with 11 additions and 0 deletions

View file

@ -26,6 +26,12 @@ type ExerciceFlag struct {
Raw string
IgnoreCase bool `toml:",omitempty"`
Help string `toml:",omitempty"`
LockedFile []ExerciceFlag `toml:unlock_file",omitempty"`
}
// ExerciceUnlockFile holds parameters related to a locked file.
type ExerciceFlag struct {
Filename string `toml:",omitempty"`
}
// ExerciceFlagMCQChoice holds a choice for an MCQ flag.
@ -54,6 +60,7 @@ type ExerciceFlagUCQ struct {
DisplayAs string `toml:",omitempty"`
Choices_Cost int64 `toml:",omitempty"`
Choice []ExerciceFlagUCQChoice
LockedFile []ExerciceFlag `toml:unlock_file",omitempty"`
}
// ExerciceParams contains values parsed from defines.txt.