Esempio n. 1
0
 public static void AddApparelSet(StoredApparelSet set)
 {
     if (set != null)
     {
         storedApparelSets.AddLast(set);
     }
 }
Esempio n. 2
0
 public static bool TryGetBattleApparelSet(Pawn pawn, out StoredApparelSet set)
 {
     if (pawn != null)
     {
         foreach (StoredApparelSet s in storedApparelSets)
         {
             if (s.IsOwnedBy(pawn) && s.SwitchForBattle)
             {
                 set = s;
                 return(true);
             }
         }
     }
     set = null;
     return(false);
 }
Esempio n. 3
0
 public static bool TryGetWornApparelSet(Pawn pawn, out StoredApparelSet set)
 {
     if (pawn != null)
     {
         foreach (StoredApparelSet s in storedApparelSets)
         {
             if (s.IsBeingWornBy(pawn))
             {
                 set = s;
                 return(true);
             }
         }
     }
     set = null;
     return(false);
 }
Esempio n. 4
0
 public static void RemoveApparelSet(StoredApparelSet set)
 {
     storedApparelSets.Remove(set);
 }