Exemple #1
0
 public void Initialise(IScene scene, IConfigSource source, ISimulationBase openSimBase)
 {
     if (MainConsole.Instance != null && m_backup.Count == 0)//Only add them once
     {
         MainConsole.Instance.Commands.AddCommand("backup", "backup", "Persist objects to the database now, if [all], will force the persistence of all prims", RunCommand);
         MainConsole.Instance.Commands.AddCommand("disable backup", "disable backup", "Disables persistance until reenabled", DisableBackup);
         MainConsole.Instance.Commands.AddCommand("enable backup", "disable backup", "Enables persistance after 'disable persistance' has been run", EnableBackup);
     }
     //Set up the backup for the scene
     m_backup[scene] = new InternalSceneBackup(scene);
 }
Exemple #2
0
 public void Initialise(IScene scene, IConfigSource source, ISimulationBase openSimBase)
 {
     if (MainConsole.Instance != null && m_backup.Count == 0)//Only add them once
     {
         MainConsole.Instance.Commands.AddCommand ("backup", "backup", "Persist objects to the database now, if [all], will force the persistence of all prims", RunCommand);
         MainConsole.Instance.Commands.AddCommand ("disable backup", "disable backup", "Disables persistance until reenabled", DisableBackup);
         MainConsole.Instance.Commands.AddCommand ("enable backup", "disable backup", "Enables persistance after 'disable persistance' has been run", EnableBackup);
     }
     //Set up the backup for the scene
     m_backup[scene] = new InternalSceneBackup(scene);
 }
Exemple #3
0
        public void Initialise(Scene scene, IConfigSource source, ISimulationBase openSimBase)
        {
            MainConsole.Instance.Commands.AddCommand("region", false, "backup", "backup [all]", "Persist objects to the database now, if [all], will force the persistence of all prims", RunCommand);
            //Set up the backup for the scene
            m_backup[scene] = new InternalSceneBackup(scene);

            IConfig persistanceConfig = source.Configs["Persistance"];
            if (persistanceConfig != null)
            {
                m_dontPersistBefore =
                    persistanceConfig.GetLong("MinimumTimeBeforePersistenceConsidered", m_dontPersistBefore);

                m_persistAfter =
                    persistanceConfig.GetLong("MaximumTimeBeforePersistenceConsidered", m_persistAfter);
            }
        }
Exemple #4
0
        public void Initialise(Scene scene, IConfigSource source, ISimulationBase openSimBase)
        {
            MainConsole.Instance.Commands.AddCommand("region", false, "backup", "backup [all]", "Persist objects to the database now, if [all], will force the persistence of all prims", RunCommand);
            //Set up the backup for the scene
            m_backup[scene] = new InternalSceneBackup(scene);

            IConfig persistanceConfig = source.Configs["Persistance"];

            if (persistanceConfig != null)
            {
                m_dontPersistBefore =
                    persistanceConfig.GetLong("MinimumTimeBeforePersistenceConsidered", m_dontPersistBefore);

                m_persistAfter =
                    persistanceConfig.GetLong("MaximumTimeBeforePersistenceConsidered", m_persistAfter);
            }
        }
Exemple #5
0
 public void Initialise(IScene scene, IConfigSource source, ISimulationBase openSimBase)
 {
     if (MainConsole.Instance != null && m_backup.Count == 0) //Only add them once
     {
         MainConsole.Instance.Commands.AddCommand("edit scale", "edit scale <name> <X> <Y> <Z>",
                                                  "Change the scale of a named prim", EditScale, true, false);
         MainConsole.Instance.Commands.AddCommand("offset region prims", "offset region prims <X> <Y> <Z>",
                                                  "Offset all prims by the same amount", OffsetPrims, true, false);
         MainConsole.Instance.Commands.AddCommand("backup", "backup",
                                                  "Persist objects to the database now, if [all], will force the persistence of all prims",
                                                  RunCommand, true, false);
         MainConsole.Instance.Commands.AddCommand("disable backup", "disable backup",
                                                  "Disables persistance until reenabled", DisableBackup, true, false);
         MainConsole.Instance.Commands.AddCommand("enable backup", "disable backup",
                                                  "Enables persistance after 'disable persistance' has been run",
                                                  EnableBackup, true, false);
     }
     //Set up the backup for the scene
     m_backup[scene] = new InternalSceneBackup(scene);
 }
