예제 #1
0
 static void client_OnEventQueueRunning(object sender, EventQueueRunningEventArgs e)
 {
     EventQueueRunningEvent.Set();
 }
예제 #2
0
 void Network_EventQueueRunning(object sender, EventQueueRunningEventArgs e)
 {
     if (e.Simulator == client.Network.CurrentSim)
     {
         SetRandomHeading();
     }
 }
예제 #3
0
        private void Network_OnEventQueueRunning(object sender, EventQueueRunningEventArgs e)
        {
            if (e.Simulator == Client.Network.CurrentSim)
            {
                Console.WriteLine("Event queue connected for the primary simulator, requesting group info");

                Client.Groups.RequestCurrentGroups();
            }
        }
 ///<summary>Raises the EventQueueRunning Event</summary>
 /// <param name="e">A EventQueueRunningEventArgs object containing
 /// the data sent from the simulator</param>
 protected virtual void OnEventQueueRunning(EventQueueRunningEventArgs e)
 {
     EventHandler<EventQueueRunningEventArgs> handler = m_EventQueueRunning;
     if (handler != null)
         handler(this, e);
 }
예제 #5
0
        void Network_EventQueueRunning(object sender, EventQueueRunningEventArgs e)
        {
            if (InvokeRequired)
            {
                BeginInvoke(new MethodInvoker(() => Network_EventQueueRunning(sender, e)));
                return;
            }

            if (TabExists("friends")) return;
            if (e.Simulator == client.Network.CurrentSim)
            {
                client.Self.UpdateAgentLanguage("en", true);
                InitializeOnlineTabs();
            }
        }
예제 #6
0
 private void Network_OnEventQueueRunning(object sender, EventQueueRunningEventArgs e)
 {
     if (e.Simulator == Client.Network.CurrentSim && Client.Settings.SEND_AGENT_APPEARANCE)
     {
         // Update appearance each time we enter a new sim and capabilities have been retrieved
         Client.Appearance.RequestSetAppearance();
     }
 }
예제 #7
0
 public override void Network_OnEventQueueRunning(object sender, EventQueueRunningEventArgs e)
 {
     var simulator = e.Simulator;
     //if (simulator == client.Network.CurrentSim) { new Thread(() => client.Appearance.WearOutfit(new string[] { "Clothing", "Default" })).Start(); }
     if (string.IsNullOrEmpty(simulator.Name))
     {
         //    simulator.Client.Grid.RequestMapItems(simulator.Handle,GridItemType.AgentLocations,GridLayerType.Terrain); 
     }
     // base.Network_OnEventQueueRunning(simulator);
     if (simulator == client.Network.CurrentSim)
     {
         StartupPostLoginQueues();
         // new Thread(() => client.Appearance.SetPreviousAppearance(true)).Start();
     }
     EnsureSimulator(simulator);
 }
예제 #8
0
 private void Network_OnEventQueueRunning(object sender, EventQueueRunningEventArgs e)
 {
     if (e.Simulator == client.Network.CurrentSim)
     {
         GetRoots();
     }
 }
예제 #9
0
 private void Network_OnEventQueueRunning(object sender, EventQueueRunningEventArgs e)
 {
     //Console.WriteLine("Event queue is running for {0}, enabling uploads");
     EventQueueRunning = true;
 }
예제 #10
0
 void Network_OnEventQueueRunning(object sender, EventQueueRunningEventArgs e)
 {
     var simulator = e.Simulator;
     SendNetworkEvent("On-Event-Queue-Running", simulator);
 }
예제 #11
0
 private void Network_OnEventQueueRunning(object sender, EventQueueRunningEventArgs e)
 {
     allow_uploads = true;
 }
예제 #12
0
 void Network_EventQueueRunning(object sender, EventQueueRunningEventArgs e)
 {
     if(e.Simulator.ID==MainClass.client.Network.CurrentSim.ID)
     {
         this.trying=false;
         MainClass.client.Self.Movement.Flags=0;
         MainClass.client.Self.Movement.SendUpdate();
     }
 }
예제 #13
0
 private void Network_OnEventQueueRunning(object sender, EventQueueRunningEventArgs e)
 {
     if (e.Simulator == m_GridClient.Network.CurrentSim)
     {
         m_GridClient.Appearance.SetPreviousAppearance(true);
     }
 }
예제 #14
0
 public virtual void Network_OnEventQueueRunning(object sender, EventQueueRunningEventArgs e) { OnEvent("On-Event-Queue-Running", paramNamesOnEventQueueRunning, paramTypesOnEventQueueRunning, e); }
예제 #15
0
        /// <summary>
        /// Request voice cap when changing regions
        /// </summary>
        void Network_EventQueueRunning(object sender, EventQueueRunningEventArgs e)
        {
            // We only care about the sim we are in.
            if (e.Simulator != Client.Network.CurrentSim)
                return;

            // Did we provision voice login info?
            if (string.IsNullOrEmpty(voiceUser))
            {
                // The startup steps are
                //  0. Get voice account info
                //  1. Start Daemon
                //  2. Create TCP connection
                //  3. Create Connector
                //  4. Account login
                //  5. Create session

                // Get the voice provisioning data
                System.Uri vCap =
                    Client.Network.CurrentSim.Caps.CapabilityURI("ProvisionVoiceAccountRequest");

                // Do we have voice capability?
                if (vCap == null)
                {
                    Logger.Log("Null voice capability after event queue running", Helpers.LogLevel.Warning);
                }
                else
                {
                    RequestVoiceProvision(vCap);
                }

                return;
            }
            else
            {
                // Change voice session for this region.
                ParcelChanged();
            }
        }
예제 #16
0
 private void logged_in(object sender, EventQueueRunningEventArgs e)
 {
     if (ExportCommand.Exporting == null) return;
     Client.Network.EventQueueRunning -= logged_in;
     UUID id = GetAssetUploadsFolder();
     GleanUUIDsFrom(id);
 }
예제 #17
0
        void Network_EventQueueRunning(object sender, EventQueueRunningEventArgs e)
        {
            if(e.Simulator.ID==MainClass.client.Network.CurrentSim.ID)
            {
                if (inventoryloaded == false)
                {
                    inventoryloaded = true;
                    Gtk.Application.Invoke(delegate
                    {
                        inventory.Clear();
                        populate_top_level_inv();
                    });
                }

            }
        }
예제 #18
0
 void Network_EventQueueRunning(object sender, EventQueueRunningEventArgs e)
 {
     if (e.Simulator == Client.Network.CurrentSim && !InitiCOF)
     {
         InitiCOF = true;
         InitCOF();
     }
 }
예제 #19
0
 void Network_EventQueueRunning(object sender, EventQueueRunningEventArgs e)
 {
     Console.WriteLine("Network_EventQueueRunning");
     if (e.Simulator == Client.Network.CurrentSim)
     {
         Client.Appearance.RequestSetAppearance(true);
     }
 }
예제 #20
0
 private void Network_OnEventQueueRunning(object sender, EventQueueRunningEventArgs e)
 {
     Logger.DebugLog("Event queue is running for " + e.Simulator.ToString() + ", enabling uploads", Client);
     EnableUpload();
 }