} // empty constructor for postexpose public LayoutUsage(TentSpec spec, NCS_Tent use) { this.spec = spec; usages = new HashSet <NCS_Tent> { use }; }
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(); }