private void CalculateSlotWeights(GrowableGeneProperties properties, int slot) { int num = 0; GrowableGeneProperties.GeneWeight[] weights = properties.Weights; for (int i = 0; i < weights.Length; i++) { GrowableGeneProperties.GeneWeight geneWeight = weights[i]; slotWeights[num].Weighting = baseWeights[num].Weighting + geneWeight.SlotWeights[slot]; num++; } }
private void CalculateBaseWeights(GrowableGeneProperties properties) { int num = 0; GrowableGeneProperties.GeneWeight[] weights = properties.Weights; for (int i = 0; i < weights.Length; i++) { GrowableGeneProperties.GeneWeight geneWeight = weights[i]; baseWeights[num].GeneType = (slotWeights[num].GeneType = (GrowableGenetics.GeneType)num); baseWeights[num].Weighting = geneWeight.BaseWeight; num++; } }