public CommandReader(string commands, Random random) { _animationFactory = new AnimationFactory(TypeSource <IAnimation> .FromThisAssembly()); _patternFactory = new PatternFactory(TypeSource <IPattern> .FromThisAssembly()); _timingFactory = new TimingFactory(TypeSource <ITiming> .FromThisAssembly()); _commands = commands; }
public SceneRandom() { _animationFactory = new AnimationFactory(TypeSource <IAnimation> .FromThisAssembly()); _patternFactory = new PatternFactory(TypeSource <IPattern> .FromThisAssembly().Exclude <PatternSolidColor>()); _timingFactory = new TimingFactory(TypeSource <ITiming> .FromThisAssembly()); }