add avatar swaps
This commit is contained in:
parent
c9763d67a9
commit
c537726f27
12
src/server/packets/ChangeLineupLeaderCsReq.ts
Normal file
12
src/server/packets/ChangeLineupLeaderCsReq.ts
Normal 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);
|
||||||
|
}
|
12
src/server/packets/SceneEntityMoveCsReq.ts
Normal file
12
src/server/packets/SceneEntityMoveCsReq.ts
Normal 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);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user