mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 10:46:00 +08:00
* Commit allows downloading of the .raw terrain from the estate tools.
* Implements the SendInitiateDownload method in IClientAPI * Uses the ITerrainModule Interface to write a terrain file to disk then uses a FileStream to read the binary file from the disk and put it in a byte array. and save to the xFer list. * It then tells the client to download the file and the client initiates an Xfer request.
This commit is contained in:
@@ -340,6 +340,8 @@ namespace OpenSim.Framework
|
||||
|
||||
public delegate void EstateChangeInfo(IClientAPI client, UUID invoice, UUID senderID, UInt32 param1, UInt32 param2);
|
||||
|
||||
public delegate void RequestTerrain(IClientAPI remoteClient, string clientFileName);
|
||||
|
||||
public delegate void BakeTerrain(IClientAPI remoteClient);
|
||||
|
||||
public delegate void EstateRestartSimRequest(IClientAPI remoteClient, int secondsTilReboot);
|
||||
@@ -651,6 +653,8 @@ namespace OpenSim.Framework
|
||||
event ObjectBuy OnObjectBuy;
|
||||
event BuyObjectInventory OnBuyObjectInventory;
|
||||
|
||||
event RequestTerrain OnRequestTerrain;
|
||||
|
||||
event ObjectIncludeInSearch OnObjectIncludeInSearch;
|
||||
|
||||
event UUIDNameRequest OnTeleportHomeRequest;
|
||||
@@ -906,6 +910,8 @@ namespace OpenSim.Framework
|
||||
void SendConfirmXfer(ulong xferID, uint PacketID);
|
||||
void SendXferRequest(ulong XferID, short AssetType, UUID vFileID, byte FilePath, byte[] FileName);
|
||||
|
||||
void SendInitiateDownload(string simFileName, string clientFileName);
|
||||
|
||||
/// <summary>
|
||||
/// Send the first part of a texture. For sufficiently small textures, this may be the only packet.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user