コード例 #1
0
 public ItemUsageDirector(IUserRetriever userRetriever, IItemRetriever itemRetriever, IUserItemSaver userItemSaver, IUserItemRetriever userItemRetriever, IUserSaver userSaver, IUserEnergyProvider userEnergyProvider, IUserSightRadiusProvider userSightRadiusProvider)
 {
     _userRetriever = userRetriever;
     _itemRetriever = itemRetriever;
     _userItemSaver = userItemSaver;
     _userItemRetriever = userItemRetriever;
     _userSaver = userSaver;
     _userEnergyProvider = userEnergyProvider;
     _userSightRadiusProvider = userSightRadiusProvider;
 }
コード例 #2
0
 public ShopDirector(IUserRetriever userRetriever,
     IItemRetriever itemRetriever,
     IStoreRetriever storeRetriever,
     IUserItemRetriever userItemRetriever,
     IUserSaver userSaver,
     IUserItemSaver userItemSaver)
 {
     _userRetriever = userRetriever;
     _itemRetriever = itemRetriever;
     _storeRetriever = storeRetriever;
     _userItemRetriever = userItemRetriever;
     _userSaver = userSaver;
     _userItemSaver = userItemSaver;
 }
コード例 #3
0
        public UsersController()
        {
            _zombiePackRetriever = MvcApplication.DependancyInjection.Resolve<IZombiePackRetriever>();
            _hotZoneRetriever = MvcApplication.DependancyInjection.Resolve<IHotZoneRetriever>();
            _userRetriever = MvcApplication.DependancyInjection.Resolve<IUserRetriever>();
            _userSaver = MvcApplication.DependancyInjection.Resolve<IUserSaver>();
            _userHotZoneProgressRetriever = MvcApplication.DependancyInjection.Resolve<IUserZombiePackProgressRetriever>();
            _userItemRetriever = MvcApplication.DependancyInjection.Resolve<IUserItemRetriever>();

            _distanceCalculator = MvcApplication.DependancyInjection.Resolve<IDistanceCalculator>();
            _userEnergyProvider = MvcApplication.DependancyInjection.Resolve<IUserEnergyProvider>();
            _userMover = MvcApplication.DependancyInjection.Resolve<IUserMoveDirector>();
            _shopDirector = MvcApplication.DependancyInjection.Resolve<IShopDirector>();
            _userAttackPowerProvider = MvcApplication.DependancyInjection.Resolve<IUserAttackPowerProvider>();
            _userSightRadiusProvider = MvcApplication.DependancyInjection.Resolve<IUserSightRadiusProvider>();
            _itemUsageDirector = MvcApplication.DependancyInjection.Resolve<IItemUsageDirector>();
            _achievementProvider = MvcApplication.DependancyInjection.Resolve<IAchievementProvider>();
            _userLevelService = MvcApplication.DependancyInjection.Resolve<IUserLevelService>();
            _userCountsRetriever = MvcApplication.DependancyInjection.Resolve<IUserCountsRetriever>();
        }
コード例 #4
0
 public UserEnergyAndSightProvider(IUserRetriever userRetriever, IUserSaver userSaver, IUserItemRetriever userItemRetriever)
 {
     _userRetriever = userRetriever;
     _userSaver = userSaver;
     _userItemRetriever = userItemRetriever;
 }
コード例 #5
0
 public UserAttackPowerProvider(IUserRetriever userRetriever, IUserItemRetriever userItemRetriever)
 {
     _userRetriever = userRetriever;
     _userItemRetriever = userItemRetriever;
 }