mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-12-05 03:03:31 +00:00
24 lines
1019 B
Java
24 lines
1019 B
Java
package emu.grasscutter.server.packet.send;
|
|
|
|
import emu.grasscutter.game.entity.EntityAvatar;
|
|
import emu.grasscutter.net.packet.BasePacket;
|
|
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
import emu.grasscutter.net.proto.EvtAvatarLockChairReqOuterClass.EvtAvatarLockChairReq;
|
|
import emu.grasscutter.net.proto.EvtAvatarLockChairRspOuterClass.EvtAvatarLockChairRsp;
|
|
import emu.grasscutter.net.proto.RetcodeOuterClass;
|
|
|
|
public class PacketEvtAvatarLockChairRsp extends BasePacket {
|
|
public PacketEvtAvatarLockChairRsp(int clientSequence, EntityAvatar entityAvatar, EvtAvatarLockChairReq lockChairReq) {
|
|
super(PacketOpcodes.EvtAvatarLockChairRsp);
|
|
|
|
EvtAvatarLockChairRsp p = EvtAvatarLockChairRsp.newBuilder()
|
|
.setRetcode(RetcodeOuterClass.Retcode.RET_SUCC_VALUE)
|
|
.setEntityId(entityAvatar.getId())
|
|
.setPosition(lockChairReq.getPosition())
|
|
.setChairId(lockChairReq.getChairId())
|
|
.build();
|
|
|
|
this.setData(p);
|
|
}
|
|
}
|