admin/sync: defines.txt can also contains informations about hints
This commit is contained in:
parent
332aa90931
commit
ca41e4edee
2 changed files with 30 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Reference in a new issue