public void Add(TentSpec spec, NCS_Tent use) { int hash = spec.GetHashCode(); if (layoutUsages.ContainsKey(hash)) { layoutUsages[hash].usages.Add(use); } else { layoutUsages[hash] = new LayoutUsage(spec, use); } }
public override void PostLoadSpecial(ThingDef parentDef) { tentSpec = new TentSpec(tentLayoutSouth, Rot4.South); layoutHash = tentSpec.GetHashCode(); }