// For serializing
 public LifeRulesetSerializer(LifeRuleset rules)
 {
     NeighborsToGrow = rules.GetGrowthArray();
     NeighborsToLive = rules.GetLivingArray();
     NeighborsToDie  = rules.GetDeathArray();
 }
Example #2
0
 public SetupMenuHelper(LifeRuleset rulesetToModify)
 {
     SelectedLivingNumbers = new List <int>(rulesetToModify.GetLivingArray());
     SelectedGrowthNumbers = new List <int>(rulesetToModify.GetGrowthArray());
     SelectedDyingNumbers  = new List <int>(rulesetToModify.GetDeathArray());
 }