diff --git a/src/server/packets/ChangeLineupLeaderCsReq.ts b/src/server/packets/ChangeLineupLeaderCsReq.ts new file mode 100644 index 0000000..5c1a485 --- /dev/null +++ b/src/server/packets/ChangeLineupLeaderCsReq.ts @@ -0,0 +1,12 @@ +import { ChangeLineupLeaderCsReq, ChangeLineupLeaderScRsp } from "../../data/proto/StarRail"; +import Packet from "../kcp/Packet"; +import Session from "../kcp/Session"; + +export default async function handle(session: Session, packet: Packet) { + const body = packet.body as ChangeLineupLeaderCsReq; + + session.send("ChangeLineupLeaderScRsp", { + retcode: 0, + slot: body.slot + } as ChangeLineupLeaderScRsp); +} \ No newline at end of file diff --git a/src/server/packets/SceneEntityMoveCsReq.ts b/src/server/packets/SceneEntityMoveCsReq.ts new file mode 100644 index 0000000..7dbbedb --- /dev/null +++ b/src/server/packets/SceneEntityMoveCsReq.ts @@ -0,0 +1,12 @@ +import { SceneEntityMoveCsReq, SceneEntityMoveScRsp } from "../../data/proto/StarRail"; +import Packet from "../kcp/Packet"; +import Session from "../kcp/Session"; + +export default async function handle(session: Session, packet: Packet) { + const body = packet.body as SceneEntityMoveCsReq; + + session.send("SceneEntityMoveScRsp", { + retcode: 0, + downloadData: undefined, + } as SceneEntityMoveScRsp); +} \ No newline at end of file