From c537726f27bba7fa5dd6029a51c82081bc563dc1 Mon Sep 17 00:00:00 2001 From: TheLostTree <65834918+TheLostTree@users.noreply.github.com> Date: Sun, 31 Jul 2022 14:11:09 -0700 Subject: [PATCH] add avatar swaps --- src/server/packets/ChangeLineupLeaderCsReq.ts | 12 ++++++++++++ src/server/packets/SceneEntityMoveCsReq.ts | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 src/server/packets/ChangeLineupLeaderCsReq.ts create mode 100644 src/server/packets/SceneEntityMoveCsReq.ts 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