Example #1
0
            public LeagueProjectRelease GetLatestRelease()
            {
                LeagueProjectRelease latestRelease = null;

                foreach (LeagueProjectRelease release in this.Releases)
                {
                    uint releaseValue = LeagueInstallation.GetReleaseValue(release.Version);
                    if (latestRelease == null || releaseValue > latestRelease.VersionValue)
                    {
                        latestRelease = release;
                    }
                }
                return(latestRelease);
            }
            public LeagueProjectRelease(LeagueProject project, string version)
            {
                this.Project      = project;
                this.Version      = version;
                this.VersionValue = LeagueInstallation.GetReleaseValue(version);
                string manifestPath = this.GetFolder() + "/releasemanifest";

                if (File.Exists(manifestPath))
                {
                    this.GameManifest = new ReleaseManifest(manifestPath);
                }
                else
                {
                    throw new ReleaseManifestNotFoundException();
                }
            }