mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-15 22:34:38 +01:00
Init enter game
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Mission;
|
||||
|
||||
public class PacketGetMissionDataRsp : BasePacket
|
||||
{
|
||||
public PacketGetMissionDataRsp(List<Proto.Mission> MissionList, bool IsAll) : base(CmdIds.GetMissionDataRsp)
|
||||
{
|
||||
var proto = new GetMissionDataRsp
|
||||
{
|
||||
ChallengeMission = new ChallengeMissionData { IsUnlock = true },
|
||||
CloseMissionList = { MissionList.Select(m => m.MissionId) },
|
||||
IsAll = IsAll,
|
||||
IsInActivity = true,
|
||||
MainlineStep = new MainlineStepMission { IsUpdate = true },
|
||||
MissionList = { MissionList }
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Mission;
|
||||
|
||||
public class PacketGetMissionGroupMainInfoRsp : BasePacket
|
||||
{
|
||||
public PacketGetMissionGroupMainInfoRsp() : base(CmdIds.GetMissionGroupMainInfoRsp)
|
||||
{
|
||||
// TODO: Hardcoded
|
||||
|
||||
var proto = new GetMissionGroupMainInfoRsp
|
||||
{
|
||||
HasTakeRewardMissionGroupList = { 97001 }
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Mission;
|
||||
|
||||
public class PacketGetMissionThemeDataRsp : BasePacket
|
||||
{
|
||||
public PacketGetMissionThemeDataRsp() : base(CmdIds.GetMissionThemeDataRsp)
|
||||
{
|
||||
// TODO: Implement
|
||||
|
||||
var proto = new GetMissionThemeDataRsp
|
||||
{
|
||||
IsGetAll = true,
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using KianaBH.Data;
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Mission;
|
||||
|
||||
public class PacketGetRecommendMissionPanelListRsp : BasePacket
|
||||
{
|
||||
public PacketGetRecommendMissionPanelListRsp() : base(CmdIds.GetRecommendMissionPanelListRsp)
|
||||
{
|
||||
//var proto = new GetRecommendMissionPanelListRsp
|
||||
//{
|
||||
// Retcode = GetRecommendMissionPanelListRsp.Types.Retcode.NotOpen, // set to NotOpen to prevent null reference error pop up
|
||||
// RecommendMissionPanelList =
|
||||
// {
|
||||
// GameData.RecommendPanelData.Values.Select(x => new RecommendMissionPanel
|
||||
// {
|
||||
// PanelId = x.PanelId,
|
||||
// IsPanelShow = true,
|
||||
// })
|
||||
// }
|
||||
//};
|
||||
|
||||
var proto = new GetRecommendMissionPanelListRsp
|
||||
{
|
||||
Retcode = GetRecommendMissionPanelListRsp.Types.Retcode.NotOpen, // set to NotOpen to prevent null reference error pop up
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user