mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-19 17:19:58 +02:00
22 lines
655 B
Java
22 lines
655 B
Java
package emu.nebula.server.handlers;
|
|
|
|
import emu.nebula.net.NetHandler;
|
|
import emu.nebula.net.NetMsgId;
|
|
import emu.nebula.proto.NpcAffinityBookGet.NPCAffinityBookGetResp;
|
|
import emu.nebula.net.HandlerId;
|
|
import emu.nebula.net.GameSession;
|
|
|
|
@HandlerId(NetMsgId.npc_affinity_book_get_req)
|
|
public class HandlerNpcAffinityBookGetReq extends NetHandler {
|
|
|
|
@Override
|
|
public byte[] handle(GameSession session, byte[] message) throws Exception {
|
|
// Build response
|
|
var rsp = NPCAffinityBookGetResp.newInstance();
|
|
|
|
// Encode and send
|
|
return session.encodeMsg(NetMsgId.npc_affinity_book_get_succeed_ack, rsp);
|
|
}
|
|
|
|
}
|