Example #1
0
 /// <inheritdoc />
 public BrickController(BrickControllerParameters brickParameters, IDispatcher messageDispatcher, IEffectPool effectPool, ILogger logger)
 {
     _brickParameters   = brickParameters;
     _messageDispatcher = messageDispatcher;
     _effectPool        = effectPool;
     _logger            = logger;
 }
Example #2
0
        /// <summary> Получить контроллер кирпичика </summary>
        public static IBrickController GetBrickController(BrickControllerParameters brickParameters)
        {
            var dispatcher = GetCachedDispatcher();
            var effectPool = GetCachedEffectPool();
            var logger     = GetLogger();

            return(new BrickController(brickParameters, dispatcher, effectPool, logger));
        }