SecretKeyInfo

This commit is contained in:
Hiro 2024-04-21 19:07:40 +03:00
parent adc4a35c67
commit 1c251fa5d4
3 changed files with 1074 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,16 @@
package emu.lunarcore.server.packet.recv;
import emu.lunarcore.server.packet.send.PacketGetSecretKeyInfoScRsp;
import emu.lunarcore.server.game.GameSession;
import emu.lunarcore.server.packet.CmdId;
import emu.lunarcore.server.packet.Opcodes;
import emu.lunarcore.server.packet.PacketHandler;
@Opcodes(CmdId.GetSecretKeyInfoCsReq)
public class HandlerGetSecretKeyInfoCsReq extends PacketHandler {
@Override
public void handle(GameSession session, byte[] data) throws Exception {
session.send(new PacketGetSecretKeyInfoScRsp());
}
}

View File

@ -0,0 +1,23 @@
package emu.lunarcore.server.packet.send;
import emu.lunarcore.proto.GetSecretKeyInfoScRspOuterClass.GetSecretKeyInfoScRsp;
import emu.lunarcore.proto.GetSecretKeyInfoScRspOuterClass.GetSecretKeyInfoScRsp.SecretKey;
import emu.lunarcore.proto.GetSecretKeyInfoScRspOuterClass.GetSecretKeyInfoScRsp.SecretKeyType;
import emu.lunarcore.server.packet.BasePacket;
import emu.lunarcore.server.packet.CmdId;
public class PacketGetSecretKeyInfoScRsp extends BasePacket {
public PacketGetSecretKeyInfoScRsp() {
super(CmdId.GetSecretKeyInfoScRsp);
var data = GetSecretKeyInfoScRsp.newInstance()
.addSecretKeys(
SecretKey.newInstance()
.setType(SecretKeyType.SECRET_KEY_VIDEO)
.setSecretKey("10120425825329403")
);
this.setData(data);
}
}