Esempio n. 1
0
 public FileSystemTreeNodeFileSystemInfo(IIconManager icon_mgr, FileSystemInfo file)
     : base(icon_mgr, (file.Attributes & FileAttributes.Directory) != 0)
 {
     this.File = file;
     this.SelectedImageIndex = this.ImageIndex = this.DisplayIcon;
     this.Text = this.DisplayName;
 }
Esempio n. 2
0
#pragma warning restore 618
        public void TestFixtureTearDown()
        {
            BossManager       = null;
            BulletManager     = null;
            CollisionManager  = null;
            CommandManager    = null;
            ConfigManager     = null;
            ContentManager    = null;
            ControlManager    = null;
            DebugManager      = null;
            DelayManager      = null;
            DeviceManager     = null;
            EnemyManager      = null;
            EventManager      = null;
            ExplosionManager  = null;
            IconManager       = null;
            ImageManager      = null;
            InputManager      = null;
            LevelManager      = null;
            MoverManager      = null;
            RandomManager     = null;
            RenderManager     = null;
            ResolutionManager = null;
            ScoreManager      = null;
            ScreenManager     = null;
            SoundManager      = null;
            SpriteManager     = null;
            StateManager      = null;
            StopwatchManager  = null;
            StorageManager    = null;
            TextManager       = null;
            ThreadManager     = null;
            FileManager       = null;
            Logger            = null;
        }
Esempio n. 3
0
#pragma warning restore 618
        public void TestFixtureSetUp()
        {
            BossManager       = MockRepository.GenerateStub <IBossManager>();
            BulletManager     = MockRepository.GenerateStub <IBulletManager>();
            CollisionManager  = MockRepository.GenerateStub <ICollisionManager>();
            CommandManager    = MockRepository.GenerateStub <ICommandManager>();
            ConfigManager     = MockRepository.GenerateStub <IConfigManager>();
            ContentManager    = MockRepository.GenerateStub <IContentManager>();
            ControlManager    = MockRepository.GenerateStub <IControlManager>();
            DebugManager      = MockRepository.GenerateStub <IDebugManager>();
            DelayManager      = MockRepository.GenerateStub <IDelayManager>();
            DeviceManager     = MockRepository.GenerateStub <IDeviceManager>();
            EnemyManager      = MockRepository.GenerateStub <IEnemyManager>();
            EventManager      = MockRepository.GenerateStub <IEventManager>();
            ExplosionManager  = MockRepository.GenerateStub <IExplosionManager>();
            IconManager       = MockRepository.GenerateStub <IIconManager>();
            ImageManager      = MockRepository.GenerateStub <IImageManager>();
            InputManager      = MockRepository.GenerateStub <IInputManager>();
            LevelManager      = MockRepository.GenerateStub <ILevelManager>();
            MoverManager      = MockRepository.GenerateStub <IMoverManager>();
            RandomManager     = MockRepository.GenerateStub <IRandomManager>();
            RenderManager     = MockRepository.GenerateStub <IRenderManager>();
            ResolutionManager = MockRepository.GenerateStub <IResolutionManager>();
            ScoreManager      = MockRepository.GenerateStub <IScoreManager>();
            ScreenManager     = MockRepository.GenerateStub <IScreenManager>();
            SoundManager      = MockRepository.GenerateStub <ISoundManager>();
            SpriteManager     = MockRepository.GenerateStub <ISpriteManager>();
            StateManager      = MockRepository.GenerateStub <IStateManager>();
            StopwatchManager  = MockRepository.GenerateStub <IStopwatchManager>();
            StorageManager    = MockRepository.GenerateStub <IStorageManager>();
            TextManager       = MockRepository.GenerateStub <ITextManager>();
            ThreadManager     = MockRepository.GenerateStub <IThreadManager>();
            FileManager       = MockRepository.GenerateStub <IFileManager>();
            Logger            = MockRepository.GenerateStub <ILogger>();
        }
