Inheritance: IInstallInfo
Beispiel #1
0
        public LocalCollection(Guid gameId, string name, ICollection <ContentSpec> contents) : base(gameId, name)
        {
            if (contents == null)
            {
                throw new ArgumentNullException(nameof(contents));
            }
            //Author = "You"; // better assume null author = you?
            Contents = contents;
            UpdateFromContents();
            var version = Version = "0.0.1";

            InstallInfo = new InstallInfo(Size, SizePacked, version);
        }
Beispiel #2
0
 void JustInstalled(string version, bool completed)
 {
     InstallInfo = new InstallInfo(Size, SizePacked, version, completed);
     UpdateState();
 }
Beispiel #3
0
 void ChangeVersion(string version, bool completed)
 {
     InstallInfo.Updated(version, Size, SizePacked, completed);
     UpdateState();
     // TODO: What about updating the version info in the StateHandler cache etc??
 }
 public LocalCollection(Guid gameId, string name, ICollection<ContentSpec> contents) : base(gameId, name) {
     Contract.Requires<ArgumentNullException>(contents != null);
     //Author = "You"; // better assume null author = you?
     Contents = contents;
     UpdateFromContents();
     var version = Version = "0.0.1";
     InstallInfo = new InstallInfo(Size, SizePacked, version);
 }