Implement cataclysm survivor (basic)

This commit is contained in:
Melledy
2025-11-08 05:57:44 -08:00
parent 2ecc0f28c5
commit c32df9e8aa
10 changed files with 356 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
package emu.nebula.server.handlers;
import emu.nebula.net.NetHandler;
import emu.nebula.net.NetMsgId;
import emu.nebula.proto.VampireTalentDetail.VampireTalentDetailResp;
import emu.nebula.net.HandlerId;
import emu.nebula.net.GameSession;
@HandlerId(NetMsgId.vampire_talent_detail_req)
public class HandlerVampireTalentDetailReq extends NetHandler {
@Override
public byte[] handle(GameSession session, byte[] message) throws Exception {
// Build response
var rsp = VampireTalentDetailResp.newInstance()
.setNodes(new byte[8]);
// Encode and send
return session.encodeMsg(NetMsgId.vampire_talent_detail_succeed_ack, rsp);
}
}