Initial Commit

This commit is contained in:
Melledy committed 2025-10-27 02:02:26 -07:00
commit f58951fe2a
378 files changed
+315914

No files matched your search

@@ -0,0 +1,22 @@
package emu.nebula.server.handlers;
import emu.nebula.net.NetHandler;
import emu.nebula.net.NetMsgId;
import emu.nebula.proto.Public.NewbieInfo;
import emu.nebula.net.HandlerId;
import emu.nebula.net.GameSession;
@HandlerId(NetMsgId.player_learn_req)
public class HandlerPlayerLearnReq extends NetHandler {
@Override
public byte[] handle(GameSession session, byte[] message) throws Exception {
var req = NewbieInfo.parseFrom(message);
// TODO set newbie info
session.getPlayer().setNewbieInfo(req.getGroupId(), req.getStepId());
return this.encodeMsg(NetMsgId.player_learn_succeed_ack);
}
}