blob: 56707392171460ec1d49871bbc1e5be82c8467de (
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
|
using System;
using KKSG;
using XUtliPoolLib;
namespace XMainClient
{
internal class Process_RpcC2G_QuerySceneTime
{
public static void OnReply(QuerySceneTimeArg oArg, QuerySceneTimeRes oRes)
{
bool flag = oRes.errorcode == ErrorCode.ERR_SUCCESS;
if (flag)
{
bool syncMode = XSingleton<XGame>.singleton.SyncMode;
if (syncMode)
{
bool flag2 = XSingleton<XScene>.singleton.SceneType != SceneType.SCENE_CASTLE_WAIT && XSingleton<XScene>.singleton.SceneType != SceneType.SCENE_CASTLE_FIGHT;
if (flag2)
{
XBattleDocument xbattleDoc = XSingleton<XGame>.singleton.Doc.XBattleDoc;
XSpectateSceneDocument xspectateSceneDoc = XSingleton<XGame>.singleton.Doc.XSpectateSceneDoc;
bool flag3 = oRes.time >= 0;
if (flag3)
{
xbattleDoc.ResetSceneTime(oRes.time);
xspectateSceneDoc.ResetSceneTime(oRes.time);
}
bool flag4 = XSingleton<XScene>.singleton.SceneType == SceneType.SCENE_RIFT;
if (flag4)
{
XRiftDocument specificDocument = XDocuments.GetSpecificDocument<XRiftDocument>(XRiftDocument.uuID);
specificDocument.ResSceneTime(oRes.time);
}
}
}
}
}
public static void OnTimeout(QuerySceneTimeArg oArg)
{
}
}
}
|