Beispiel #1
0
 public SyndicationFeedController(IContentLoader contentLoader, IFeedContentResolver feedContentResolver, IFeedContentFilterer feedContentFilterer, IItemDescriptionProvider itemDescriptionProvider, IItemModifier itemModifier, CategoryRepository categoryRepository)
 {
     ContentLoader           = contentLoader;
     FeedContentResolver     = feedContentResolver;
     FeedFilterer            = feedContentFilterer;
     ItemDescriptionProvider = itemDescriptionProvider;
     ItemModifier            = itemModifier;
     CatRepository           = categoryRepository;
 }
Beispiel #2
0
        public SyndicationFeedController()
        {
            ContentLoader       = ServiceLocator.Current.GetInstance <IContentLoader>();
            FeedContentResolver = ServiceLocator.Current.GetInstance <IFeedContentResolver>();
            FeedFilterer        = ServiceLocator.Current.GetInstance <IFeedContentFilterer>();

            ItemDescriptionProvider = ServiceLocator.Current.GetInstance <IItemDescriptionProvider>();
            ItemModifier            = ServiceLocator.Current.GetInstance <IItemModifier>();

            CatRepository = ServiceLocator.Current.GetInstance <CategoryRepository>();
        }
Beispiel #3
0
 public SyndicationItemFactory(IContentLoader contentLoader, IFeedContentResolver feedContentResolver,
                               IFeedContentFilterer feedFilterer, IItemDescriptionProvider itemDescriptionProvider,
                               IItemModifier itemModifier, SyndicationFeedContext feedContext)
 {
     ContentLoader           = contentLoader;
     FeedContentResolver     = feedContentResolver ?? new FeedContentResolver(ContentLoader);
     FeedFilterer            = feedFilterer ?? new FeedContentFilterer();
     ItemDescriptionProvider = itemDescriptionProvider ?? new ItemDescriptionProvider();
     ItemModifier            = itemModifier ?? new ItemNullModifier();
     FeedContext             = feedContext;
 }
 public void RemoveOtherItemModifier(IItemModifier itemModifier)
 {
     this.status.OtherItemModifiers.Remove(itemModifier);
     this.ResetItemModifierParameter();
 }
 public void AddOtherItemModifier(IItemModifier itemModifier)
 {
     this.status.OtherItemModifiers.Add(itemModifier);
     this.ResetItemModifierParameter();
 }
        public void AttachItemModifierToInstanceWeapon(InstanceWeapon instanceWeapon, IItemModifier itemModifier)
        {
            Assert.IsTrue(this.Inventory.Weapons.Contains(instanceWeapon), "所持していない武器です");
            instanceWeapon.Modifiers.Add(itemModifier);

            this.ResetItemModifierParameter();
        }