示例#1
0
 private void InitializeStateSensors(IStateSensorFactory stateSensorFactory)
 {
     _stateSensors = new IStateSensor[]
     {
         stateSensorFactory.Create <PossessionStateSensor>()
     };
 }
示例#2
0
        internal Announcer(ISessionConverter sessionConverter, IStateSensorFactory stateSensorFactory, IEventSensorFactory eventSensorFactory, IPlaySensorFactory playSensorFactory)
        {
            _sessionConverter = sessionConverter;

            InitializeStateSensors(stateSensorFactory);
            InitializeEventSensors(eventSensorFactory);
            InitializePlaySensors(playSensorFactory);
        }