public static ReturnValue <EscapeBattleSyncData> SyncZhengBaData(EscapeBattleSyncData lastSyncData) { AutoWaitReturnValue <KfCall._p2> _wait_ = AutoWaitReturnValue <KfCall._p2> .Pop(); try { AutoCSer.Net.TcpInternalServer.ClientSocketSender _socket_ = KfCall.TcpClient.Sender; if (_socket_ != null) { KfCall._p1 _inputParameter_ = new KfCall._p1 { p0 = lastSyncData }; KfCall._p2 _outputParameter_ = default(KfCall._p2); ReturnType _returnType_ = _socket_.WaitGet <KfCall._p1, KfCall._p2>(TcpCall.EscapeBattle_K._c1, ref _wait_, ref _inputParameter_, ref _outputParameter_); return(new ReturnValue <EscapeBattleSyncData> { Type = _returnType_, Value = _outputParameter_.Return }); } } finally { if (_wait_ != null) { AutoWaitReturnValue <KfCall._p2> .PushNotNull(_wait_); } } return(new ReturnValue <EscapeBattleSyncData> { Type = ReturnType.ClientException }); }
public static EscapeBattleSyncData SyncZhengBaData(EscapeBattleSyncData lastSyncData) { EscapeBattleSyncData result = new EscapeBattleSyncData(); lock (EscapeBattle_K.Mutex) { result.Season = EscapeBattle_K.SyncData.Season; result.State = EscapeBattle_K.SyncData.State; result.CenterTime = TimeUtil.NowDateTime(); result.RankModTime = lastSyncData.RankModTime; if (EscapeBattle_K.SyncData.RankModTime != result.RankModTime && EscapeBattle_K.SyncData.RankList != null) { result.RankModTime = EscapeBattle_K.SyncData.RankModTime; result.RankList = new List <KFEscapeRankInfo>(EscapeBattle_K.SyncData.RankList); result.SeasonRankList = new List <KFEscapeRankInfo>(EscapeBattle_K.SyncData.SeasonRankList); } } return(result); }
public static EscapeBattleSyncData _M1(EscapeBattleSyncData lastSyncData) { return(EscapeBattle_K.SyncZhengBaData(lastSyncData)); }