Binato/osuTyping.ts
2023-10-05 11:15:13 +01:00

17 lines
No EOL
357 B
TypeScript

import OsuPacketWriter from "./server/interfaces/OsuPacketWriter";
const nodeOsu = require("osu-packet");
export default abstract class osu {
static Bancho = {
Writer: function() : OsuPacketWriter {
return new nodeOsu.Bancho.Writer();
}
};
static Client = {
Reader: function(data:Buffer) {
return new nodeOsu.Client.Reader(data);
}
};
}