public bool CanSaveHighlight(HighlightsController.HighlightType highlightType, Vec3 position)
 {
     if ((double)highlightType.MaxHighlightDistance < (double)Mission.Current.Scene.LastFinalRenderCameraFrame.origin.Distance(position) || (double)highlightType.MinVisibilityScore > (double)this.GetPlayerIsLookingAtPositionScore(position))
     {
         return(false);
     }
     return(!highlightType.IsVisibilityRequired || this.CanSeePosition(position));
 }
 public static void AddHighlightType(HighlightsController.HighlightType highlightType)
 {
     if (HighlightsController.HighlightTypes.Any <HighlightsController.HighlightType>((Func <HighlightsController.HighlightType, bool>)(h => h.Id == highlightType.Id)))
     {
         return;
     }
     if (HighlightsController.IsHighlightsInitialized)
     {
         Highlights.AddHighlight(highlightType.Id, highlightType.Description);
     }
     HighlightsController.HighlightTypes.Add(highlightType);
 }