예제 #1
0
파일: BaseConf.cs 프로젝트: xKamuna/aura-1
 protected BaseConf()
 {
     this.Log          = new LogConfFile();
     this.Database     = new DatabaseConfFile();
     this.Localization = new LocalizationConfFile();
     this.Internal     = new InterConfFile();
     this.Premium      = new PremiumConfFile();
 }
예제 #2
0
        /// <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;
            }
        }