public BiomeSwitchCellParams()
        {
            const int max = BiomeData.maxBiomeSamplers;

            switchParams = new BiomeSwitchCellParam[max];

            for (int i = 0; i < switchParams.Length; i++)
            {
                switchParams[i] = new BiomeSwitchCellParam(false);
            }
        }
        public float    GetWeight(BiomeParamRange paramRanges)
        {
            float weight = 0;

            int length = switchParams.switchParams.Length;

            for (int i = 0; i < length; i++)
            {
                BiomeSwitchCellParam param = switchParams.switchParams[i];

                if (param.enabled && paramRanges.ranges[i].magnitude != 0)
                {
                    weight += param.max - param.min / paramRanges.ranges[i].magnitude;
                }
                else
                {
                    weight += 1;
                }
            }

            return(weight);
        }