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

            TeleportingEventArgs ea = new TeleportingEventArgs(sim, coordinates);

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

            IsTeleporting = true;
            client.Self.Teleport(sim, coordinates);
        }
Ejemplo n.º 3
0
 protected virtual void OnTeleporting(TeleportingEventArgs e)
 {
     if (Teleporting != null) Teleporting(this, e);
 }
Ejemplo n.º 4
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);
        }
 protected virtual void OnTeleporting(TeleportingEventArgs e)
 {
     Teleporting?.Invoke(this, e);
 }
Ejemplo n.º 6
0
 private void netcom_Teleporting(object sender, TeleportingEventArgs e)
 {
     RefreshControls();
 }