public override void AddHideMark(COM_PLAYERCAMP targetCamp, HorizonConfig.HideMark hm, int count, bool bForbidFade = false) { if (hm == HorizonConfig.HideMark.Jungle || targetCamp == null) { return; } if (targetCamp == 3) { for (int i = 0; i < this._campMarkers.Length; i++) { if (i != HorizonMarkerByFow.TranslateCampToIndex(this.actor.TheActorMeta.ActorCamp)) { HorizonMarkerByFow.CampMarker campMarker = this._campMarkers[i]; campMarker.AddHideMark(hm, count); Player hostPlayer = Singleton <GamePlayerCenter> .get_instance().GetHostPlayer(); if (hostPlayer != null && hostPlayer.PlayerCamp == HorizonMarkerByFow.TranslateIndexToCamp(i)) { this.RefreshVisible(); } } } } else { HorizonMarkerByFow.CampMarker campMarker2 = this._campMarkers[HorizonMarkerByFow.TranslateCampToIndex(targetCamp)]; campMarker2.AddHideMark(hm, count); Player hostPlayer2 = Singleton <GamePlayerCenter> .get_instance().GetHostPlayer(); if (hostPlayer2 != null && targetCamp == hostPlayer2.PlayerCamp) { this.RefreshVisible(); } } }
public override void AddHideMark(COM_PLAYERCAMP targetCamp, HorizonConfig.HideMark hm, int count, bool bForbidFade = false) { if (hm == HorizonConfig.HideMark.Jungle || targetCamp == COM_PLAYERCAMP.COM_PLAYERCAMP_MID) { return; } if (targetCamp == COM_PLAYERCAMP.COM_PLAYERCAMP_COUNT) { for (int i = 0; i < this._campMarkers.Length; i++) { if (i != HorizonMarkerByFow.TranslateCampToIndex(this.actor.TheActorMeta.ActorCamp)) { HorizonMarkerByFow.CampMarker campMarker = this._campMarkers[i]; campMarker.AddHideMark(hm, count); } } } else { HorizonMarkerByFow.CampMarker campMarker2 = this._campMarkers[HorizonMarkerByFow.TranslateCampToIndex(targetCamp)]; campMarker2.AddHideMark(hm, count); } this.RefreshVisible(); }