Grasscutter/src/main/java/emu/grasscutter/server/packet/send/PacketNpcTalkRsp.java

20 lines
608 B
Java
Raw Normal View History

2022-04-20 04:25:38 +00:00
package emu.grasscutter.server.packet.send;
import emu.grasscutter.net.packet.BasePacket;
2022-04-20 04:25:38 +00:00
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.NpcTalkRspOuterClass.NpcTalkRsp;
public class PacketNpcTalkRsp extends BasePacket {
2022-04-20 04:25:38 +00:00
public PacketNpcTalkRsp(int npcEntityId, int curTalkId, int entityId) {
super(PacketOpcodes.NpcTalkRsp);
NpcTalkRsp p = NpcTalkRsp.newBuilder()
.setNpcEntityId(npcEntityId)
.setCurTalkId(curTalkId)
.setEntityId(entityId)
.build();
this.setData(p);
}
}