mc-beta-server/server/packets/IPacket.ts
2023-04-10 21:52:30 +01:00

8 lines
No EOL
214 B
TypeScript

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