mc-beta-server/server/packets/IPacket.ts
2023-04-08 20:52:47 +01:00

8 lines
No EOL
225 B
TypeScript

import { Reader, Writer } from "../../bufferStuff";
import { Packets } from "../enums/Packets";
export interface IPacket {
packetId: Packets,
readData: (reader:Reader) => IPacket,
writeData: () => Buffer|Promise<Buffer>
}