mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-12-05 01:45:29 +00:00
21 lines
665 B
Java
21 lines
665 B
Java
|
package emu.grasscutter.server.packet.send;
|
||
|
|
||
|
import emu.grasscutter.net.packet.GenshinPacket;
|
||
|
import emu.grasscutter.net.packet.PacketOpcodes;
|
||
|
import emu.grasscutter.net.proto.DealAddFriendResultTypeOuterClass.DealAddFriendResultType;
|
||
|
import emu.grasscutter.net.proto.DealAddFriendRspOuterClass.DealAddFriendRsp;
|
||
|
|
||
|
public class PacketDealAddFriendRsp extends GenshinPacket {
|
||
|
|
||
|
public PacketDealAddFriendRsp(int targetUid, DealAddFriendResultType result) {
|
||
|
super(PacketOpcodes.DealAddFriendRsp);
|
||
|
|
||
|
DealAddFriendRsp proto = DealAddFriendRsp.newBuilder()
|
||
|
.setTargetUid(targetUid)
|
||
|
.setDealAddFriendResult(result)
|
||
|
.build();
|
||
|
|
||
|
this.setData(proto);
|
||
|
}
|
||
|
}
|