private void SetExclusions(TraitEntry t)
 {
     int excludes = t.trait.Excludes;
     foreach (TraitEntry ex in this.AllTraits)
     {
         if (t.trait.Excludes != ex.trait.TraitName)
         {
             continue;
         }
         ex.Excluded = true;
     }
 }
 public RaceDesignScreen(GraphicsDevice device, MainMenuScreen mmscreen)
 {
     this.mmscreen = mmscreen;
     base.IsPopup = true;
     this.rt = ResourceManager.GetRaceTraits();
     base.TransitionOnTime = TimeSpan.FromSeconds(1);
     base.TransitionOffTime = TimeSpan.FromSeconds(0.25);
     foreach (RacialTrait t in this.rt.TraitList)
     {
         TraitEntry te = new TraitEntry()
         {
             trait = t
         };
         AllTraits.Add(te);
     }
     GlobalStats.Statreset();
 }