mirror of
https://github.com/Melledy/Nebula.git
synced 2026-11-04 21:36:51 +01:00
Initial Commit
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user