Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
konotorii committed Feb 26, 2024
1 parent d84db5e commit 80a65a1
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ This repo is meant to be up-to-date, providing type-safety and synchronous & asy


## Roadmap
- - -

- Write scores.db
- Read collections.db
Expand All @@ -19,13 +20,50 @@ This repo is meant to be up-to-date, providing type-safety and synchronous & asy


## Features
- - -

To-Be-Completed as updates roll-out.

### Read scores.db
```ts
import * as path from "path";
import {tools} from "osu-functions";

const read = await scoresRead(path.resolve('PATH TO FILE'))
const scores = await tools.scoresRead(path.resolve('PATH TO FILE')) // returns beatmap_type[]
/// Whatever you have to do with result...
```


## Types
- - -
### beatmap_type
```ts
{
md5: string;
scores: "score_type[]";
}
```
### score_type
```ts
{
mode: number;
version: number;
c300: number;
c100: number;
c50: number;
cGeki: number;
cMiss: number;
cKatu: number;
replayScore: number;
maxCombo: number;
perfectCombo: number;
mods: number;
timestampWindows: string;
timestampMs: number;
onlineScoreId: string;
player: string;
beatmapMd5: string;
replayMd5: string;
}

```

0 comments on commit 80a65a1

Please sign in to comment.