Binato/osuTyping.ts

17 lines
360 B
TypeScript
Raw Permalink Normal View History

2023-09-10 12:59:22 +01:00
import OsuPacketWriter from "./server/interfaces/OsuPacketWriter";
2023-08-20 13:03:01 +01:00
const nodeOsu = require("osu-packet");
2023-09-10 12:59:22 +01:00
export default abstract class osu {
2023-08-20 13:03:01 +01:00
static Bancho = {
Writer: function() : OsuPacketWriter {
return new nodeOsu.Bancho.Writer();
}
};
static Client = {
Reader: function(data:any) : any {
return new nodeOsu.Client.Reader(data);
}
};
}