Grasscutter/src/main/java/emu/grasscutter/server/packet/send/PacketUnlockAvatarTalentRsp.java
2022-04-26 21:27:35 -07:00

21 lines
626 B
Java

package emu.grasscutter.server.packet.send;
import emu.grasscutter.game.avatar.Avatar;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.UnlockAvatarTalentRspOuterClass.UnlockAvatarTalentRsp;
public class PacketUnlockAvatarTalentRsp extends BasePacket {
public PacketUnlockAvatarTalentRsp(Avatar avatar, int talentId) {
super(PacketOpcodes.UnlockAvatarTalentRsp);
UnlockAvatarTalentRsp proto = UnlockAvatarTalentRsp.newBuilder()
.setAvatarGuid(avatar.getGuid())
.setTalentId(talentId)
.build();
this.setData(proto);
}
}