blob: ba8cd65bb4ec95ebc2b6a8637b1577a2ba0953fc (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
using System;
using KKSG;
using XMainClient.UI.UICommon;
using XUtliPoolLib;
namespace XMainClient
{
internal class XGuildRankDocument : XDocComponent
{
public override uint ID
{
get
{
return XGuildRankDocument.uuID;
}
}
public uint EndTime
{
get
{
return this.m_EndTime;
}
}
public uint KeepTime
{
get
{
return this.m_KeepTime;
}
}
public uint RankIndex
{
get
{
return this.m_rankIndex;
}
}
public int LastTime
{
get
{
return this.m_lastTime;
}
set
{
this.m_lastTime = value;
}
}
public new static readonly uint uuID = XSingleton<XCommon>.singleton.XHash("XGuildRankDocument");
public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader();
public static GuildRankRewardTable m_RankRewardTable = new GuildRankRewardTable();
private uint m_EndTime;
private uint m_KeepTime;
private uint m_rankIndex;
public int m_lastTime = 0;
public static void Execute(OnLoadedCallback callback = null)
{
XGuildRankDocument.AsyncLoader.AddTask("Table/GuildRankReward", XGuildRankDocument.m_RankRewardTable, false);
XGuildRankDocument.AsyncLoader.Execute(callback);
}
protected override void OnReconnected(XReconnectedEventArgs arg)
{
bool flag = DlgBase<XOperatingActivityView, XOperatingActivityBehaviour>.singleton.IsVisible();
if (flag)
{
this.SendGuildRankInfo();
}
}
public void SendGuildRankInfo()
{
RpcC2M_ReqGuildRankInfo rpc = new RpcC2M_ReqGuildRankInfo();
XSingleton<XClientNetwork>.singleton.Send(rpc);
}
public void ReceiveGuildRankInfo(ReqGuildRankInfoRes res)
{
this.m_EndTime = res.endTime;
this.m_KeepTime = res.keepTime;
this.m_rankIndex = res.rank;
this.LastTime = (int)(res.endTime - res.nowTime);
bool flag = DlgBase<XOperatingActivityView, XOperatingActivityBehaviour>.singleton.IsVisible();
if (flag)
{
DlgBase<XOperatingActivityView, XOperatingActivityBehaviour>.singleton.Refresh();
}
}
}
}
|