From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../PTC/Process/Process_RpcC2G_QuerySceneTime.cs | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneTime.cs (limited to 'Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneTime.cs') diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneTime.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneTime.cs new file mode 100644 index 00000000..56707392 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneTime.cs @@ -0,0 +1,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.singleton.SyncMode; + if (syncMode) + { + bool flag2 = XSingleton.singleton.SceneType != SceneType.SCENE_CASTLE_WAIT && XSingleton.singleton.SceneType != SceneType.SCENE_CASTLE_FIGHT; + if (flag2) + { + XBattleDocument xbattleDoc = XSingleton.singleton.Doc.XBattleDoc; + XSpectateSceneDocument xspectateSceneDoc = XSingleton.singleton.Doc.XSpectateSceneDoc; + bool flag3 = oRes.time >= 0; + if (flag3) + { + xbattleDoc.ResetSceneTime(oRes.time); + xspectateSceneDoc.ResetSceneTime(oRes.time); + } + bool flag4 = XSingleton.singleton.SceneType == SceneType.SCENE_RIFT; + if (flag4) + { + XRiftDocument specificDocument = XDocuments.GetSpecificDocument(XRiftDocument.uuID); + specificDocument.ResSceneTime(oRes.time); + } + } + } + } + } + + public static void OnTimeout(QuerySceneTimeArg oArg) + { + } + } +} -- cgit v1.1-26-g67d0