1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
using System;
using System.Reflection;
using KKSG;
using XMainClient.UI;
using XMainClient.UI.UICommon;
using XUtliPoolLib;
namespace XMainClient
{
internal class Process_RpcC2G_BossRushReq
{
public static void OnReply(BossRushArg oArg, BossRushRes oRes)
{
bool flag = oRes.ret == ErrorCode.ERR_INVALID_REQUEST;
if (flag)
{
string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName;
XSingleton<UiUtility>.singleton.OnGetInvalidRequest(fullName);
}
else
{
XBossBushDocument specificDocument = XDocuments.GetSpecificDocument<XBossBushDocument>(XBossBushDocument.uuID);
bool flag2 = oRes.ret == ErrorCode.ERR_SUCCESS;
if (flag2)
{
bool flag3 = oArg.type == BossRushReqStatus.BOSSRUSH_REQ_BASEDATA || oArg.type == BossRushReqStatus.BOSSRUSH_REQ_REFRESH;
if (flag3)
{
specificDocument.Resp(oArg.type, oRes.data);
}
else
{
bool flag4 = oArg.type == BossRushReqStatus.BOSSRUSH_REQ_APPEARANCE || oArg.type == BossRushReqStatus.BOSSRUSH_REQ_CONTINUE;
if (flag4)
{
specificDocument.unitAppearance = oRes.bossApp;
DlgBase<BossRushDlg, BossRushBehavior>.singleton.GoBattle();
}
else
{
bool flag5 = oArg.type == BossRushReqStatus.BOSSRUSH_REQ_LEFTCOUNT;
if (flag5)
{
specificDocument.leftChanllageCnt = oRes.leftcount;
XActivityDocument.Doc.OnGetDayCount();
}
else
{
XSingleton<XDebug>.singleton.AddLog("rcv server msg!", null, null, null, null, null, XDebugColor.XDebug_None);
}
}
}
}
else
{
XSingleton<XDebug>.singleton.AddLog("bossrush err=>", oRes.ret.ToString(), null, null, null, null, XDebugColor.XDebug_None);
}
}
}
public static void OnTimeout(BossRushArg oArg)
{
}
}
}
|