示例#1
0
 public MainEngineController(ILevelFacade levelFacade,
                             IVisualElementsFacade visualElementsFacade,
                             IInputController inputController,
                             IInputFacade inputFacade,
                             IUIComponentFacade uiComponentFacade)
 {
     _inputController   = inputController;
     _rulesPacksFactory = new RulesPacksFactory();
     _engine            = new PipelineEngine(levelFacade, visualElementsFacade, inputFacade, uiComponentFacade);
 }
示例#2
0
 public PipelineEngine(ILevelFacade levelFacade,
                       IVisualElementsFacade visualElementsFacade,
                       IInputFacade inputFacade,
                       IUIComponentFacade uiComponentFacade)
 {
     LevelFacade          = levelFacade;
     VisualElementsFacade = visualElementsFacade;
     InputFacade          = inputFacade;
     UiComponentFacade    = uiComponentFacade;
 }
示例#3
0
        private void Bind()
        {
            _uiComponentFacade    = new UIComponentFacade();
            _levelFacade          = new LevelFacade(_uiComponentFacade);
            _inputController      = new InputController();
            _visualElementsFacade = new VisualElementsFacade();
            _inputFacade          = new InputFacade(_inputController);

            _mainEngineController = new MainEngineController(_levelFacade, _visualElementsFacade, _inputController, _inputFacade, _uiComponentFacade);

            var objUpdateController = new GameObject("UpdateController");

            _updateController = objUpdateController.AddComponent <UpdateController>();
            _updateController.AddComponent(UpdatablesName.MainEngineController, _mainEngineController);
            _updateController.AddComponent(UpdatablesName.InputController, _inputController);
        }
示例#4
0
 public LevelFacade(IUIComponentFacade uiComponentFacade)
 {
     _uiComponentFacade = uiComponentFacade;
 }