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