mc-beta-server/server/packets/IPacket.ts

8 lines
225 B
TypeScript
Raw Normal View History

2023-04-08 20:52:47 +01:00
import { Reader, Writer } from "../../bufferStuff";
import { Packets } from "../enums/Packets";
export interface IPacket {
packetId: Packets,
readData: (reader:Reader) => IPacket,
writeData: () => Buffer|Promise<Buffer>
}