mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-03-22 01:44:39 -05:00
31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
import ShopInfo from "./routes/shopinfo";
|
|
import {getProfile, Getinfo, loadScore, Meeting} from "./routes/gametop";
|
|
import {saveProfile} from "./routes/gameend";
|
|
import {Check, Entry, Refresh, Report} from "./routes/lobby";
|
|
|
|
export async function register() {
|
|
if (CORE_VERSION_MAJOR <= 1 && CORE_VERSION_MINOR < 31) {
|
|
console.error("The current version of Asphyxia Core is not supported. Requires version '1.31' or later.");
|
|
return;
|
|
}
|
|
R.GameCode("L44");
|
|
R.Contributor("yuanqiuye", "https://github.com/yuanqiuye")
|
|
R.Route("gametop.regist",getProfile);
|
|
R.Route("gametop.get_info", Getinfo);
|
|
R.Route("gametop.get_pdata", getProfile);
|
|
R.Route("gametop.get_mdata", loadScore);
|
|
R.Route("gametop.get_meeting", Meeting);
|
|
|
|
R.Route("gameend.final", true);
|
|
R.Route("gameend.regist", saveProfile);
|
|
|
|
R.Route("shopinfo.regist", ShopInfo);
|
|
R.Route("lobby.check", Check);
|
|
R.Route("lobby.entry", Entry);
|
|
R.Route("lobby.refresh", Refresh);
|
|
R.Route("lobby.report", Report);
|
|
|
|
R.Route("netlog.send", true);
|
|
R.Route("logger.report", true);
|
|
R.Unhandled();
|
|
} |