Esempio n. 1
0
 protected virtual void OnTeleporting(TeleportingEventArgs e)
 {
     if (Teleporting != null)
     {
         Teleporting(this, e);
     }
 }
Esempio n. 2
0
        public void Teleport(string sim, Vector3 coordinates)
        {
            if (!loggedIn)
            {
                return;
            }
            if (teleporting)
            {
                return;
            }

            TeleportingEventArgs ea = new TeleportingEventArgs(sim, coordinates);

            OnTeleporting(ea);
            if (ea.Cancel)
            {
                return;
            }

            teleporting = true;
            client.Self.Teleport(sim, coordinates);
        }
Esempio n. 3
0
        public void Teleport(string sim, LLVector3 coordinates)
        {
            if (!loggedIn) return;
            if (teleporting) return;

            TeleportingEventArgs ea = new TeleportingEventArgs(sim, coordinates);
            OnTeleporting(ea);
            if (ea.Cancel) return;

            teleporting = true;
            client.Self.Teleport(sim, coordinates);
        }
Esempio n. 4
0
        private void netcom_Teleporting(object sender, TeleportingEventArgs e)
        {
            if (InvokeRequired)
            {
                BeginInvoke(new MethodInvoker(() => netcom_Teleporting(sender, e)));
                return;
            }

            try
            {
                RefreshControls();
            }
            catch
            {
                ;
            }
        }
Esempio n. 5
0
 protected virtual void OnTeleporting(TeleportingEventArgs e)
 {
     if (Teleporting != null) Teleporting(this, e);
 }
Esempio n. 6
0
 private void netcom_Teleporting(object sender, TeleportingEventArgs e)
 {
     RefreshControls();
 }