[sdvx] v1.0

This commit is contained in:
Freddie
2020-06-02 02:28:11 +01:00
parent 0a35d3f544
commit 052d669ffe
12 changed files with 325 additions and 87 deletions
+11
View File
@@ -1,5 +1,11 @@
import { common } from './handlers/common';
import { hiscore, rival, saveMix, loadMix } from './handlers/features';
import {
updateProfile,
updateMix,
importMix,
deleteMix,
} from './handlers/webui';
import {
load,
create,
@@ -16,6 +22,11 @@ export function register() {
R.Config('unlock_all_songs', { type: 'boolean', default: false });
R.Config('unlock_all_navigators', { type: 'boolean', default: false });
R.WebUIEvent('updateProfile', updateProfile);
R.WebUIEvent('updateMix', updateMix);
R.WebUIEvent('importMix', importMix);
R.WebUIEvent('deleteMix', deleteMix);
const MultiRoute = (method: string, handler: EPR | boolean) => {
// Helper for register multiple versions.
R.Route(`game.sv4_${method}`, handler);