Exemplo n.º 1
0
        internal protected override bool TryParse(JsonReader reader)
        {
            // get values
            if (base.TryParse(reader))
            {
                return(true);
            }
            switch (reader.Path)
            {
            case "Overcast":
                Overcast = reader.AsFloat(Overcast); break;

            case "OvercastVariation":
                Variation = reader.AsFloat(Variation); break;

            case "OvercastRateOfChange":
                RateOfChange = reader.AsFloat(RateOfChange); break;

            case "OvercastVisibility":
                Visibility = reader.AsFloat(Visibility); break;

            default: return(false);
            }

            return(true);
        }
Exemplo n.º 2
0
        protected override bool TryParse(JsonReader item)
        {
            if (base.TryParse(item))
            {
                return(true);
            }
            switch (item.Path)
            {
            case "FogVisibility": FogVisibilityM = item.AsFloat(FogVisibilityM); break;

            case "FogSetTime": FogSetTimeS = item.AsFloat(FogSetTimeS); break;

            case "FogLiftTime": FogLiftTimeS = item.AsFloat(FogLiftTimeS); break;

            case "FogOvercast": FogOvercast = item.AsFloat(FogOvercast); break;

            default: return(false);
            }
            return(true);
        }
Exemplo n.º 3
0
        protected override bool TryParse(JsonReader item)
        {
            if (base.TryParse(item))
            {
                return(true);
            }
            switch (item.Path)
            {
            case "Overcast": Overcast = item.AsFloat(Overcast); break;

            case "OvercastVariation": OvercastVariation = item.AsFloat(OvercastVariation); break;

            case "OvercastRateOfChange": OvercastRateOfChange = item.AsFloat(OvercastRateOfChange); break;

            case "OvercastVisibility": OvercastVisibility = item.AsFloat(OvercastVisibility); break;

            default: return(false);
            }
            return(true);
        }
Exemplo n.º 4
0
        internal protected override bool TryParse(JsonReader reader)
        {
            if (base.TryParse(reader))
            {
                return(true);
            }
            switch (reader.Path)
            {
            case "FogVisibility": Visibility = reader.AsFloat(Visibility); break;

            case "FogSetTime": SetTime = reader.AsFloat(SetTime); break;

            case "FogLiftTime": LiftTime = reader.AsFloat(LiftTime); break;

            case "FogOvercast": Overcast = reader.AsFloat(Overcast); break;

            default: return(false);
            }

            return(true);
        }
Exemplo n.º 5
0
        internal protected override bool TryParse(JsonReader reader)
        {
            // read items
            if (base.TryParse(reader))
            {
                return(true);
            }
            switch (reader.Path)
            {
            case "PrecipitationType":
                PrecipitationType = reader.AsEnum(PrecipitationType); break;

            case "PrecipitationDensity":
                Density = reader.AsFloat(Density); break;

            case "PrecipitationVariation":
                Variation = reader.AsFloat(Variation); break;

            case "PrecipitationRateOfChange":
                RateOfChange = reader.AsFloat(RateOfChange); break;

            case "PrecipitationProbability":
                Probability = reader.AsFloat(Probability); break;

            case "PrecipitationSpread":
                Spread = reader.AsFloat(Spread); break;

            case "PrecipitationVisibilityAtMinDensity":
                VisibilityAtMinDensity = reader.AsFloat(VisibilityAtMinDensity); break;

            case "PrecipitationVisibilityAtMaxDensity":
                VisibilityAtMaxDensity = reader.AsFloat(VisibilityAtMaxDensity); break;

            case "OvercastPrecipitationStart":
                OvercastPrecipitationStart = reader.AsFloat(OvercastPrecipitationStart); break;

            case "OvercastBuildUp":
                OvercastBuildUp = reader.AsFloat(OvercastBuildUp); break;

            case "PrecipitationStartPhase":
                PrecipitationStartPhase = reader.AsFloat(PrecipitationStartPhase); break;

            case "OvercastDispersion":
                OvercastDispersion = reader.AsFloat(OvercastDispersion); break;

            case "PrecipitationEndPhase":
                PrecipitationEndPhase = reader.AsFloat(PrecipitationEndPhase); break;

            case "Overcast":
            case "OvercastVariation":
            case "OvercastRateOfChange":
            case "OvercastVisibility":
                Overcast.TryParse(reader); break;

            default: return(false);
            }

            return(true);
        }
Exemplo n.º 6
0
        protected override bool TryParse(JsonReader item)
        {
            if (base.TryParse(item))
            {
                return(true);
            }
            switch (item.Path)
            {
            case "PrecipitationType": PrecipitationType = item.AsEnum(PrecipitationType); break;

            case "PrecipitationDensity": PrecipitationDensity = item.AsFloat(PrecipitationDensity); break;

            case "PrecipitationVariation": PrecipitationVariation = item.AsFloat(PrecipitationVariation); break;

            case "PrecipitationRateOfChange": PrecipitationRateOfChange = item.AsFloat(PrecipitationRateOfChange); break;

            case "PrecipitationProbability": PrecipitationProbability = item.AsFloat(PrecipitationProbability); break;

            case "PrecipitationSpread": PrecipitationSpread = item.AsFloat(PrecipitationSpread); break;

            case "PrecipitationVisibilityAtMinDensity": PrecipitationVisibilityAtMinDensity = item.AsFloat(PrecipitationVisibilityAtMinDensity); break;

            case "PrecipitationVisibilityAtMaxDensity": PrecipitationVisibilityAtMaxDensity = item.AsFloat(PrecipitationVisibilityAtMaxDensity); break;

            case "OvercastPrecipitationStart": OvercastPrecipitationStart = item.AsFloat(OvercastPrecipitationStart); break;

            case "OvercastBuildUp": OvercastBuildUp = item.AsFloat(OvercastBuildUp); break;

            case "PrecipitationStartPhase": PrecipitationStartPhase = item.AsFloat(PrecipitationStartPhase); break;

            case "OvercastDispersion": OvercastDispersion = item.AsFloat(OvercastDispersion); break;

            case "PrecipitationEndPhase": PrecipitationEndPhase = item.AsFloat(PrecipitationEndPhase); break;

            case "Overcast": Overcast = item.AsFloat(Overcast); break;

            case "OvercastVariation": OvercastVariation = item.AsFloat(OvercastVariation); break;

            case "OvercastRateOfChange": OvercastRateOfChange = item.AsFloat(OvercastRateOfChange); break;

            case "OvercastVisibility": OvercastVisibility = item.AsFloat(OvercastVisibility); break;

            default: return(false);
            }
            return(true);
        }