AcManager.Tools.Objects.TrackObjectBase.LoadData C# (CSharp) Méthode

LoadData() protected méthode

protected LoadData ( JObject json ) : void
json JObject
Résultat void
        protected override void LoadData(JObject json) {
            base.LoadData(json);

            if (Version == null && Description != null) {
                string description;
                Version = AcStringValues.GetVersionFromName(Description, out description);
                if (Version != null) {
                    Description = description;
                }
            }

            City = json.GetStringValueOnly("city");
            GeoTags = json.GetGeoTagsValueOnly("geotags");

            if (Country == null) {
                foreach (var country in Tags.Select(AcStringValues.CountryFromTag).Where(x => x != null)) {
                    Country = country;
                    break;
                }
            }

            SpecsLength = json.GetStringValueOnly("length");
            SpecsWidth = json.GetStringValueOnly("width");
            SpecsPitboxes = json.GetStringValueOnly("pitboxes");
        }