
Public Member Functions | |
| void | Initialise (IConfigSource source) |
| This is called to initialize the region module. For shared modules, this is called exactly once, after creating the single (shared) instance. For non-shared modules, this is called once on each instance, after the instace for the region has been created. | |
| void | AddRegion (Scene scene) |
| This is called whenever a Scene is added. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, after Initialise has been called. | |
| void | RegionLoaded (Scene scene) |
| This will be called once for every scene loaded. In a shared module this will be multiple times in one instance, while a nonshared module instance will only be called once. This method is called after AddRegion has been called in all modules for that scene, providing an opportunity to request another module's interface, or hook an event from another module. | |
| void | RemoveRegion (Scene scene) |
| This is called whenever a Scene is removed. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, if the scene this instance is associated with is removed. | |
| void | Close () |
| This is the inverse to Initialise. After a Close(), this instance won't be usable anymore. | |
| void | HandleLoadOarConsoleCommand (string module, string[] cmdparams) |
| Load a whole region from an opensimulator archive. | |
| void | HandleSaveOarConsoleCommand (string module, string[] cmdparams) |
| Save a region to a file, including all the assets needed to restore it. | |
| void | ArchiveRegion (string savePath, Dictionary< string, object > options) |
| Archive the region to the given path. | |
| void | ArchiveRegion (string savePath, Guid requestId, Dictionary< string, object > options) |
| Archive the region to the given path. | |
| void | ArchiveRegion (Stream saveStream) |
| void | ArchiveRegion (Stream saveStream, Guid requestId) |
| Archive the region to a stream. | |
| void | ArchiveRegion (Stream saveStream, Guid requestId, Dictionary< string, object > options) |
| Archive the region to a stream. | |
| void | DearchiveRegion (string loadPath) |
| Dearchive the given region archive. This replaces the existing scene. | |
| void | DearchiveRegion (string loadPath, bool merge, bool skipAssets, Guid requestId) |
| Dearchive the given region archive. This replaces the existing scene. | |
| void | DearchiveRegion (Stream loadStream) |
| Dearchive a region from a stream. This replaces the existing scene. | |
| void | DearchiveRegion (Stream loadStream, bool merge, bool skipAssets, Guid requestId) |
| Dearchive a region from a stream. This replaces the existing scene. | |
Protected Attributes | |
| const string | DEFAULT_OAR_BACKUP_FILENAME = "region.oar" |
Properties | |
| string | Name [get] |
| Type | ReplaceableInterface [get] |
| If this returns non-null, it is the type of an interface that this module intends to register. This will cause the loader to defer loading of this module until all other modules have been loaded. If no other module has registered the interface by then, this module will be activated, else it will remain inactive, letting the other module take over. This should return non-null ONLY in modules that are intended to be easily replaceable, e.g. stub implementations that the developer expects to be replaced by third party provided modules. | |
| void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::Initialise | ( | IConfigSource | source | ) | [inline] |
This is called to initialize the region module. For shared modules, this is called exactly once, after creating the single (shared) instance. For non-shared modules, this is called once on each instance, after the instace for the region has been created.
| source | A IConfigSource |
Implements OpenSim::Region::Framework::Interfaces::IRegionModuleBase.
| void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::AddRegion | ( | Scene | scene | ) | [inline] |
This is called whenever a Scene is added. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, after Initialise has been called.
| scene | A Scene |
Implements OpenSim::Region::Framework::Interfaces::IRegionModuleBase.
| void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::RegionLoaded | ( | Scene | scene | ) | [inline] |
This will be called once for every scene loaded. In a shared module this will be multiple times in one instance, while a nonshared module instance will only be called once. This method is called after AddRegion has been called in all modules for that scene, providing an opportunity to request another module's interface, or hook an event from another module.
| scene | A Scene |
Implements OpenSim::Region::Framework::Interfaces::IRegionModuleBase.
| void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::RemoveRegion | ( | Scene | scene | ) | [inline] |
This is called whenever a Scene is removed. For shared modules, this can happen several times. For non-shared modules, this happens exactly once, if the scene this instance is associated with is removed.
| scene | A Scene |
Implements OpenSim::Region::Framework::Interfaces::IRegionModuleBase.
| void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::Close | ( | ) | [inline] |
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore.
Implements OpenSim::Region::Framework::Interfaces::IRegionModuleBase.
| void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::HandleLoadOarConsoleCommand | ( | string | module, | |
| string[] | cmdparams | |||
| ) | [inline] |
Load a whole region from an opensimulator archive.
| cmdparams |
Implements OpenSim::Region::Framework::Interfaces::IRegionArchiverModule.
| void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::HandleSaveOarConsoleCommand | ( | string | module, | |
| string[] | cmdparams | |||
| ) | [inline] |
Save a region to a file, including all the assets needed to restore it.
| cmdparams |
Implements OpenSim::Region::Framework::Interfaces::IRegionArchiverModule.
| void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::ArchiveRegion | ( | string | savePath, | |
| Dictionary< string, object > | options | |||
| ) | [inline] |
Archive the region to the given path.
This method occurs asynchronously. If you want notification of when it has completed then subscribe to the EventManager.OnOarFileSaved event.
| savePath |
Implements OpenSim::Region::Framework::Interfaces::IRegionArchiverModule.
| void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::ArchiveRegion | ( | string | savePath, | |
| Guid | requestId, | |||
| Dictionary< string, object > | options | |||
| ) | [inline] |
Archive the region to the given path.
This method occurs asynchronously. If you want notification of when it has completed then subscribe to the EventManager.OnOarFileSaved event.
| savePath | ||
| requestId | If supplied, this request Id is later returned in the saved event | |
| options | Options for the save |
Implements OpenSim::Region::Framework::Interfaces::IRegionArchiverModule.
| void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::ArchiveRegion | ( | Stream | saveStream | ) | [inline] |
| void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::ArchiveRegion | ( | Stream | saveStream, | |
| Guid | requestId | |||
| ) | [inline] |
Archive the region to a stream.
This method occurs asynchronously. If you want notification of when it has completed then subscribe to the EventManager.OnOarFileSaved event.
| saveStream | ||
| requestId | If supplied, this request Id is later returned in the saved event |
Implements OpenSim::Region::Framework::Interfaces::IRegionArchiverModule.
| void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::ArchiveRegion | ( | Stream | saveStream, | |
| Guid | requestId, | |||
| Dictionary< string, object > | options | |||
| ) | [inline] |
Archive the region to a stream.
This method occurs asynchronously. If you want notification of when it has completed then subscribe to the EventManager.OnOarFileSaved event.
| saveStream | ||
| requestId | If supplied, this request Id is later returned in the saved event | |
| options | Options for the save |
Implements OpenSim::Region::Framework::Interfaces::IRegionArchiverModule.
| void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::DearchiveRegion | ( | string | loadPath | ) | [inline] |
Dearchive the given region archive. This replaces the existing scene.
If you want notification of when it has completed then subscribe to the EventManager.OnOarFileLoaded event.
| loadPath |
Implements OpenSim::Region::Framework::Interfaces::IRegionArchiverModule.
| void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::DearchiveRegion | ( | string | loadPath, | |
| bool | merge, | |||
| bool | skipAssets, | |||
| Guid | requestId | |||
| ) | [inline] |
Dearchive the given region archive. This replaces the existing scene.
If you want notification of when it has completed then subscribe to the EventManager.OnOarFileLoaded event.
| loadPath | ||
| merge | If true, the loaded region merges with the existing one rather than replacing it. Any terrain or region settings in the archive will be ignored. | |
| skipAssets | If true, the archive is loaded without loading any assets contained within it. This is useful if the assets are already known to be present in the grid's asset service. | |
| requestId | If supplied, this request Id is later returned in the saved event |
Implements OpenSim::Region::Framework::Interfaces::IRegionArchiverModule.
| void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::DearchiveRegion | ( | Stream | loadStream | ) | [inline] |
Dearchive a region from a stream. This replaces the existing scene.
If you want notification of when it has completed then subscribe to the EventManager.OnOarFileLoaded event.
| loadStream |
Implements OpenSim::Region::Framework::Interfaces::IRegionArchiverModule.
| void OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::DearchiveRegion | ( | Stream | loadStream, | |
| bool | merge, | |||
| bool | skipAssets, | |||
| Guid | requestId | |||
| ) | [inline] |
Dearchive a region from a stream. This replaces the existing scene.
If you want notification of when it has completed then subscribe to the EventManager.OnOarFileLoaded event.
| loadStream | |||||
| merge | If true, the loaded region merges with the existing one rather than replacing it. Any terrain or region settings in the archive will be ignored. | ||||
| skipAssets | If true, the archive is loaded without loading any assets contained within it. This is useful if the assets are already known to be present in the grid's asset service. </param
|
Implements OpenSim::Region::Framework::Interfaces::IRegionArchiverModule.
const string OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::DEFAULT_OAR_BACKUP_FILENAME = "region.oar" [protected] |
The file used to load and save an opensimulator archive if no filename has been specified
string OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::Name [get] |
The name of the module
Implements OpenSim::Region::Framework::Interfaces::IRegionModuleBase.
Type OpenSim::Region::CoreModules::World::Archiver::ArchiverModule::ReplaceableInterface [get] |
If this returns non-null, it is the type of an interface that this module intends to register. This will cause the loader to defer loading of this module until all other modules have been loaded. If no other module has registered the interface by then, this module will be activated, else it will remain inactive, letting the other module take over. This should return non-null ONLY in modules that are intended to be easily replaceable, e.g. stub implementations that the developer expects to be replaced by third party provided modules.
Implements OpenSim::Region::Framework::Interfaces::IRegionModuleBase.
1.5.6