예제 #1
0
        public override void AddShowMark(COM_PLAYERCAMP targetCamp, HorizonConfig.ShowMark sm, int count)
        {
            if (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.AddShowMark(sm, 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.AddShowMark(sm, count);
                Player hostPlayer2 = Singleton <GamePlayerCenter> .get_instance().GetHostPlayer();

                if (hostPlayer2 != null && targetCamp == hostPlayer2.PlayerCamp)
                {
                    this.RefreshVisible();
                }
            }
        }
 public override void AddShowMark(COM_PLAYERCAMP targetCamp, HorizonConfig.ShowMark sm, int count)
 {
     if (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.AddShowMark(sm, count);
             }
         }
     }
     else
     {
         HorizonMarkerByFow.CampMarker campMarker2 = this._campMarkers[HorizonMarkerByFow.TranslateCampToIndex(targetCamp)];
         campMarker2.AddShowMark(sm, count);
     }
     this.RefreshVisible();
 }