mirror of
https://github.com/Melledy/Nebula.git
synced 2026-11-04 21:36:51 +01:00
Update to support game version 1.6.0.*
This commit is contained in:
1 parent
155d6b2058
commit
d3ac668313
27 files changed
+17781
-1038
No files matched your search
@@ -0,0 +1,17 @@
|
||||
package emu.nebula.server.handlers;
|
||||
|
||||
import emu.nebula.net.NetHandler;
|
||||
import emu.nebula.net.NetMsgId;
|
||||
import emu.nebula.net.HandlerId;
|
||||
import emu.nebula.net.GameSession;
|
||||
|
||||
@HandlerId(NetMsgId.energy_info_req)
|
||||
public class HandlerEnergyInfoReq extends NetHandler {
|
||||
|
||||
@Override
|
||||
public byte[] handle(GameSession session, byte[] message) throws Exception {
|
||||
// Encode and send player energy info
|
||||
return session.encodeMsg(NetMsgId.energy_info_succeed_ack, session.getPlayer().getEnergyProto());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user