public NationalIdea(PdxSublist data, NationalIdeaGroup group) { Name = data.Key; DisplayTitle = data.KeyValuePairs["title"]; DisplayDesc = data.KeyValuePairs["desc"]; Effects = new List <PdxSublist>(); Group = group; for (var i = 0; data.Sublists.ContainsKey($"level_{i}"); i++) { Effects.Add(data.Sublists[$"level_{i}"]); } }
public NationalIdeaGroupScore(NationalIdeaGroup group, float score) { Group = group; Score = score; }