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