public static void RemoveHotSwapCostume(AwesomeInventoryCostume costume)
 {
     foreach (CompAwesomeInventoryLoadout comp in Comps)
     {
         if (comp.HotSwapCostume == costume)
         {
             comp.HotSwapCostume = null;
         }
     }
 }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AwesomeInventoryCostume"/> class.
        /// </summary>
        /// <param name="other"> Costume to copy from. </param>
        public AwesomeInventoryCostume(AwesomeInventoryCostume other)
            : base(other?.Base, true)
        {
            foreach (ThingGroupSelector selector in other._costumeItems)
            {
                _costumeItems.Add(selector);
            }

            this.label = string.Concat(other.label, UIText.CopySuffix.TranslateSimple());
            this.Base  = other.Base;
        }
Exemple #3
0
 /// <summary>
 /// Check if <paramref name="costume"/> is a sibling of this costume.
 /// </summary>
 /// <param name="costume"> Costume to check. </param>
 /// <returns> If true, these two costumes share the same loadout parent. </returns>
 public virtual bool SibilingOf(AwesomeInventoryCostume costume)
 {
     return(this.Base.Costumes.Contains(costume));
 }