public void Add(ThingStuffPair pair) { aps.Add(pair); ApparelUtility.GenerateLayerGroupPairs(body, pair.thing, delegate(ApparelUtility.LayerGroupPair lgp) { lgps.Add(lgp); }); }
public bool PairOverlapsAnything(ThingStuffPair pair) { bool conflicts = false; ApparelUtility.GenerateLayerGroupPairs(body, pair.thing, delegate(ApparelUtility.LayerGroupPair lgp) { conflicts |= lgps.Contains(lgp); }); return(conflicts); }