* 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:
Teravus Ovares
2008-11-10 23:56:58 +00:00
parent 28caaf850c
commit d145700115
6 changed files with 76 additions and 6 deletions

View File

@@ -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>