diff options
author | Teravus Ovares | 2008-11-10 23:56:58 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-11-10 23:56:58 +0000 |
commit | d1457001150d7af6faf2a11e59b895320c6e3e9b (patch) | |
tree | e330afa46bdbafb24ec7bd8893a9c582c6718f68 /OpenSim/Framework/IClientAPI.cs | |
parent | fix README.txt to be 0.6 (diff) | |
download | opensim-SC_OLD-d1457001150d7af6faf2a11e59b895320c6e3e9b.zip opensim-SC_OLD-d1457001150d7af6faf2a11e59b895320c6e3e9b.tar.gz opensim-SC_OLD-d1457001150d7af6faf2a11e59b895320c6e3e9b.tar.bz2 opensim-SC_OLD-d1457001150d7af6faf2a11e59b895320c6e3e9b.tar.xz |
* 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.
Diffstat (limited to 'OpenSim/Framework/IClientAPI.cs')
-rw-r--r-- | OpenSim/Framework/IClientAPI.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs index 7a3931f..2be647f 100644 --- a/OpenSim/Framework/IClientAPI.cs +++ b/OpenSim/Framework/IClientAPI.cs | |||
@@ -340,6 +340,8 @@ namespace OpenSim.Framework | |||
340 | 340 | ||
341 | public delegate void EstateChangeInfo(IClientAPI client, UUID invoice, UUID senderID, UInt32 param1, UInt32 param2); | 341 | public delegate void EstateChangeInfo(IClientAPI client, UUID invoice, UUID senderID, UInt32 param1, UInt32 param2); |
342 | 342 | ||
343 | public delegate void RequestTerrain(IClientAPI remoteClient, string clientFileName); | ||
344 | |||
343 | public delegate void BakeTerrain(IClientAPI remoteClient); | 345 | public delegate void BakeTerrain(IClientAPI remoteClient); |
344 | 346 | ||
345 | public delegate void EstateRestartSimRequest(IClientAPI remoteClient, int secondsTilReboot); | 347 | public delegate void EstateRestartSimRequest(IClientAPI remoteClient, int secondsTilReboot); |
@@ -651,6 +653,8 @@ namespace OpenSim.Framework | |||
651 | event ObjectBuy OnObjectBuy; | 653 | event ObjectBuy OnObjectBuy; |
652 | event BuyObjectInventory OnBuyObjectInventory; | 654 | event BuyObjectInventory OnBuyObjectInventory; |
653 | 655 | ||
656 | event RequestTerrain OnRequestTerrain; | ||
657 | |||
654 | event ObjectIncludeInSearch OnObjectIncludeInSearch; | 658 | event ObjectIncludeInSearch OnObjectIncludeInSearch; |
655 | 659 | ||
656 | event UUIDNameRequest OnTeleportHomeRequest; | 660 | event UUIDNameRequest OnTeleportHomeRequest; |
@@ -906,6 +910,8 @@ namespace OpenSim.Framework | |||
906 | void SendConfirmXfer(ulong xferID, uint PacketID); | 910 | void SendConfirmXfer(ulong xferID, uint PacketID); |
907 | void SendXferRequest(ulong XferID, short AssetType, UUID vFileID, byte FilePath, byte[] FileName); | 911 | void SendXferRequest(ulong XferID, short AssetType, UUID vFileID, byte FilePath, byte[] FileName); |
908 | 912 | ||
913 | void SendInitiateDownload(string simFileName, string clientFileName); | ||
914 | |||
909 | /// <summary> | 915 | /// <summary> |
910 | /// Send the first part of a texture. For sufficiently small textures, this may be the only packet. | 916 | /// Send the first part of a texture. For sufficiently small textures, this may be the only packet. |
911 | /// </summary> | 917 | /// </summary> |