Examples of SimDisconnectedEventArgs


Examples of com.ngt.jopenmetaverse.shared.sim.events.nm.SimDisconnectedEventArgs

      simulator.Disconnect(sendCloseCircuit);

      // Fire the SimDisconnected event if a handler is registered
      if (OnSimDisconnected != null)
      {
        OnSimDisconnected.raiseEvent(new SimDisconnectedEventArgs(simulator, DisconnectType.NetworkTimeout));
      }

      synchronized (Simulators) {Simulators.remove(simulator);}

      if (Simulators.size() == 0) Shutdown(DisconnectType.SimShutdown);
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.sim.events.nm.SimDisconnectedEventArgs

          Simulators.get(i).Disconnect(sendCloseCircuit);

          // Fire the SimDisconnected event if a handler is registered
          if (OnSimDisconnected != null)
          {
            OnSimDisconnected.raiseEvent(new SimDisconnectedEventArgs(Simulators.get(i), type));
          }
        }
      }

      Simulators.clear();
    }

    if (getCurrentSim() != null)
    {
      // Kill the connection to the curent simulator
      getCurrentSim().Disconnect(sendCloseCircuit);

      // Fire the SimDisconnected event if a handler is registered
      if (OnSimDisconnected != null)
      {
        OnSimDisconnected.raiseEvent(new SimDisconnectedEventArgs(getCurrentSim(), type));
      }
    }

    // Clear out all of the packets that never had time to process
    //        PacketInbox.Close();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.