Exemple #6
0
 public void Initialise(IScene scene, IConfigSource source, ISimulationBase openSimBase)
 {
     if (MainConsole.Instance != null && m_backup.Count == 0) //Only add them once
     {
         MainConsole.Instance.Commands.AddCommand("edit scale", "edit scale <name> <X> <Y> <Z>",
                                                  "Change the scale of a named prim", EditScale);
         MainConsole.Instance.Commands.AddCommand("offset region prims", "offset region prims <X> <Y> <Z>",
                                                  "Offset all prims by the same amount", OffsetPrims);
         MainConsole.Instance.Commands.AddCommand("backup", "backup",
                                                  "Persist objects to the database now, if [all], will force the persistence of all prims",
                                                  RunCommand);
         MainConsole.Instance.Commands.AddCommand("disable backup", "disable backup",
                                                  "Disables persistance until reenabled", DisableBackup);
         MainConsole.Instance.Commands.AddCommand("enable backup", "disable backup",
                                                  "Enables persistance after 'disable persistance' has been run",
                                                  EnableBackup);
     }
     //Set up the backup for the scene
     m_backup[scene] = new InternalSceneBackup(scene);
 }
Exemple #7
0
        public void Initialise(IScene scene, IConfigSource source, ISimulationBase openSimBase)
        {
            if (MainConsole.Instance != null && m_backup.Count == 0)//Only add them once
            {
                MainConsole.Instance.Commands.AddCommand ("backup", "backup", "Persist objects to the database now, if [all], will force the persistence of all prims", RunCommand);
                MainConsole.Instance.Commands.AddCommand ("disable backup", "disable backup", "Disables persistance until reenabled", DisableBackup);
                MainConsole.Instance.Commands.AddCommand ("enable backup", "disable backup", "Enables persistance after 'disable persistance' has been run", EnableBackup);
            }
            //Set up the backup for the scene
            m_backup[scene] = new InternalSceneBackup(scene);

            IConfig persistanceConfig = source.Configs["Persistance"];
            if (persistanceConfig != null)
            {
                m_dontPersistBefore =
                    persistanceConfig.GetLong("MinimumTimeBeforePersistenceConsidered", m_dontPersistBefore);

                m_persistAfter =
                    persistanceConfig.GetLong("MaximumTimeBeforePersistenceConsidered", m_persistAfter);
            }
        }
Exemple #8
0
        public void Initialise(IScene scene, IConfigSource source, ISimulationBase openSimBase)
        {
            if (MainConsole.Instance != null && m_backup.Count == 0)//Only add them once
            {
                MainConsole.Instance.Commands.AddCommand("backup", "backup", "Persist objects to the database now, if [all], will force the persistence of all prims", RunCommand);
                MainConsole.Instance.Commands.AddCommand("disable backup", "disable backup", "Disables persistance until reenabled", DisableBackup);
                MainConsole.Instance.Commands.AddCommand("enable backup", "disable backup", "Enables persistance after 'disable persistance' has been run", EnableBackup);
            }
            //Set up the backup for the scene
            m_backup[scene] = new InternalSceneBackup(scene);

            IConfig persistanceConfig = source.Configs["Persistance"];

            if (persistanceConfig != null)
            {
                m_dontPersistBefore =
                    persistanceConfig.GetLong("MinimumTimeBeforePersistenceConsidered", m_dontPersistBefore);

                m_persistAfter =
                    persistanceConfig.GetLong("MaximumTimeBeforePersistenceConsidered", m_persistAfter);
            }
        }