feat: Implement complete transform & Build & Upload FakeForwardMsg

This commit is contained in:
pk5ls20
2024-10-19 22:13:31 +08:00
parent 9c17dc1b8f
commit c9e3bbcd9f
11 changed files with 290 additions and 146 deletions

View File

@@ -1,15 +1,18 @@
import { PacketClient } from "@/core/packet/client";
import { PacketHighwaySession } from "@/core/packet/highway/session";
import { LogWrapper } from "@/common/log";
import {PacketPacker} from "@/core/packet/packer";
export class PacketSession {
readonly logger: LogWrapper;
readonly client: PacketClient;
readonly packer: PacketPacker;
readonly highwaySession: PacketHighwaySession;
constructor(logger: LogWrapper, client: PacketClient) {
this.logger = logger;
this.client = client;
this.highwaySession = new PacketHighwaySession(this.logger, this.client);
this.packer = new PacketPacker(this.logger, this.client);
this.highwaySession = new PacketHighwaySession(this.logger, this.client, this.packer);
}
}