Fixed note scroll speed defaulting to 0.5x for newly registered profiles.

Introduced several new interfaces, and refactored code to cleanup profiles.ts
This commit is contained in:
Thome Valentin
2022-05-16 13:50:18 +02:00
parent b240a72cfa
commit 70d2fe2bb8
17 changed files with 450 additions and 372 deletions
+15 -2
View File
@@ -1,7 +1,9 @@
import { PLUGIN_VER } from "../const";
export interface PlayerInfo {
collection: 'playerinfo',
pluginVer: Number;
pluginVer: number;
id: number;
version: string,
@@ -16,4 +18,15 @@ export interface PlayerInfo {
}[];
// TODO: Add Board things.
}
}
export function getDefaultPlayerInfo(version: string, id: number) : PlayerInfo {
return {
collection: 'playerinfo',
pluginVer: PLUGIN_VER,
id,
version,
name: 'ASPHYXIA-CORE USER',
title: 'Please edit on WebUI',
}
}