33 lines
505 B
Haxe
33 lines
505 B
Haxe
package;
|
|
|
|
import kiss.Prelude;
|
|
import kiss.List;
|
|
import kiss.Stream;
|
|
import sys.io.File;
|
|
import datetime.DateTime;
|
|
|
|
enum EntryType {
|
|
Daily(daysOfWeek:Array<Int>, lastDayDone:String);
|
|
Interval(days:Int, lastDayDone:String);
|
|
Bonus;
|
|
Todo;
|
|
}
|
|
|
|
typedef EntryLabel = {
|
|
label:String,
|
|
points:Int
|
|
};
|
|
|
|
typedef Entry = {
|
|
type: EntryType,
|
|
labels: Array<EntryLabel>,
|
|
};
|
|
|
|
typedef RewardFile = {
|
|
path: String,
|
|
startingPoints: Int
|
|
};
|
|
|
|
@:build(kiss.Kiss.build())
|
|
class HabitModel {}
|