admin/sync: defines.txt can also contains informations about hints

This commit is contained in:
nemunaire 2018-01-10 04:42:50 +01:00
commit ca41e4edee
2 changed files with 30 additions and 1 deletions

View file

@ -6,8 +6,15 @@ import (
"github.com/BurntSushi/toml"
)
type ExerciceHintParams struct {
Filename string
Cost int64
Title string
}
type ExerciceParams struct {
Gain int64
Hints []ExerciceHintParams `toml:"hint"`
}
func parseExerciceParams(i Importer, exPath string) (p ExerciceParams, err error) {