示例#1
0
 // use the scene generator factory, because a specific SceneGenerator might be shared if given as argument
 public ControllerBase(IUniverse universe, ISceneTranslator sceneTranslator, ISceneGeneratorFactory sceneGeneratorFactory, ISink channelSink)
 {
     _channelSink                 = channelSink;
     Universe                     = universe;
     SceneTranslator              = sceneTranslator;
     SceneGenerator               = sceneGeneratorFactory.CreateGenerator(Universe);
     SceneGenerator.SceneChanged += SceneChanged;
     SceneGenerator.Signal(StartupSignal.Value);
 }
示例#2
0
 protected void OnSignal(ISignal signal)
 {
     SceneGenerator.Signal(signal);
 }