Beispiel #1
0
        /// <summary>
        /// Load an OpenSim archive into the current scene.  This will load both the shapes of the prims and upload
        /// their assets to the asset service.
        /// </summary>
        /// <param name="cmdparams"></param>
        public void LoadArchiveToCurrentScene(string[] cmdparams)
        {
            IRegionArchiverModule archiver = CurrentOrFirstScene.RequestModuleInterface <IRegionArchiverModule>();

            if (archiver != null)
            {
                archiver.HandleLoadOarConsoleCommand(string.Empty, cmdparams);
            }
        }
Beispiel #2
0
 /// <summary>
 ///     Load a whole region from an opensimulator archive.
 /// </summary>
 /// <param name="cmdparams"></param>
 protected void LoadOar(IScene scene, string[] cmdparams)
 {
     try
     {
         IRegionArchiverModule archiver = scene.RequestModuleInterface <IRegionArchiverModule>();
         if (archiver != null)
         {
             archiver.HandleLoadOarConsoleCommand(cmdparams);
         }
     }
     catch (Exception e)
     {
         MainConsole.Instance.Error(e.ToString());
     }
 }
Beispiel #3
0
 /// <summary>
 /// Load a whole region from an opensimulator archive.
 /// </summary>
 /// <param name="cmdparams"></param>
 protected void LoadOar(string module, string[] cmdparams)
 {
     try
     {
         IRegionArchiverModule archiver = CurrentOrFirstScene.RequestModuleInterface <IRegionArchiverModule>();
         if (archiver != null)
         {
             archiver.HandleLoadOarConsoleCommand(string.Empty, cmdparams);
         }
     }
     catch (Exception e)
     {
         m_log.Error(e.ToString());
     }
 }