protected override void DealConnectSucc() { if (MonoSingleton <CTongCaiSys> .get_instance().IsCanUseTongCai()) { LobbyConnector.LookUpDNSOfServerTongcai(ApolloConfig.loginOnlyIpOrUrl, 0); } this.reconPolicy.StopPolicy(); Singleton <ReconnectIpSelect> .get_instance().SetLobbySuccessUrl(this.initParam.ip); if (this.ConnectedEvent != null) { this.ConnectedEvent(this); } Singleton <CUIManager> .GetInstance().CloseSendMsgAlert(); MonoSingleton <TssdkSys> .GetInstance().OnAccountLogin(); List <KeyValuePair <string, string> > list = new List <KeyValuePair <string, string> >(); list.Add(new KeyValuePair <string, string>("g_version", CVersion.GetAppVersion())); list.Add(new KeyValuePair <string, string>("WorldID", MonoSingleton <TdirMgr> .GetInstance().SelectedTdir.logicWorldID.ToString())); list.Add(new KeyValuePair <string, string>("platform", Singleton <ApolloHelper> .GetInstance().CurPlatform.ToString())); list.Add(new KeyValuePair <string, string>("openid", "NULL")); list.Add(new KeyValuePair <string, string>("status", "0")); list.Add(new KeyValuePair <string, string>("type", "platform")); list.Add(new KeyValuePair <string, string>("errorCode", "SUCC")); Singleton <ApolloHelper> .GetInstance().ApolloRepoertEvent("Service_SvrConnectFail", list, true); }
private void CheckNext() { if (this.currentScriptIndex < this.mConfList.get_Count()) { if (!Singleton <NetworkModule> .GetInstance().lobbySvr.connected&& this.curMainLineConf.bIndependentNet != 1) { MonoSingleton <NewbieGuideManager> .get_instance().ForceCompleteNewbieGuide(); } else { NewbieGuideScriptConf newbieGuideScriptConf = this.mConfList.get_Item(this.currentScriptIndex); this.mCurrentScript = this.AddScript((NewbieGuideScriptType)newbieGuideScriptConf.wType); if (null != this.mCurrentScript) { this.mCurrentScript.SetData(newbieGuideScriptConf); this.mCurrentScript.CompleteEvent += new NewbieGuideBaseScript.NewbieGuideBaseScriptDelegate(this.ScriptCompleteHandler); this.mCurrentScript.onCompleteAll += new NewbieGuideBaseScript.NewbieGuideBaseScriptDelegate(this.CompleteAll); } else { this.CompleteAll(); } } } else { this.CompleteAll(); } if (this.mCurrentScript != null && this.mCurrentScript.IsTimeOutSkip()) { this.m_timeOutTimer = 30f; } }
protected override string Execute(string[] InArguments) { if (MonoSingleton <CameraSystem> .get_instance().MobaCamera.settings.lockTarget) { if (!CheatCommandSwitchCameraLookDown.ms_bLookDown) { CheatCommandSwitchCameraLookDown.ms_bLookDown = true; this.RecordCameraSettings(); MonoSingleton <CameraSystem> .get_instance().MobaCamera.settings.rotation.defualtRotation.x = 90f; MonoSingleton <CameraSystem> .get_instance().MobaCamera.settings.zoom.minZoom = 20f; MonoSingleton <CameraSystem> .get_instance().MobaCamera.settings.zoom.maxZoom = 80f; MonoSingleton <CameraSystem> .get_instance().MobaCamera.settings.zoom.defaultZoom = 35f; MonoSingleton <CameraSystem> .get_instance().SetFocusActorForce(MonoSingleton <CameraSystem> .get_instance().MobaCamera.settings.lockTarget, MonoSingleton <CameraSystem> .get_instance().MobaCamera.settings.zoom.defaultZoom); } else { CheatCommandSwitchCameraLookDown.ms_bLookDown = false; this.RecoverCameraSettings(); MonoSingleton <CameraSystem> .get_instance().SetFocusActorForce(MonoSingleton <CameraSystem> .get_instance().MobaCamera.settings.lockTarget, this.m_oldCurZoom); } } return(CheatCommandBase.Done); }
private void onGamePrepareFight(ref DefaultGameEventParam prm) { if (MonoSingleton <Reconnection> .get_instance().isProcessingRelayRecover) { return; } }
public void OpenBuyDianQuanPanel() { if (ApolloConfig.payEnabled) { Singleton <CChatController> .GetInstance().ShowPanel(true, false); CUIFormScript cUIFormScript = Singleton <CUIManager> .GetInstance().OpenForm(CPaySystem.s_buyDianQuanFormPath, false, true); if (cUIFormScript == null) { return; } GameObject gameObject = cUIFormScript.m_formWidgets[0]; if (gameObject != null) { uint dwConfValue = GameDataMgr.globalInfoDatabin.GetDataByKey(236u).dwConfValue; if (dwConfValue == 1u || MonoSingleton <TdirMgr> .get_instance().ShowBuyTongCaiBtn()) { gameObject.CustomSetActive(true); } else { gameObject.CustomSetActive(false); } } Singleton <CTopLobbyEntry> .GetInstance().OpenForm(); this.RefreshBuyDianQuanPanel(); MonoSingleton <NobeSys> .GetInstance().ShowNobeTipsInDiamond(); } }
private void onGameStartFight(ref DefaultGameEventParam prm) { if (!MonoSingleton <Reconnection> .get_instance().isProcessingRelayRecover) { this.HideLoading(); } }
public void updateHeroVoiceState(Player curPlayer) { if (curPlayer != null && curPlayer.Captain && curPlayer.Captain.get_handle().ValueComponent.mActorValue != null) { this.SetEventParam(curPlayer.PlayerUId); Player hostPlayer = Singleton <GamePlayerCenter> .get_instance().GetHostPlayer(); if (hostPlayer == null) { return; } bool flag = Singleton <GamePlayerCenter> .get_instance().IsAtSameCamp(hostPlayer.PlayerId, curPlayer.PlayerId); this.voiceIconsNode.CustomSetActive(flag); if (flag) { if (curPlayer.Computer && !Singleton <BattleLogic> .GetInstance().GetCurLvelContext().m_isWarmBattle) { this.voiceIconsNode.CustomSetActive(false); } if (hostPlayer.PlayerUId == curPlayer.PlayerUId) { this._updateVoiceIcon(this.voiceIconsNode, MonoSingleton <VoiceSys> .get_instance().curVoiceState, false); } else { CS_VOICESTATE_TYPE value = MonoSingleton <VoiceSys> .GetInstance().TryGetVoiceState(curPlayer.PlayerUId); this._updateVoiceIcon(this.voiceIconsNode, value, MonoSingleton <VoiceSys> .get_instance().IsForbid(curPlayer.PlayerUId)); } } } }
public void ShareSendHeart(string openId, string title, string desc, string extInfo) { Singleton <ApolloHelper> .GetInstance().m_bShareQQBox = false; if (!MonoSingleton <ShareSys> .GetInstance().IsInstallPlatform()) { return; } Texture2D texture2D = Resources.Load("Share/120", typeof(Texture2D)) as Texture2D; byte[] array = texture2D.EncodeToPNG(); if (array != null) { int num = array.Length; } IApolloSnsService apolloSnsService = IApollo.get_Instance().GetService(1) as IApolloSnsService; MonoSingleton <ShareSys> .get_instance().OnShareCallBack(); if (Singleton <ApolloHelper> .GetInstance().CurPlatform == 2) { ApolloAccountInfo accountInfo = this.GetAccountInfo(false); if (accountInfo != null) { string text = "http://gamecenter.qq.com/gcjump?appid=1104466820&pf=invite&from=androidqq&plat=qq&originuin=" + accountInfo.get_OpenId() + "&ADTAG=gameobj.msg_heart"; string text2 = "http://image.smoba.qq.com/yywj/share_pic/120.png"; apolloSnsService.SendToQQGameFriend(1, openId, title, desc, text, text2, title, "MSG_HEART_SEND", extInfo); } } else { apolloSnsService.SendToWXGameFriend(openId, title, desc, "9Wste6_dDgZtoVmC6CQTh0jj29kGEp0jrVSYrGWvtZLvSTDN9fUb-_sNjacaGITt", "messageExt", "MSG_heart_send", extInfo); } }
public virtual void PostBeginPlay() { Singleton <BattleLogic> .GetInstance().PrepareFight(); if (!Singleton <LobbyLogic> .get_instance().inMultiGame) { Singleton <FrameSynchr> .GetInstance().ResetSynchr(); bool flag = false; SLevelContext curLvelContext = Singleton <BattleLogic> .GetInstance().GetCurLvelContext(); Player hostPlayer = Singleton <GamePlayerCenter> .get_instance().GetHostPlayer(); if (curLvelContext != null && curLvelContext.m_preDialogId > 0 && hostPlayer != null && hostPlayer.Captain) { flag = true; MonoSingleton <DialogueProcessor> .get_instance().PlayDrama(curLvelContext.m_preDialogId, hostPlayer.Captain.get_handle().gameObject, hostPlayer.Captain.get_handle().gameObject, true); } if (!flag) { Singleton <BattleLogic> .GetInstance().DoBattleStart(); } else { Singleton <BattleLogic> .GetInstance().BindFightPrepareFinListener(); } } else if (!Singleton <GameReplayModule> .GetInstance().isReplay) { Singleton <LobbyLogic> .GetInstance().ReqStartMultiGame(); } SoldierRegion.bFirstSpawnEvent = true; }
public void PrepareFight() { Player hostPlayer = Singleton <GamePlayerCenter> .GetInstance().GetHostPlayer(); DebugHelper.Assert(hostPlayer != null, "local player is null in CameraSystem.PerpareFight", null); PoolObjHandle <ActorRoot> focusActor = (hostPlayer == null) ? default(PoolObjHandle <ActorRoot>) : hostPlayer.Captain; this.SetFocusActor(focusActor); if (this.MobaCamera != null) { this.MobaCamera.currentZoomRate = this.GetZoomRate(); this.MobaCamera.CameraUpdate(); } Singleton <GameEventSys> .get_instance().RmvEventHandler <DefaultGameEventParam>(GameEventDef.Event_CaptainSwitch, new RefAction <DefaultGameEventParam>(this.OnFocusSwitched)); Singleton <GameEventSys> .get_instance().RmvEventHandler <GameDeadEventParam>(GameEventDef.Event_ActorDead, new RefAction <GameDeadEventParam>(this.OnPlayerDead)); Singleton <GameEventSys> .get_instance().RmvEventHandler <DefaultGameEventParam>(GameEventDef.Event_ActorRevive, new RefAction <DefaultGameEventParam>(this.OnPlayerRevive)); Singleton <GameEventSys> .get_instance().RmvEventHandler <DefaultGameEventParam>(GameEventDef.Event_ActorMoveCity, new RefAction <DefaultGameEventParam>(this.OnPlayerRevive)); Singleton <GameEventSys> .get_instance().RmvEventHandler(GameEventDef.Event_CameraHeightChange, new Action(this.OnCameraHeightChanged)); Singleton <GameEventSys> .get_instance().AddEventHandler <DefaultGameEventParam>(GameEventDef.Event_CaptainSwitch, new RefAction <DefaultGameEventParam>(this.OnFocusSwitched)); Singleton <GameEventSys> .get_instance().AddEventHandler <GameDeadEventParam>(GameEventDef.Event_ActorDead, new RefAction <GameDeadEventParam>(this.OnPlayerDead)); Singleton <GameEventSys> .get_instance().AddEventHandler <DefaultGameEventParam>(GameEventDef.Event_ActorRevive, new RefAction <DefaultGameEventParam>(this.OnPlayerRevive)); Singleton <GameEventSys> .get_instance().AddEventHandler <DefaultGameEventParam>(GameEventDef.Event_ActorMoveCity, new RefAction <DefaultGameEventParam>(this.OnPlayerRevive)); Singleton <GameEventSys> .get_instance().AddEventHandler(GameEventDef.Event_CameraHeightChange, new Action(this.OnCameraHeightChanged)); this.CurrentSpeed = MonoSingleton <GlobalConfig> .get_instance().CameraMoveSpeed; }
public void UpdateCameraMovement(ref Vector2 axis) { if (!this.bEnableCameraMovment) { return; } float num = Time.realtimeSinceStartup - this.LastUpdateTime; if (MonoSingleton <GlobalConfig> .get_instance().bResetCameraSpeedWhenZero&& axis.x == 0f && axis.y == 0f) { this.CurrentSpeed = MonoSingleton <GlobalConfig> .get_instance().CameraMoveSpeed; } float a = (MonoSingleton <GlobalConfig> .get_instance().CameraMoveSpeedMax - this.CurrentSpeed) / MonoSingleton <GlobalConfig> .get_instance().CameraMoveAcceleration; float num2 = Mathf.Min(a, num); this.CurrentSpeed += MonoSingleton <GlobalConfig> .get_instance().CameraMoveAcceleration *num2; Vector2 a2 = axis.normalized * this.CurrentSpeed * num + axis.normalized * 0.5f * MonoSingleton <GlobalConfig> .get_instance().CameraMoveAcceleration *num2 *num2; if (Singleton <BattleLogic> .get_instance().GetCurLvelContext().m_isCameraFlip) { a2 *= -1f; } this.LastUpdateTime = Time.realtimeSinceStartup; if (this.MobaCamera != null) { this.MobaCamera.UpdateCameraRelativeDisplacement(ref a2); } }
private string GetLobbyNormalConnectUrl(uint curConnectTime) { string text = null; int connectIndex = MonoSingleton <TdirMgr> .get_instance().m_connectIndex; if (curConnectTime == 1u || curConnectTime == 2u) { text = MonoSingleton <TdirMgr> .get_instance().SelectedTdir.addrs.get_Item(connectIndex).ip; } else if (curConnectTime == 3u || curConnectTime == 4u) { text = MonoSingleton <TdirMgr> .get_instance().GetLianTongIP(); } else if (curConnectTime == 5u || curConnectTime == 6u) { text = MonoSingleton <TdirMgr> .get_instance().GetYiDongIP(); } else if (curConnectTime == 7u || curConnectTime == 8u) { text = MonoSingleton <TdirMgr> .get_instance().GetDianXingIP(); } if (text == null) { text = MonoSingleton <TdirMgr> .get_instance().SelectedTdir.addrs.get_Item(connectIndex).ip; } return(text); }
private string GetLobbyTongcaiConnectUrl(uint curConnectTime) { string text = null; if (curConnectTime == 1u || curConnectTime == 2u) { text = MonoSingleton <CTongCaiSys> .get_instance().TongcaiUrl; } else if (curConnectTime == 3u || curConnectTime == 4u) { text = MonoSingleton <CTongCaiSys> .get_instance().TongcaiIps[2]; } else if (curConnectTime == 5u || curConnectTime == 6u) { text = MonoSingleton <CTongCaiSys> .get_instance().TongcaiIps[3]; } else if (curConnectTime == 7u || curConnectTime == 8u) { text = MonoSingleton <CTongCaiSys> .get_instance().TongcaiIps[1]; } if (text == null) { text = MonoSingleton <CTongCaiSys> .get_instance().TongcaiUrl; } return(text); }
public void InitSurface(bool bDoInit, FieldObj inFieldObj, int inFakeSightRange) { this.UninitSurface(); GC.Collect(); this.m_pFieldObj = inFieldObj; this.m_halfSizeX = this.m_pFieldObj.PaneX / 2 - 100; this.m_halfSizeY = this.m_pFieldObj.PaneY / 2 - 100; DebugHelper.Assert(this.m_halfSizeX > 0); DebugHelper.Assert(this.m_halfSizeY > 0); if (Application.isPlaying) { Player hostPlayer = Singleton <GamePlayerCenter> .get_instance().GetHostPlayer(); DebugHelper.Assert(hostPlayer != null, "InitSurface hostPlayer is null"); if (hostPlayer != null) { this.m_hostPlayerCamp = hostPlayer.PlayerCamp; } this.SetCallBack(); GameFowManager.InitGameFowMapData(this.m_pFieldObj.NumX, this.m_pFieldObj.NumY, 0, 255, this.InterpolateFrameInterval, inFakeSightRange, this.m_hostPlayerCamp); this.m_commitBitMap = new byte[this.m_pFieldObj.NumX * this.m_pFieldObj.NumY]; this.m_collector = new GameFowCollector(); this.m_collector.InitSurface(); } this.m_los = new FowLos(); this.m_los.Init(); this.m_gpuInterpFrameInterval = (uint)MonoSingleton <GlobalConfig> .get_instance().GPUInterpolateFrameInterval; this.m_gpuInterpReciprocal = 1f / this.m_gpuInterpFrameInterval; }
public void ShowLoading() { Singleton <BurnExpeditionController> .get_instance().Clear(); MonoSingleton <ShareSys> .get_instance().m_bShowTimeline = false; Singleton <CUIManager> .GetInstance().CloseAllForm(null, true, true); Singleton <CUIManager> .GetInstance().ClearEventGraphicsData(); if (Singleton <LobbyLogic> .get_instance().inMultiGame) { CUILoadingSystem.ShowMultiLoading(); } else { SLevelContext curLvelContext = Singleton <BattleLogic> .GetInstance().GetCurLvelContext(); if (curLvelContext != null) { if (curLvelContext.IsMobaModeWithOutGuide()) { CUILoadingSystem.ShowMultiLoading(); } else { this.ShowPveLoading(); } } } }
private static void CloseUpload() { if (SynchrReport._isUploading) { return; } if (SynchrReport._uploadList != null) { for (int i = 0; i < SynchrReport._uploadList.get_Count(); i++) { if (SynchrReport._uploadList.get_Item(i) != null) { SynchrReport._uploadList.get_Item(i).Close(); } } SynchrReport._uploadList = null; } SynchrReport._uploadIndex = -1; if (SynchrReport._isSelfUnsync && !SynchrReport._isAlerted) { SynchrReport._isAlerted = true; if (MonoSingleton <Reconnection> .get_instance().isProcessingRelayRecover) { Singleton <CUIManager> .GetInstance().OpenMessageBox(Singleton <CTextManager> .GetInstance().GetText("MultiGame_Not_Sync"), enUIEventID.Lobby_ConfirmErrExit, false); } else { Singleton <CUIManager> .GetInstance().OpenMessageBox(Singleton <CTextManager> .GetInstance().GetText("MultiGame_Not_Sync_Try"), enUIEventID.Battle_MultiHashInvalid, false); } DebugHelper.CustomLog("HashCheckInvalid!"); BuglyAgent.ReportException(new LobbyMsgHandler.HashCheckInvalide("HaskCheckInvalide"), "MultiGame not synced!"); } }
public int GetNextRepeatTime(bool bWaveOrRepeat) { if (this.CurrentWave == null) { return(-1); } if (bWaveOrRepeat) { return((int)this.CurrentWave.WaveInfo.dwStartWatiTick); } bool flag = (long)this.CurrentWave.repeatCount >= (long)((ulong)this.CurrentWave.WaveInfo.dwRepeatNum); if (!flag) { return((int)(this.CurrentWave.WaveInfo.dwIntervalTick + this.CurrentWave.Selector.StatTotalCount * (uint)MonoSingleton <GlobalConfig> .get_instance().SoldierWaveInterval)); } bool flag2 = this.CurrentWave.Index + 1 < this.Waves.get_Count(); if (flag2) { SoldierWave soldierWave = this.Waves.get_Item(this.CurrentWave.Index + 1); return((int)(this.CurrentWave.Selector.StatTotalCount * (uint)MonoSingleton <GlobalConfig> .get_instance().SoldierWaveInterval + this.CurrentWave.WaveInfo.dwIntervalTick + soldierWave.WaveInfo.dwStartWatiTick)); } return(-1); }
public void OnShenfuStart(uint shenFuId, AreaEventTrigger trigger, TriggerActionShenFu shenFu) { if (trigger == null || shenFu == null) { return; } ShenFuObjects shenFuObjects = default(ShenFuObjects); ShenFuInfo dataByKey = GameDataMgr.shenfuBin.GetDataByKey(shenFuId); if (dataByKey == null) { return; } trigger.Radius = (int)dataByKey.dwGetRadius; string prefabName = StringHelper.UTF8BytesToString(ref dataByKey.szShenFuResPath); shenFuObjects.ShenFu = MonoSingleton <SceneMgr> .get_instance().InstantiateLOD(prefabName, false, SceneObjType.ActionRes, trigger.gameObject.transform.position); this._shenFuTriggerPool.Add(trigger.ID, shenFuObjects); if (FogOfWar.enable) { COM_PLAYERCAMP playerCamp = Singleton <GamePlayerCenter> .get_instance().GetHostPlayer().PlayerCamp; GameFowCollector.SetObjVisibleByFow(shenFuObjects.ShenFu, Singleton <GameFowManager> .get_instance(), playerCamp); } }
private void SampleFrameSpare(int frameSpare) { if (this._showChart) { MonoSingleton <RealTimeChart> .get_instance().AddSample("FramePackageSpare", (float)frameSpare); } }
public void Init(int inConfigId, VInt3 inWorldPos, STriggerCondActor[] inSrcActorCond) { this.ConfigId = inConfigId; this.InitLoc = inWorldPos; this.CharmId = CTailsman.ExtractCharmIdFromLib(this.ConfigId); ShenFuInfo dataByKey = GameDataMgr.shenfuBin.GetDataByKey((long)this.CharmId); if (dataByKey == null) { return; } this.EffectRadius = (int)dataByKey.dwGetRadius; string prefabName = StringHelper.UTF8BytesToString(ref dataByKey.szShenFuResPath); this.Presentation = MonoSingleton <SceneMgr> .get_instance().InstantiateLOD(prefabName, false, SceneObjType.ActionRes, (Vector3)inWorldPos); if (this.Presentation != null) { this.Presentation.CustomSetActive(true); } if (inSrcActorCond == null) { this.SrcActorCond = null; } else { this.SrcActorCond = (inSrcActorCond.Clone() as STriggerCondActor[]); } Singleton <ShenFuSystem> .get_instance().AddCharm(new PoolObjHandle <CTailsman>(this)); PoolObjHandle <CTailsman> inTailsman = new PoolObjHandle <CTailsman>(this); STailsmanEventParam sTailsmanEventParam = new STailsmanEventParam(inTailsman, new PoolObjHandle <ActorRoot>(null)); Singleton <GameEventSys> .get_instance().SendEvent <STailsmanEventParam>(GameEventDef.Event_TailsmanSpawn, ref sTailsmanEventParam); }
public void Clear() { MonoSingleton <VoiceSys> .get_instance().ClearInBattleForbidMember(); Singleton <CUIEventManager> .GetInstance().RemoveUIEventListener(enUIEventID.Battle_BattleStatViewSortClick, new CUIEventManager.OnUIEventHandler(this.OnSortClick)); Singleton <CUIEventManager> .GetInstance().RemoveUIEventListener(enUIEventID.Battle_CloseStatView, new CUIEventManager.OnUIEventHandler(this.onCloseClick)); Singleton <CUIEventManager> .GetInstance().RemoveUIEventListener(enUIEventID.BattleMatchInfo_InfoTypeChange, new CUIEventManager.OnUIEventHandler(this.OnBttleMatchInfoTabChange)); Singleton <CUIEventManager> .GetInstance().RemoveUIEventListener(enUIEventID.Battle_StateViewClickHeroIcon, new CUIEventManager.OnUIEventHandler(this.OnBattle_StateViewClickHeroIcon)); Singleton <EventRouter> .get_instance().RemoveEventHandler(EventID.BATTLE_KDA_CHANGED, new Action(this.OnBattleKDAChanged)); Singleton <EventRouter> .get_instance().RemoveEventHandler(EventID.BATTLE_HERO_PROPERTY_CHANGED, new Action(this.OnBattleHeroPropertyChange)); Singleton <CUIManager> .GetInstance().CloseForm(BattleStatView.s_battleStateViewUIForm); this._root = null; this._heroList0 = null; this._heroList1 = null; this.m_heroListCamp1.Clear(); this.m_heroListCamp2.Clear(); this.m_playerListCamp1.Clear(); this.m_playerListCamp2.Clear(); this.m_bListCampInited = false; this.sortByCoinBtn = null; this._defaultSelectIndex = 0; this.m_statViewFormScript = null; }
private void OnPVPAchievementCloseHandle(CUIEvent uiEvent) { this.HideVictory(); Singleton <SettlementSystem> .GetInstance().ShowSettlementPanel(false); MonoSingleton <ShareSys> .get_instance().m_bShowTimeline = false; }
private void UpdateAntiHiddenEyeHurt(int inDelta) { if (base.IsDeadState) { return; } if (this.actorSubType != 1 && this.actorSubType != 4 && this.actorSubType != 2) { return; } GlobalConfig instance = MonoSingleton <GlobalConfig> .get_instance(); int defenseAntiHiddenFrameInterval = instance.DefenseAntiHiddenFrameInterval; this.antiHiddenTimer += inDelta; if (this.antiHiddenTimer >= instance.DefenseAntiHiddenInterval && (ulong)this.actor.ObjID % (ulong)((long)defenseAntiHiddenFrameInterval) == (ulong)Singleton <FrameSynchr> .get_instance().CurFrameNum % (ulong)((long)defenseAntiHiddenFrameInterval)) { this.antiHiddenTimer = 0; List <PoolObjHandle <ActorRoot> > fakeTrueEyes = Singleton <GameObjMgr> .get_instance().FakeTrueEyes; int count = fakeTrueEyes.get_Count(); for (int i = 0; i < count; i++) { PoolObjHandle <ActorRoot> poolObjHandle = fakeTrueEyes.get_Item(i); if (poolObjHandle) { if (!this.TarEyeList_.Contains(poolObjHandle)) { ActorRoot handle = poolObjHandle.get_handle(); if (handle.IsEnemyCamp(this.actor)) { VInt3 worldLoc = new VInt3(handle.location.x, handle.location.z, 0); if (Singleton <GameFowManager> .get_instance().IsSurfaceCellVisible(worldLoc, this.actor.TheActorMeta.ActorCamp) && (handle.location - this.actor.location).get_sqrMagnitudeLong2D() < this.attackDistSqr) { this.TarEyeList_.Add(poolObjHandle); } } } } } int count2 = this.TarEyeList_.get_Count(); if (count2 > 0) { for (int j = count2 - 1; j >= 0; j--) { if (!fakeTrueEyes.Contains(this.TarEyeList_.get_Item(j))) { this.TarEyeList_.RemoveAt(j); } } } PoolObjHandle <ActorRoot> poolObjHandle2 = OrganWrapper.FindEyeTarget(this.TarEyeList_); if (poolObjHandle2) { BufConsumer bufConsumer = new BufConsumer(instance.DefenseAntiHiddenHurtId, poolObjHandle2, this.actorPtr); bufConsumer.Use(); } } }
public void ClearLogicData() { Singleton <CRoleInfoManager> .get_instance().ClearMasterRoleInfo(); Singleton <CAdventureSys> .GetInstance().Clear(); Singleton <CMatchingSystem> .GetInstance().Clear(); Singleton <CRoomSystem> .GetInstance().Clear(); Singleton <CSymbolSystem> .GetInstance().Clear(); Singleton <ActivitySys> .GetInstance().Clear(); Singleton <CFriendContoller> .get_instance().ClearAll(); Singleton <CChatController> .get_instance().ClearAll(); Singleton <BurnExpeditionController> .get_instance().ClearAll(); Singleton <InBattleMsgMgr> .get_instance().ClearData(); if (MonoSingleton <NewbieGuideManager> .HasInstance()) { MonoSingleton <NewbieGuideManager> .get_instance().StopCurrentGuide(); MonoSingleton <NewbieGuideManager> .ClearDestroy(); } Singleton <CMailSys> .get_instance().Clear(); Singleton <CTaskSys> .get_instance().Clear(); Singleton <CGuildSystem> .GetInstance().Clear(); Singleton <CGuildMatchSystem> .GetInstance().Clear(); GameDataMgr.ClearServerResData(); Singleton <CMallFactoryShopController> .GetInstance().Clear(); Singleton <RankingSystem> .GetInstance().ClearAll(); Singleton <CLobbySystem> .GetInstance().Clear(); Singleton <CUnionBattleRankSystem> .GetInstance().Clear(); Singleton <HeadIconSys> .get_instance().Clear(); Singleton <CLoudSpeakerSys> .get_instance().Clear(); Singleton <COBSystem> .get_instance().Clear(); Singleton <CInviteSystem> .get_instance().Clear(); Singleton <CArenaSystem> .get_instance().Clear(); Singleton <SCModuleControl> .get_instance().Clear(); MonoSingleton <IDIPSys> .GetInstance().ClearIDIPData(); }
public static string Profile() { MonoSingleton <ConsoleWindow> .get_instance().set_isVisible(false); MonoSingleton <SProfiler> .GetInstance().ToggleVisible(); return(CheatCommandBase.Done); }
public static string Quit() { if (MonoSingleton <ConsoleWindow> .HasInstance()) { MonoSingleton <ConsoleWindow> .get_instance().set_isVisible(false); } return(CheatCommandBase.Done); }
public static string Clean() { if (MonoSingleton <ConsoleWindow> .HasInstance()) { MonoSingleton <ConsoleWindow> .get_instance().ClearLog(); } return(CheatCommandBase.Done); }
public static string Profile10000() { MonoSingleton <ConsoleWindow> .get_instance().set_isVisible(false); MonoSingleton <SProfiler> .GetInstance().StartProfileNFrames(10000, 0u); return(CheatCommandBase.Done); }
public static void On_GetAntiData(CSPkg msg) { if (!MonoSingleton <TssdkSys> .get_instance().bEnableTSS) { return; } TssSdk.TssSdkRcvAntiData(msg.stPkgData.get_stAntiDataSyn().szBuff, msg.stPkgData.get_stAntiDataSyn().wLen); }
public override void Leave(Action _action, Track _track) { if (this.cutBackOnExit) { MonoSingleton <CameraSystem> .get_instance().ZoomRateFromAge = 1f; } this.setFinished = true; base.Leave(_action, _track); }