Update server to support latest version

This commit is contained in:
Melledy
2025-12-22 20:37:45 -08:00
parent 450b0cca30
commit a8e358d2d6
21 changed files with 11944 additions and 362 deletions
@@ -0,0 +1,21 @@
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);
}
}