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