WeekData
| Kind | class |
| Package | backend |
| Full name | backend.WeekData |
| Source | source/backend/WeekData.hx |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
weeksLoaded | Map<String, WeekData> | yes | new Map<String, WeekData>() | — |
weeksList | Array<String> | yes | [] | — |
folder | String | no | '' | — |
songs | Array<Dynamic> | no | — | JSON variables |
weekCharacters | Array<String> | no | — | — |
weekBackground | String | no | — | — |
weekBefore | String | no | — | — |
storyName | String | no | — | — |
weekName | String | no | — | — |
freeplayColor | Array<Int> | no | — | — |
startUnlocked | Bool | no | — | — |
hiddenUntilUnlocked | Null<Bool> | no | — | — |
hideStoryMode | Bool | no | — | — |
hideFreeplay | Bool | no | — | — |
difficulties | String | no | — | — |
fileName | String | no | — | — |
Public methods
createWeekFile
static function createWeekFile():WeekFile
new (constructor)
function new(weekFile:WeekFile, fileName:String)
| Parameter | Type | Default |
|---|---|---|
weekFile | WeekFile | — |
fileName | String | — |
reloadWeekFiles
static function reloadWeekFiles(isStoryMode:Null<Bool> = false)
| Parameter | Type | Default |
|---|---|---|
isStoryMode (optional) | Null<Bool> | false |
getWeekFileName
static function getWeekFileName():String
FUNCTIONS YOU WILL PROBABLY NEVER NEED TO USE To use on PlayState.hx or Highscore stuff
getCurrentWeek
static function getCurrentWeek():WeekData
Used on LoadingState, nothing really too relevant
setDirectoryFromWeek
static function setDirectoryFromWeek(data:WeekData = null)
| Parameter | Type | Default |
|---|---|---|
data (optional) | WeekData | null |
Internals
Private / internal members
| Method |
|---|
static function isValidWeekJson(data:Dynamic):Bool |
static function addWeek(weekToCheck:String, path:String, directory:String, i:Int, originalLength:Int) |
static function getWeekFile(path:String):WeekFile |