Esempio n. 1
0
        private void SetRemoteAvcInfo(string json)
        {
            //            this.RemoteInfo = new AddonInfo(this.LocalInfo.Url, www.text, AddonInfo.RemoteType.AVC);
            this.RemoteInfo = new AddonInfo(this.LocalInfo.Url, json, AddonInfo.RemoteType.AVC);

            this.RemoteInfo.FetchRemoteData();


#if true
            if (this.LocalInfo.Version == this.RemoteInfo.Version)
            {
                Logger.Log("Identical remote version found: Using remote version information only.");
                Logger.Log("SetRemoteAvcInfo, RemoteInfo " + this.RemoteInfo.ToString());
                Logger.Blank();
                this.LocalInfo = this.RemoteInfo;
            }
            else
#endif
            {
                Logger.Log("SetRemoteAvcInfo, LocalInfo" + this.LocalInfo.ToString());
                Logger.Log(this.RemoteInfo + "\n\tUpdateAvailable: " + this.IsUpdateAvailable);
                Logger.Blank();
            }

            this.IsRemoteReady        = true;
            this.IsProcessingComplete = true;
        }
Esempio n. 2
0
        private void SetLocalInfoOnly()
        {
            this.RemoteInfo           = this.LocalInfo;
            this.IsRemoteReady        = true;
            this.IsProcessingComplete = true;

            Logger.Blank();
        }
Esempio n. 3
0
        private void SetRemoteKerbalStuffInfo(UnityWebRequest www)
        {
            this.RemoteInfo = new AddonInfo(this.LocalInfo.KerbalStuffUrl, www.url, AddonInfo.RemoteType.KerbalStuff);

            if (this.LocalInfo.Version == this.RemoteInfo.Version)
            {
                Logger.Log("Identical remote version found: Using remote version information only.");
                Logger.Log("SetRemoteKerbalStuffInfo, RemoteInfo", this.RemoteInfo);
                Logger.Blank();
                this.LocalInfo = this.RemoteInfo;
            }
            else
            {
                Logger.Log("SetRemoteKerbalStuffInfo, LocalInfo", this.LocalInfo);
                Logger.Log(this.RemoteInfo + "\n\tUpdateAvailable: " + this.IsUpdateAvailable);
                Logger.Blank();
            }

            this.IsRemoteReady        = true;
            this.IsProcessingComplete = true;
        }
Esempio n. 4
0
        private void SetRemoteAvcInfo(WWW www)
        {
            this.RemoteInfo = new AddonInfo(this.LocalInfo.Url, www.text, AddonInfo.RemoteType.AVC);
            this.RemoteInfo.FetchRemoteData();

            if (this.LocalInfo.Version == this.RemoteInfo.Version)
            {
                Logger.Log("Identical remote version found: Using remote version information only.");
                Logger.Log(this.RemoteInfo);
                Logger.Blank();
                this.LocalInfo = this.RemoteInfo;
            }
            else
            {
                Logger.Log(this.LocalInfo);
                Logger.Log(this.RemoteInfo + "\n\tUpdateAvailable: " + this.IsUpdateAvailable);
                Logger.Blank();
            }

            this.IsRemoteReady = true;
            this.IsProcessingComplete = true;
        }
 public GitHubInfo(object obj, AddonInfo addonInfo)
 {
     this.addonInfo = addonInfo;
     this.ParseJson(obj);
 }
Esempio n. 6
0
 public GitHubInfo(object obj, AddonInfo addonInfo)
 {
     this.addonInfo = addonInfo;
     this.ParseJson(obj);
 }
Esempio n. 7
0
        private void SetRemoteKerbalStuffInfo(WWW www)
        {
            this.RemoteInfo = new AddonInfo(this.LocalInfo.KerbalStuffUrl, www.text, AddonInfo.RemoteType.KerbalStuff);

            if (this.LocalInfo.Version == this.RemoteInfo.Version)
            {
                Logger.Log("Identical remote version found: Using remote version information only.");
                Logger.Log(this.RemoteInfo);
                Logger.Blank();
                this.LocalInfo = this.RemoteInfo;
            }
            else
            {
                Logger.Log(this.LocalInfo);
                Logger.Log(this.RemoteInfo + "\n\tUpdateAvailable: " + this.IsUpdateAvailable);
                Logger.Blank();
            }

            this.IsRemoteReady = true;
            this.IsProcessingComplete = true;
        }
Esempio n. 8
0
 private void SetLocalInfoOnly()
 {
     this.RemoteInfo = this.LocalInfo;
     this.IsRemoteReady = true;
     this.IsProcessingComplete = true;
     Logger.Log(this.LocalInfo);
     Logger.Blank();
 }