コード例 #1
0
 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;
 }
コード例 #2
0
 public SceneRandom()
 {
     _animationFactory = new AnimationFactory(TypeSource <IAnimation> .FromThisAssembly());
     _patternFactory   = new PatternFactory(TypeSource <IPattern> .FromThisAssembly().Exclude <PatternSolidColor>());
     _timingFactory    = new TimingFactory(TypeSource <ITiming> .FromThisAssembly());
 }