mirror of
https://github.com/Anime-Game-Servers/AGSLunarCore.git
synced 2024-11-26 22:00:35 +00:00
SecretKeyInfo
This commit is contained in:
parent
adc4a35c67
commit
1c251fa5d4
File diff suppressed because it is too large
Load Diff
@ -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());
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user