Ejemplo n.º 1
0
        /// <summary>Update method needs to be called regularly in order
        /// to process incoming and outgoing messages.
        /// </summary>
        ///
        public void Update(eBrainCloudUpdateType in_updateType = eBrainCloudUpdateType.ALL)
        {
            switch (in_updateType)
            {
            case eBrainCloudUpdateType.REST:
            {
                if (_comms != null)
                {
                    _comms.Update();
                }
            }
            break;

            case eBrainCloudUpdateType.RTT:
            {
                if (_rttComms != null)
                {
                    _rttComms.Update();
                }
            }
            break;

            case eBrainCloudUpdateType.RS:
            {
                if (_rsComms != null)
                {
                    _rsComms.Update();
                }
            }
            break;

            default:
            case eBrainCloudUpdateType.ALL:
            {
                if (_rttComms != null)
                {
                    _rttComms.Update();
                }
                if (_comms != null)
                {
                    _comms.Update();
                }
                if (_rsComms != null)
                {
                    _rsComms.Update();
                }
            }
            break;
            }
        }
Ejemplo n.º 2
0
 /// <summary>Update method needs to be called regularly in order
 /// to process incoming and outgoing messages.
 /// </summary>
 public void Update()
 {
     if (m_bc != null)
     {
         m_bc.Update();
     }
 }
Ejemplo n.º 3
0
 /// <summary>Update method needs to be called regularly in order
 /// to process incoming and outgoing messages.
 /// </summary>
 public void Update()
 {
     if (_comms != null)
     {
         _comms.Update();
     }
 }
Ejemplo n.º 4
0
        /// <summary>Update method needs to be called regularly in order
        /// to process incoming and outgoing messages.
        /// </summary>
        ///
        public void Update(eBrainCloudUpdateType in_updateType = eBrainCloudUpdateType.ALL)
        {
            //System.Diagnostics.Debug.WriteLine("WE'RE IN CLIENT UPDATE YOOOOOO!");            System.Diagnostics.Debug.WriteLine("WE'RE IN CLIENT UPDATE YOOOOOO!");
            switch (in_updateType)
            {
            case eBrainCloudUpdateType.REST:
            {
                if (_comms != null)
                {
                    _comms.Update();
                }
            }
            break;

            case eBrainCloudUpdateType.RTT:
            {
                if (_rttComms != null)
                {
                    _rttComms.Update();
                }
            }
            break;

            default:
            case eBrainCloudUpdateType.ALL:
            {
                if (_rttComms != null)
                {
                    _rttComms.Update();
                }
                if (_comms != null)
                {
                    _comms.Update();
                }
            }
            break;
            }
        }