Binato/osuTyping.ts

17 lines
357 B
TypeScript
Raw 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 = {
2023-10-05 11:15:13 +01:00
Reader: function(data:Buffer) {
2023-08-20 13:03:01 +01:00
return new nodeOsu.Client.Reader(data);
}
};
}