Skip to content

Commit

Permalink
update default gamemodes
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsSammyM committed Jan 14, 2025
1 parent eae9074 commit ba1835a
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 52 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GameModeStorage, ShareableGameMode } from "..";
import { CurrentFormat, GameModeStorage, ShareableGameMode } from "..";
import { Settings } from "../../../../game/localStorage";
import { Failure, ParseResult, Success, isFailure } from "../parse"
import initial from "./initial"
Expand Down Expand Up @@ -29,7 +29,7 @@ type ConverterMap = {
const VERSION_CONVERTERS: Record<string, VersionConverter> = { initial, v0, v1, v2, v3, v4 }

/// This converter is the latest version, and acts as a verification step.
export const LATEST_VERSION_STRING = "v3";
export const LATEST_VERSION_STRING: CurrentFormat = "v4";
const LATEST_VERSION: VersionConverter = VERSION_CONVERTERS[LATEST_VERSION_STRING];

export default function parseFromJson<T extends keyof ConverterMap>(type: T, json: NonNullable<any>): ParseResult<ConverterMap[T]> {
Expand Down
Loading

0 comments on commit ba1835a

Please sign in to comment.