public static void GenerateTraits(CharacterData character) { character.CharacterTraits = new List <Trait>(); foreach (Trait trait in Trait.GetTraitList()) { character.CharacterTraits.Add(new Trait(trait)); } foreach (Trait trait in character.CharacterTraits) { trait.Initialize(); } }