Represents premium.conf
Inheritance: ConfFile
コード例 #1
0
ファイル: BaseConf.cs プロジェクト: aura-project/aura
		protected BaseConf()
		{
			this.Log = new LogConfFile();
			this.Database = new DatabaseConfFile();
			this.Localization = new LocalizationConfFile();
			this.Internal = new InterConfFile();
			this.Premium = new PremiumConfFile();
		}
コード例 #2
0
ファイル: PremiumServices.cs プロジェクト: aura-project/aura
		/// <summary>
		/// Enables services for free, based on the conf's settings.
		/// </summary>
		/// <param name="premiumConfFile"></param>
		public void EvaluateFreeServices(PremiumConfFile premiumConfFile)
		{
			var freeExpiration = DateTime.Parse("2999-12-31 23:59:59");

			if (premiumConfFile.FreeInventoryPlus)
				this.InventoryPlusExpiration = freeExpiration;

			if (premiumConfFile.FreePremium)
				this.PremiumExpiration = freeExpiration;

			if (premiumConfFile.FreeVip)
				this.VipExpiration = freeExpiration;
		}