public static void CreateDemogroup() { DemographicGroups asset = (DemographicGroups)CreateAsset("DoVAlpha/GovernmentsDefault/data/demogroups", typeof(DemographicGroups)); if (asset != null) { asset.GroupName = "Some group"; } }
private void UpdatePopulations() { var helper = new Helper(); helper.DemographicDistribution = new Accord.Statistics.Distributions.Univariate.BinomialDistribution(); //take the distrubtion of this into the political parties so you get a dis of white republicans black democrats and asian indendants etc //helper.DemographicDistribution.Generate() DemographicGroups.ForEach(e => { double newPopulation = (e.Population / 100) * RawPopulation; e.Numbers = Convert.ToInt64(newPopulation); }); }
public UprisingEvent StartUpRisingEvent(GenericProvince uprisingProvince, DemographicGroups partyToNewUprisingGroup) { return(new UprisingEvent()); }