Пример #1
0
 public override void PlayInternal(ComponentInstance zComponentInstance, float target, float curve, bool dontPlayComponents)
 {
     if (!CheckMIDI(zComponentInstance))
     {
         return;
     }
     base.PlayInternal(zComponentInstance, target, curve, dontPlayComponents: true);
     if (_switchComponentSwitchType == SwitchComponentSwitchType.OnPlay && _defferedSelectedComponent != null)
     {
         _selectedComponent         = _defferedSelectedComponent;
         _defferedSelectedComponent = null;
     }
     if (_useGlobalSwitch && _globalSwitch != null)
     {
         GlobalSwitch globalSwitch = EventManager.Instance._globalParameterManager._globalSwitches.FindItem(_globalSwitch);
         if (globalSwitch != null)
         {
             GlobalSwitchContainer globalSwitchContainer = GetGlobalSwitchContainer(globalSwitch.GetActiveSwitch());
             if (globalSwitchContainer != null)
             {
                 _selectedComponent = globalSwitchContainer._components[0];
             }
         }
     }
     if (_selectedComponent != null)
     {
         if (_activeMusicTimeSettings != null && IsMusicSyncEnabled() && _syncToMusicOnFirstPlay && !_musicTimeResetOnPlay)
         {
             _componentInstance._instance.SetPlayScheduledAdditive(_activeMusicTimeSettings.GetDelay(this), 0.0);
         }
         _selectedComponent.PlayInternal(zComponentInstance, 0f, 0.5f);
     }
 }
 public AbstractBoltClient()
 {
     options         = new BoltOptions();
     configType      = ConfigType.CLIENT_SIDE;
     globalSwitch    = new GlobalSwitch();
     configContainer = new DefaultConfigContainer();
 }
Пример #3
0
        public AbstractRemotingServer(IPAddress ip, int port)
        {
            ip_Renamed   = ip;
            port_Renamed = port;

            options         = new BoltOptions();
            configType      = ConfigType.SERVER_SIDE;
            globalSwitch    = new GlobalSwitch();
            configContainer = new DefaultConfigContainer();
        }
 public ConnectionEventHandler(GlobalSwitch globalSwitch)
 {
     this.globalSwitch = globalSwitch;
 }
Пример #5
0
 public DefaultClientConnectionManager(ConnectionSelectStrategy connectionSelectStrategy, ConnectionFactory connectionFactory, ConnectionEventHandler connectionEventHandler, ConnectionEventListener connectionEventListener, GlobalSwitch globalSwitch) : base(connectionSelectStrategy, connectionFactory, connectionEventHandler, connectionEventListener, globalSwitch)
 {
 }
Пример #6
0
 /// <summary>
 /// Construct with parameters.
 /// </summary>
 /// <param name="connectionSelectStrategy"> connection selection strategy. </param>
 /// <param name="connectionFactory"> connection factory </param>
 /// <param name="connectionEventHandler"> connection event handler </param>
 /// <param name="connectionEventListener"> connection event listener </param>
 /// <param name="globalSwitch"> global switch </param>
 public DefaultConnectionManager(ConnectionSelectStrategy connectionSelectStrategy, ConnectionFactory connectionFactory, ConnectionEventHandler connectionEventHandler, ConnectionEventListener connectionEventListener, GlobalSwitch globalSwitch) : this(connectionSelectStrategy, connectionFactory, connectionEventHandler, connectionEventListener)
 {
     this.globalSwitch = globalSwitch;
 }
Пример #7
0
 public RandomSelectStrategy(GlobalSwitch globalSwitch)
 {
     this.globalSwitch = globalSwitch;
 }
 public RpcConnectionEventHandler(GlobalSwitch globalSwitch) : base(globalSwitch)
 {
 }