This commit is contained in:
rosetta
2026-01-30 05:01:05 +02:00
commit 83f38dc63f
327 changed files with 18725 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
import Packet from "../packet";
import Stream from "../stream";
export class PacketGroupLeave extends Packet {
private groupId: string = "";
public getPacketId(): number {
return 0x15;
}
public _receive(stream: Stream): void {
this.groupId = stream.readString();
}
public _send(): Promise<Stream> | Stream {
const stream = new Stream();
stream.writeInt16(this.getPacketId());
stream.writeString(this.groupId);
return stream;
}
public setGroupId(groupId: string) {
this.groupId = groupId;
}
public getGroupId(): string {
return this.groupId;
}
}