2024-01-27 13:06:07 +00:00
|
|
|
|
namespace FreeSR.Gateserver.Manager.Handlers
|
|
|
|
|
{
|
|
|
|
|
using FreeSR.Gateserver.Manager.Handlers.Core;
|
|
|
|
|
using FreeSR.Gateserver.Network;
|
|
|
|
|
using FreeSR.Proto;
|
|
|
|
|
|
|
|
|
|
internal static class MissionReqGroup
|
|
|
|
|
{
|
2024-01-27 13:08:24 +00:00
|
|
|
|
[Handler(CmdType.CmdGetMissionStatusCsReq)]
|
2024-01-27 13:06:07 +00:00
|
|
|
|
public static void OnGetMissionStatusCsReq(NetSession session, int cmdId, object data)
|
|
|
|
|
{
|
|
|
|
|
var request = data as GetMissionStatusCsReq;
|
|
|
|
|
GetMissionStatusScRsp response = new GetMissionStatusScRsp
|
|
|
|
|
{
|
2024-01-27 13:08:24 +00:00
|
|
|
|
Retcode = (uint)RetcodeStatus.RetSucc,
|
2024-01-27 13:06:07 +00:00
|
|
|
|
};
|
|
|
|
|
|
2024-01-27 13:08:24 +00:00
|
|
|
|
response.FinishedMainMissionIdLists = new uint[] {
|
|
|
|
|
1000101,1000112,1000113,1000201,1000202,1000204,1000301,1000401,1000402,1000410,1000510,1000601,1010301,
|
|
|
|
|
1010302,1010401,1010403,1010701,1011403,1010202,1010902,1011102,4010101 };
|
2024-01-27 13:06:07 +00:00
|
|
|
|
|
|
|
|
|
|
2024-01-27 13:08:24 +00:00
|
|
|
|
if (request.SubMissionIdLists != null)
|
2024-01-27 13:06:07 +00:00
|
|
|
|
{
|
2024-01-27 13:08:24 +00:00
|
|
|
|
foreach (uint id in request.SubMissionIdLists)
|
2024-01-27 13:06:07 +00:00
|
|
|
|
{
|
2024-01-27 13:08:24 +00:00
|
|
|
|
response.MissionEventStatusLists.Add(new Mission()
|
2024-01-27 13:06:07 +00:00
|
|
|
|
{
|
|
|
|
|
Id = id,
|
|
|
|
|
Progress = 0,
|
2024-01-27 13:08:24 +00:00
|
|
|
|
Status = MissionStatus.MissionFinish
|
2024-01-27 13:06:07 +00:00
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-27 13:08:24 +00:00
|
|
|
|
if (request.MainMissionIdLists != null)
|
2024-01-27 13:06:07 +00:00
|
|
|
|
{
|
2024-01-27 13:08:24 +00:00
|
|
|
|
foreach (uint id in request.MainMissionIdLists)
|
2024-01-27 13:06:07 +00:00
|
|
|
|
{
|
2024-01-27 13:08:24 +00:00
|
|
|
|
response.SubMissionStatusLists.Add(new Mission()
|
2024-01-27 13:06:07 +00:00
|
|
|
|
{
|
|
|
|
|
Id = id,
|
|
|
|
|
Progress = 0,
|
2024-01-27 13:08:24 +00:00
|
|
|
|
Status = MissionStatus.MissionFinish
|
2024-01-27 13:06:07 +00:00
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-27 13:08:24 +00:00
|
|
|
|
session.Send(CmdType.CmdGetMissionStatusScRsp, response);
|
2024-01-27 13:06:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|