1.6.55
This commit is contained in:
@@ -9,36 +9,35 @@
|
||||
{
|
||||
private static readonly Logger s_log = LogManager.GetCurrentClassLogger();
|
||||
|
||||
[Handler(CmdType.GetTutorialGuideCsReq)]
|
||||
[Handler(CmdType.CmdGetTutorialGuideCsReq)]
|
||||
public static void OnGetTutorialGuideCsReq(NetSession session, int cmdId, object _)
|
||||
{
|
||||
var response = new GetTutorialGuideScRsp
|
||||
{
|
||||
Retcode = Retcode.RETCODE_RET_SUCC,
|
||||
TutorialGuideList = new List<TutorialGuide>()
|
||||
Retcode = (uint)RetcodeStatus.RetSucc
|
||||
};
|
||||
|
||||
int[] guides = new int[]
|
||||
uint[] guides = new uint[]
|
||||
{
|
||||
1101, 1102, 1104, 1105, 1116, 1117, 2006, 2007, 2101, 2105, 2106, 2107, 3007, 3105, 3106, 4001, 4101, 4102, 4103, 4104, 4105, 4106, 4107, 4108, 4109, 5101, 5102, 5103, 5104, 5105, 6001, 6002, 6003, 6004, 6005, 6006, 6007, 9101, 9102, 9103, 9104, 9105, 9106, 9107, 9108
|
||||
};
|
||||
|
||||
foreach (int id in guides)
|
||||
foreach (uint id in guides)
|
||||
{
|
||||
response.TutorialGuideList.Add(new TutorialGuide
|
||||
response.TutorialGuideLists.Add(new TutorialGuide
|
||||
{
|
||||
Id = id,
|
||||
Status = TutorialStatus.TUTORIAL_FINISH
|
||||
Status = TutorialStatus.TutorialFinish
|
||||
});
|
||||
}
|
||||
|
||||
session.Send(CmdType.GetTutorialGuideScRsp, response);
|
||||
session.Send(CmdType.CmdGetTutorialGuideScRsp, response);
|
||||
}
|
||||
|
||||
[Handler(CmdType.GetTutorialCsReq)]
|
||||
[Handler(CmdType.CmdGetTutorialCsReq)]
|
||||
public static void OnGetTutorialCsReq(NetSession session, int cmdId, object _)
|
||||
{
|
||||
int[] completedTutorials = new int[]
|
||||
uint[] completedTutorials = new uint[]
|
||||
{
|
||||
1001, 1002, 1003, 1004, 1005, 1007, 1008, 1010, 1011,
|
||||
2001, 2002, 2003, 2004, 2005, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015,
|
||||
@@ -51,20 +50,19 @@
|
||||
|
||||
var response = new GetTutorialScRsp
|
||||
{
|
||||
Retcode = Retcode.RETCODE_RET_SUCC,
|
||||
TutorialList = new List<Tutorial>()
|
||||
Retcode = (uint)RetcodeStatus.RetSucc,
|
||||
};
|
||||
|
||||
foreach (int id in completedTutorials)
|
||||
foreach (uint id in completedTutorials)
|
||||
{
|
||||
response.TutorialList.Add(new Tutorial
|
||||
response.TutorialLists.Add(new Tutorial
|
||||
{
|
||||
Id = id,
|
||||
Status = TutorialStatus.TUTORIAL_FINISH
|
||||
Status = TutorialStatus.TutorialFinish
|
||||
});
|
||||
}
|
||||
|
||||
session.Send(CmdType.GetTutorialScRsp, response);
|
||||
session.Send(CmdType.CmdGetTutorialScRsp, response);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user