Esempio n. 1
0
        protected override void Load(JObject json)
        {
            UpdateMinVersion = new Version(json.ReadRequiredValue("updateminversion"));
            UpdateMaxVersion = new Version(json.ReadRequiredValue("updatemaxversion"));

            foreach (var child in json["removefiles"].Values<string>())
            {
                RemoveFiles.Add(child);
            }
        }
Esempio n. 2
0
        protected override void Load(JObject json)
        {
            DeveloperName = json.ReadRequiredValue("developername");
            Version = new Version(json.ReadRequiredValue("version"));
            Name = json.ReadRequiredValue("gamename");
            Uid = json.ReadRequiredValue("gameuid");
            InterfaceVersion = int.Parse(json.ReadRequiredValue("interfaceversion"));

            Homepage = json.ReadOptionalValue("homepage");
            UpdateService = json.ReadOptionalValue("updateservice");
            StatisticsService = json.ReadOptionalValue("statisticsservice");
            StatisticsPrivacyPolicy = json.ReadOptionalValue("statisticsprivacypolicy");
            SupportEmail = json.ReadOptionalValue("supportemail");
            SupportS3Bucket = json.ReadOptionalValue("supports3bucket");
            SupportS3BucketAccessKey = json.ReadOptionalValue("supports3bucketaccesskey");
            SupportS3BucketSecretKey = json.ReadOptionalValue("supports3bucketsecretkey");

            Preferences = new Dictionary<string, string>();
            if (json["preferences"] != null)
            {
                foreach (JProperty pref in json["preferences"])
                {
                    Preferences.Add(pref.Name, pref.Value.ToString());
                }
            }
        }