Esempio n. 4
0
 public FileSystemTreeNodeSpecialFolder(IIconManager icon_mgr, ExtraSpecialFolder folder)
     : base(icon_mgr, true)
 {
     this.Folder             = folder;
     this.SelectedImageIndex = this.ImageIndex = this.DisplayIcon;
     this.Text = this.DisplayName;
 }
 public ProfileController(UserManager <AppUser> userManager, SignInManager <AppUser> signInManager, IIconManager iconManager, IMapper mapper)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _iconManager   = iconManager;
     _mapper        = mapper;
 }
Esempio n. 6
0
 public FileSystemTreeNode(IIconManager icon_mgr, bool expandable)
 {
     this.icon_mgr = icon_mgr;
     if (expandable)
     {
         IsExpandable = true;
     }
 }
Esempio n. 7
0
        public MapEngine(IDataStore dataStore, IEventService eventService, IIconManager iconManager, ITilesetManager tilesetManager, string mapFilePath, string mapName)
        {
            _dataStore      = dataStore;
            _eventService   = eventService;
            _iconManager    = iconManager;
            _tilesetManager = tilesetManager;

            MapFilePath = mapFilePath;
            MapName     = mapName;

            Load(MapName);
        }
 public DashboardController(
     IMapper mapper,
     IHostingEnvironment env,
     IDashboardManager dashboardManager,
     IIconManager iconManager,
     UserManager <AppUser> userManager)
 {
     _mapper           = mapper;
     _env              = env;
     _dashboardManager = dashboardManager;
     _iconManager      = iconManager;
     _userManager      = userManager;
 }
 public BattleState(
     IGraphics graphics, IBattleManager battleManager, IActorManager actorManager, IEnemyManager enemyManager,
     IIconManager iconManager, IInputManager inputManager, ISongManager songManager, IDialogManager dialog, WorldState worldState)
 {
     _graphics      = graphics;
     _battleManager = battleManager;
     _actorManager  = actorManager;
     _enemyManager  = enemyManager;
     _iconManager   = iconManager;
     _inputManager  = inputManager;
     _songManager   = songManager;
     _dialog        = dialog;
     _worldState    = worldState;
 }
Esempio n. 10
0
 public SensorController(IMapper mapper,
                         ISensorManager sensorManager,
                         IIconManager iconManager,
                         ISensorTypeManager sensorTypeManager,
                         UserManager <AppUser> userManager,
                         IHostingEnvironment env)
 {
     _sensorManager     = sensorManager;
     _sensorTypeManager = sensorTypeManager;
     _iconManager       = iconManager;
     _mapper            = mapper;
     _userManager       = userManager;
     _env = env;
 }
 public FileSystemTreeNodeLocalDBEntry(IIconManager icon_mgr, CUEToolsLocalDBEntry item, bool showArtist, bool showYear, string inputPath)
     : base(icon_mgr, inputPath == null && item.InputPaths != null && item.InputPaths.Count > 1)
 {
     this.Item = item;
     this.m_input_path = inputPath;
     this.ShowArtist = showArtist;
     this.ShowYear = showYear;
     this.SelectedImageIndex = this.ImageIndex = this.DisplayIcon;
     this.Text = this.DisplayName;
     //// Choose state from m_state_image_list
     //if (item.InputPaths.Find(path => Path.GetExtension(path).ToLower() == ".cue") != null)
     //    album.StateImageKey = "cue";
     //else
     //    album.StateImageKey = "blank";
 }
 public FileSystemTreeNodeLocalDBEntry(IIconManager icon_mgr, CUEToolsLocalDBEntry item, bool showArtist, bool showYear, string inputPath)
     : base(icon_mgr, inputPath == null && item.InputPaths != null && item.InputPaths.Count > 1)
 {
     this.Item               = item;
     this.m_input_path       = inputPath;
     this.ShowArtist         = showArtist;
     this.ShowYear           = showYear;
     this.SelectedImageIndex = this.ImageIndex = this.DisplayIcon;
     this.Text               = this.DisplayName;
     //// Choose state from m_state_image_list
     //if (item.InputPaths.Find(path => Path.GetExtension(path).ToLower() == ".cue") != null)
     //    album.StateImageKey = "cue";
     //else
     //    album.StateImageKey = "blank";
 }
