groundwork for puzzle pack detection & choosing next puzzle

This commit is contained in:
2022-08-04 04:04:13 +00:00
parent bb939bb3f0
commit 85c2fc615e
4 changed files with 33 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ import kiss.Stream;
import sys.io.File;
import datetime.DateTime;
import datetime.DateTimeInterval;
import haxe.ds.Option;
enum EntryType {
Daily(daysOfWeek:Array<Int>, lastDayDone:String);
@@ -31,5 +32,18 @@ typedef RewardFile = {
startingPoints: Int
};
typedef Puzzle = {
path:Null<String>,
index:Int,
outOf:Int
}
typedef PuzzlePack = {
path:String,
nextPuzzle:Option<Puzzle>,
puzzlesDone:Int,
puzzlesTotal:Int
};
@:build(kiss.Kiss.build())
class HabitModel {}