mirror of
https://github.com/Melledy/Nebula.git
synced 2026-11-04 21:36:51 +01:00
23 lines
660 B
Java
23 lines
660 B
Java
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 session.encodeMsg(NetMsgId.player_learn_succeed_ack);
|
|
}
|
|
|
|
}
|