Esempio n. 13
0
 public GameState(
     IActorManager actorManager, IBattleManager battleManager, IDataStore dataStore, IDialogManager dialogManager,
     IEnemyManager enemyManager, IEventService eventService, IGraphics graphics, IIconManager iconManager, IInputManager inputManager, ISongManager songManager,
     ITilesetManager tilesetManager)
 {
     _actorManager   = actorManager;
     _battleManager  = battleManager;
     _dataStore      = dataStore;
     _dialogManager  = dialogManager;
     _enemyManager   = enemyManager;
     _eventService   = eventService;
     _graphics       = graphics;
     _iconManager    = iconManager;
     _inputManager   = inputManager;
     _songManager    = songManager;
     _tilesetManager = tilesetManager;
 }
Esempio n. 14
0
        public WorldState(
            IDataStore dataStore, IEventService eventService, ISongManager songManager, IGraphics graphics, IBattleManager battleManager, IActorManager actorManager,
            IEnemyManager enemyManager, IIconManager iconManager, IInputManager inputManager, ITilesetManager tilesetManager,
            IDialogManager dialogManager)
        {
            _inputManager  = inputManager;
            _dialogManager = dialogManager;
            _eventService  = eventService;
            _graphics      = graphics;
            _songManager   = songManager;

            Party = new Party
            {
                Actors = new List <Actor> {
                    new Actor("gus", "gus")
                    {
                        Name = "Gus", Hp = 40, MaxHp = 58, Mp = 2, MaxMp = 8, Limit = 23
                    },
                    new Actor("fitz", "fitz")
                    {
                        Name = "Fitz", Hp = 32, MaxHp = 52, Mp = 5, MaxMp = 12, Limit = 17
                    },
                    new Actor("sorah", "sorah")
                    {
                        Name = "Sorah", Hp = 102, MaxHp = 252, Mp = 8, MaxMp = 12, Limit = 37
                    },
                    new Actor("sheba", "sheba")
                    {
                        Name = "Sheba", Hp = 44, MaxHp = 52, Mp = 8, MaxMp = 12, Limit = 5
                    }
                }
            };

            Map                    = new MapEngine(dataStore, _eventService, iconManager, tilesetManager, $"../../../../Data/Game/map/", mapName);
            gamePlayer             = new GamePlayer(Party.Actors[0].CharSet, inputManager, actorManager, Map.Start);
            gamePlayer.WalkOnTile += new GamePlayer.MoveEventHandler(OnWalkOnTile);
            gamePlayer.Action     += new GamePlayer.PlayerEventHandler(OnAction);

            _npcManager = new NPCManager(actorManager, _dialogManager, _graphics);
        }
		public FileSystemTreeNodeFileSystemInfo(IIconManager icon_mgr, FileSystemInfo file)
			: base(icon_mgr, (file.Attributes & FileAttributes.Directory) != 0)
		{
			this.File = file;
			this.SelectedImageIndex = this.ImageIndex = this.DisplayIcon;
			this.Text = this.DisplayName;
		}
		public FileSystemTreeNodeSpecialFolder(IIconManager icon_mgr, ExtraSpecialFolder folder)
			: base(icon_mgr, true)
		{
			this.Folder = folder;
			this.SelectedImageIndex = this.ImageIndex = this.DisplayIcon;
			this.Text = this.DisplayName;
		}
Esempio n. 17
0
 public SensorTypeController(ISensorTypeManager sensorTypeManager, IMapper mapper, IIconManager iconManager)
 {
     _sensorTypeManager = sensorTypeManager;
     _mapper            = mapper;
     _iconManager       = iconManager;
 }
Esempio n. 18
0
 public ClassicUiGenerator(ILogger logger, IIconManager iconsManager, IMenuSchemaProvider menuSchemaProvider)
     : base(iconsManager, menuSchemaProvider, logger)
 {
     Logger.Info(Resources.InfoUiGenerationStarted);
 }
Esempio n. 19
0
 protected UiGenerator(IIconManager iconsManager, IMenuSchemaProvider menuSchemaProvider, ILogger logger)
 {
     _logger             = IoC.ContainerRegistrar.Container.Resolve <ILogger>();
     _iconsManager       = iconsManager;
     _menuSchemaProvider = menuSchemaProvider;
 }
