diff options
Diffstat (limited to 'src/cleaners/skyblock/zones.ts')
-rw-r--r-- | src/cleaners/skyblock/zones.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/cleaners/skyblock/zones.ts b/src/cleaners/skyblock/zones.ts new file mode 100644 index 0000000..87d008d --- /dev/null +++ b/src/cleaners/skyblock/zones.ts @@ -0,0 +1,18 @@ +export interface Zone { + name: string + visited: boolean +} + + +export function cleanVisitedZones(data: any): Zone[] { + const rawZones = data?.visited_zones || [] + // TODO: store all the zones that exist in SkyBlock, add add those to the array with visited being false + const zones: Zone[] = [] + for (const rawZoneName of rawZones) { + zones.push({ + name: rawZoneName, + visited: true + }) + } + return zones +} |