예제 #1
0
        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);
            }
        }
예제 #2
0
 public override void PostLoadSpecial(ThingDef parentDef)
 {
     tentSpec   = new TentSpec(tentLayoutSouth, Rot4.South);
     layoutHash = tentSpec.GetHashCode();
 }