Esempio n. 20
0
 public GameManager
 (
     IBossManager bossManager,
     IBulletManager bulletManager,
     ICollisionManager collisionManager,
     ICommandManager commandManager,
     IConfigManager configManager,
     IContentManager contentManager,
     IControlManager controlManager,
     IDebugManager debugManager,
     IDelayManager delayManager,
     IDeviceManager deviceManager,
     IEnemyManager enemyManager,
     IEventManager eventManager,
     IExplosionManager explosionManager,
     IIconManager iconManager,
     IImageManager imageManager,
     IInputManager inputManager,
     ILevelManager levelManager,
     IMoverManager moverManager,
     IRandomManager randomManager,
     IRenderManager renderManager,
     IResolutionManager resolutionManager,
     IScoreManager scoreManager,
     IScreenManager screenManager,
     ISoundManager soundManager,
     ISpriteManager spriteManager,
     IStateManager stateManager,
     IStopwatchManager stopwatchManager,
     IStorageManager storageManager,
     ITextManager textManager,
     IThreadManager threadManager,
     IFileManager fileManager,
     ILogger logger
 )
 {
     BossManager       = bossManager;
     BulletManager     = bulletManager;
     CollisionManager  = collisionManager;
     CommandManager    = commandManager;
     ConfigManager     = configManager;
     ContentManager    = contentManager;
     ControlManager    = controlManager;
     DebugManager      = debugManager;
     DelayManager      = delayManager;
     DeviceManager     = deviceManager;
     EnemyManager      = enemyManager;
     EventManager      = eventManager;
     ExplosionManager  = explosionManager;
     ImageManager      = imageManager;
     IconManager       = iconManager;
     InputManager      = inputManager;
     LevelManager      = levelManager;
     MoverManager      = moverManager;
     RandomManager     = randomManager;
     RenderManager     = renderManager;
     ResolutionManager = resolutionManager;
     ScoreManager      = scoreManager;
     ScreenManager     = screenManager;
     SoundManager      = soundManager;
     SpriteManager     = spriteManager;
     StateManager      = stateManager;
     StopwatchManager  = stopwatchManager;
     StorageManager    = storageManager;
     TextManager       = textManager;
     ThreadManager     = threadManager;
     FileManager       = fileManager;
     Logger            = logger;
 }
Esempio n. 21
0
 public RibbonUiGenerator(IIconManager iconsProvider, IMenuSchemaProvider menuSchemaProvider, ILogger logger)
     : base(iconsProvider, menuSchemaProvider, logger)
 {
     _logger = logger;
 }
 public FileSystemTreeNodeLocalDBFolder(IIconManager icon_mgr)
     : base(icon_mgr, true)
 {
 }
Esempio n. 23
0
 /// <summary>
 /// 初始化图标服务
 /// </summary>
 /// <param name="unitOfWork">工作单元</param>
 /// <param name="repository">图标仓储</param>
 /// <param name="iconManager">图标管理器</param>
 public IconService(IApplicationUnitOfWork unitOfWork, IIconRepository repository, IIconManager iconManager)
     : base(unitOfWork, repository)
 {
     Repository  = repository;
     IconManager = iconManager;
 }
 public FileSystemTreeNodeLocalDBFolder(IIconManager icon_mgr)
     : base(icon_mgr, true)
 {
 }
		public FileSystemTreeNode(IIconManager icon_mgr, bool expandable)
		{
			this.icon_mgr = icon_mgr;
			if (expandable)
				IsExpandable = true;
		}
Esempio n. 26
0
 /// 初始化仓储
 /// <param name="unitOfWork">工作单元</param>
 /// <param name="iconManager"></param>
 public PetaPocoIconRepository(ISysPetaPocoUnitOfWork unitOfWork, IIconManager iconManager)
     : base(unitOfWork)
 {
     this.IconManager = iconManager;
 }
Esempio n. 27
0
 protected UiGenerator()
 {
     _logger             = IoC.ContainerRegistrar.Container.Resolve <ILogger>();
     _iconsManager       = IoC.ContainerRegistrar.Container.Resolve <IIconManager>();
     _menuSchemaProvider = IoC.ContainerRegistrar.Container.Resolve <IMenuSchemaProvider>();
 }