示例#1
0
 public void Autopilot(UUID agentID, Scene scene, Vector3 pos)
 {
     lock (m_avatars)
     {
         if (m_avatars.ContainsKey(agentID))
         {
             ScenePresence sp;
             scene.TryGetAvatar(agentID, out sp);
             sp.DoAutoPilot(0, pos, m_avatars[agentID]);
         }
     }
 }
示例#2
0
 private void EventManager_OnClientClosed(UUID clientID, Scene scene)
 {
     //Save the cache to the file for the client
     ScenePresence sp;
     scene.TryGetAvatar(clientID, out sp);
     //This is shared, so all get saved into one file
     if (sp != null && !sp.IsChildAgent)
         SaveToFileForClient(clientID);
     //Remove the client's cache
     lock (ObjectCacheAgents)
     {
         ObjectCacheAgents.Remove(clientID);
     }
 }