mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-12-05 03:03:31 +00:00
31 lines
880 B
Java
31 lines
880 B
Java
package emu.grasscutter.server.packet.send;
|
|
|
|
import emu.grasscutter.game.player.Player;
|
|
import emu.grasscutter.net.packet.BasePacket;
|
|
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
import emu.grasscutter.net.proto.SetPlayerBirthdayRspOuterClass.SetPlayerBirthdayRsp;
|
|
import emu.grasscutter.net.proto.SetPlayerBornDataReqOuterClass;
|
|
|
|
public class PacketSetPlayerBirthdayRsp extends BasePacket {
|
|
|
|
public PacketSetPlayerBirthdayRsp(int retCode) {
|
|
super(PacketOpcodes.SetPlayerBirthdayRsp);
|
|
|
|
SetPlayerBirthdayRsp proto = SetPlayerBirthdayRsp.newBuilder()
|
|
.setRetcode(retCode)
|
|
.build();
|
|
|
|
this.setData(proto);
|
|
}
|
|
|
|
public PacketSetPlayerBirthdayRsp(Player player) {
|
|
super(PacketOpcodes.SetPlayerBirthdayRsp);
|
|
|
|
SetPlayerBirthdayRsp proto = SetPlayerBirthdayRsp.newBuilder()
|
|
.setBirthday(player.getBirthday().toProto())
|
|
.build();
|
|
|
|
this.setData(proto);
|
|
}
|
|
}
|