mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-18 23:34:51 +01:00
Implement gacha banners (not newbie)
This commit is contained in:
@@ -2,7 +2,8 @@ package emu.nebula.server.handlers;
|
||||
|
||||
import emu.nebula.net.NetHandler;
|
||||
import emu.nebula.net.NetMsgId;
|
||||
import emu.nebula.proto.GachaInformation.GachaInformationResp;
|
||||
import emu.nebula.proto.GachaNewbieInfoOuterClass.GachaNewbieInfo;
|
||||
import emu.nebula.proto.GachaNewbieInfoOuterClass.GachaNewbieInfoResp;
|
||||
import emu.nebula.net.HandlerId;
|
||||
import emu.nebula.net.GameSession;
|
||||
|
||||
@@ -11,7 +12,12 @@ public class HandlerGachaNewbieInfoReq extends NetHandler {
|
||||
|
||||
@Override
|
||||
public byte[] handle(GameSession session, byte[] message) throws Exception {
|
||||
var rsp = GachaInformationResp.newInstance();
|
||||
var rsp = GachaNewbieInfoResp.newInstance();
|
||||
var info = GachaNewbieInfo.newInstance()
|
||||
.setId(5)
|
||||
.setReceive(true);
|
||||
|
||||
rsp.addList(info);
|
||||
|
||||
return session.encodeMsg(NetMsgId.gacha_newbie_info_succeed_ack, rsp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user