blob: baf5492ac4b9ac201d7d16e7defeb88c31c81c88 (
plain)
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
|
using System;
using KKSG;
using XMainClient.UI;
using XUtliPoolLib;
namespace XMainClient
{
internal class Process_RpcC2G_GetSpActivityReward
{
public static void OnReply(GetSpActivityRewardArg oArg, GetSpActivityRewardRes oRes)
{
bool flag = oRes.errorcode == ErrorCode.ERR_SUCCESS;
if (flag)
{
int num = XFastEnumIntEqualityComparer<ActivityType>.ToInt(ActivityType.BigPrize);
bool flag2 = oArg.actid == 1u;
if (flag2)
{
XCarnivalDocument specificDocument = XDocuments.GetSpecificDocument<XCarnivalDocument>(XCarnivalDocument.uuID);
specificDocument.RespClaim(oArg.taskid);
}
else
{
bool flag3 = oArg.actid == (uint)num;
if (flag3)
{
XAncientDocument specificDocument2 = XDocuments.GetSpecificDocument<XAncientDocument>(XAncientDocument.uuID);
specificDocument2.ResClaim();
}
else
{
bool flag4 = oArg.actid == WeekEndNestDocument.Doc.m_actId;
if (flag4)
{
WeekEndNestDocument.Doc.OnGetReward(oRes);
}
else
{
bool flag5 = oArg.actid == 5u;
if (flag5)
{
XBackFlowDocument.Doc.OnGetReward(oArg, oRes);
}
}
}
}
}
else
{
XSingleton<UiUtility>.singleton.ShowErrorCode(oRes.errorcode);
}
}
public static void OnTimeout(GetSpActivityRewardArg oArg)
{
}
}
}
|