Esempio n. 1
0
 protected BaseSteamCommand(ISteamSessionFactory factory)
 {
     _factory = factory;
     _app     = SystemExtensions.CreateLazy(() => new App(AppId));
     HasRequiredOption <uint>("a|appid=", "AppID", s => AppId  = s);
     HasFlag("v|verbose", "Verbose", f => Common.Flags.Verbose = f);
 }
Esempio n. 2
0
 protected LocalContent(string packageName, Guid gameId, string version) : base(gameId)
 {
     if (!(!string.IsNullOrWhiteSpace(packageName)))
     {
         throw new ArgumentNullException("!string.IsNullOrWhiteSpace(packageName)");
     }
     PackageName = packageName;
     Version     = version;
     _source     = SystemExtensions.CreateLazy(() => new ContentPublisher(Publisher.withSIX, PackageName));
 }
Esempio n. 3
0
 protected PackagedContent(string packageName, Guid gameId) : base(gameId)
 {
     if (packageName == null)
     {
         throw new ArgumentNullException(nameof(packageName));
     }
     if (!(!string.IsNullOrWhiteSpace(packageName)))
     {
         throw new ArgumentOutOfRangeException("!string.IsNullOrWhiteSpace(packageName)");
     }
     PackageName = packageName;
     _source     = SystemExtensions.CreateLazy(() => new ContentPublisher(Publisher.withSIX, PackageName));
 }
Esempio n. 4
0
 protected LocalContent()
 {
     _source = SystemExtensions.CreateLazy(() => new ContentPublisher(Publisher.withSIX, PackageName));
 }
Esempio n. 5
0
 protected App(AppId_t id)
 {
     Id           = id;
     _steamInfo   = SteamHelper.TryGetSteamAppById(Id.m_AppId);
     _directories = SystemExtensions.CreateLazy(GetDirectories);
 }