add avatar swaps

This commit is contained in:
TheLostTree 2022-07-31 14:11:09 -07:00
parent c9763d67a9
commit c537726f27
2 changed files with 24 additions and 0 deletions

View File

@ -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);
}

View File

@ -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);
}