generated from yordan-kanchelov/pixi-typescript-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
65 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
import {GeneralData} from "./Sections/General/GeneralData"; | ||
import {EditorData} from "./Sections/Editor/EditorData"; | ||
import {Metadata} from "./Sections/Metadata/Metadata"; | ||
|
||
export class BeatmapData { | ||
/** | ||
* General information about the beatmap | ||
*/ | ||
public General: GeneralData = new GeneralData(); | ||
/** | ||
* Saved settings for the beatmap editor | ||
*/ | ||
public Editor: EditorData = new EditorData(); | ||
|
||
/** | ||
* <a href="https://osu.ppy.sh/wiki/en/Client/Beatmap_editor/Song_setup#general">Information</a> used to identify the beatmap | ||
*/ | ||
public Metadata: Metadata = new Metadata(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,45 @@ | ||
/** | ||
* Information used to identify the beatmap | ||
* <a href="https://osu.ppy.sh/wiki/en/Client/Beatmap_editor/Song_setup#general">Information</a> used to identify the beatmap | ||
*/ | ||
export class Metadata { | ||
|
||
/** | ||
* Romanised song title | ||
*/ | ||
public Title!: string; | ||
/** | ||
* Song title | ||
*/ | ||
public TitleUnicode!: string; | ||
/** | ||
* Romanised song artist | ||
*/ | ||
public Artist!: string; | ||
/** | ||
* Song artist | ||
*/ | ||
public ArtistUnicode!: string; | ||
/** | ||
* Beatmap creator | ||
*/ | ||
public Creator!: string; | ||
/** | ||
* Difficulty name | ||
*/ | ||
public Version!: string; | ||
/** | ||
* Original media the song was produced for | ||
*/ | ||
public Source: string | undefined; | ||
/** | ||
* Search terms | ||
*/ | ||
public Tags!: string[]; | ||
/** | ||
* Difficulty ID | ||
*/ | ||
public BeatmapID!: number; | ||
/** | ||
* Beatmap ID | ||
*/ | ||
public BeatmapSetID!: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
export class BeatmapParser { | ||
public constructor() { | ||
import {BeatmapData} from "../Data/BeatmapData"; | ||
|
||
export class BeatmapParser { | ||
public static parse(osuFileContent: string): BeatmapData { | ||
// TODO: parse .osu! file | ||
return new BeatmapData(); | ||
} | ||
|
||
} | ||
} |