コード例 #1
0
 /// <summary>
 /// Returns the amount of colonist entries hidden from the colonist bar.
 /// </summary>
 /// <returns>The amount of colonist entries hidden from the colonist bar.</returns>
 public static int GetHiddenCount()
 {
     if (HiddenPawnTracker == null)
     {
         HiddenPawnTracker = new HiddenPawnTracker();
     }
     return(HiddenPawnTracker.HiddenCount);
 }
コード例 #2
0
 /// <summary>
 /// Checks if the given pawn is hidden for the colonist bar.
 /// </summary>
 /// <param name="pawn">The pawn to check.</param>
 /// <returns>True if the pawn is marked as hidden, false otherwise.</returns>
 public static bool IsHidden(Pawn pawn)
 {
     // Fixed bug where HiddenPawnTracker==null if item within is detroyed between saves without mod.
     if (HiddenPawnTracker == null)
     {
         HiddenPawnTracker = new HiddenPawnTracker();
     }
     return(HiddenPawnTracker.IsHidden(pawn));
 }