mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
* Add direct stream loading and saving methods to the archive module.
* The async stream method does not yet signal completion to interested calling code
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
using System.IO;
|
||||
|
||||
namespace OpenSim.Region.Environment.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
@@ -38,10 +40,27 @@ namespace OpenSim.Region.Environment.Interfaces
|
||||
/// <param name="savePath"></param>
|
||||
void ArchiveRegion(string savePath);
|
||||
|
||||
/// <summary>
|
||||
/// Archive the region to a stream.
|
||||
/// </summary>
|
||||
///
|
||||
/// This may be a little problematic to use right now since saves happen asynchronously and there is not yet
|
||||
/// a mechanism to signal completion to the caller (possibly other than continually checking whether the
|
||||
/// stream has any data in it). TODO: Address this.
|
||||
///
|
||||
/// <param name="saveStream"></param>
|
||||
void ArchiveRegion(Stream saveStream);
|
||||
|
||||
/// <summary>
|
||||
/// Dearchive the given region archive into the scene
|
||||
/// </summary>
|
||||
/// <param name="loadPath"></param>
|
||||
void DearchiveRegion(string loadPath);
|
||||
|
||||
/// <summary>
|
||||
/// Dearchive a region from a stream
|
||||
/// </summary>
|
||||
/// <param name="loadStream"></param>
|
||||
void DearchiveRegion(Stream loadStream);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user