diff options
author | MW | 2007-05-21 16:06:58 +0000 |
---|---|---|
committer | MW | 2007-05-21 16:06:58 +0000 |
commit | fe46b045f75dec5ecdd0a29273c70df3e6ea540e (patch) | |
tree | 554c0fb47e513fc6a89f496d99b7b67de24edde7 /OpenSim.RegionServer/Assets | |
parent | Increased version number to 0.2! ZOMG! (diff) | |
download | opensim-SC_OLD-fe46b045f75dec5ecdd0a29273c70df3e6ea540e.zip opensim-SC_OLD-fe46b045f75dec5ecdd0a29273c70df3e6ea540e.tar.gz opensim-SC_OLD-fe46b045f75dec5ecdd0a29273c70df3e6ea540e.tar.bz2 opensim-SC_OLD-fe46b045f75dec5ecdd0a29273c70df3e6ea540e.tar.xz |
Start of a redesign of SimClient (now renamed ClientView)/World/Avatar/Prim , switching to a event based system (World/Avatar register as event handlers). It is possible that I've broke something with this commit but it doesn't matter as I'll just hide and no one will find me.
Diffstat (limited to 'OpenSim.RegionServer/Assets')
-rw-r--r-- | OpenSim.RegionServer/Assets/AssetCache.cs | 6 | ||||
-rw-r--r-- | OpenSim.RegionServer/Assets/InventoryCache.cs | 20 |
2 files changed, 13 insertions, 13 deletions
diff --git a/OpenSim.RegionServer/Assets/AssetCache.cs b/OpenSim.RegionServer/Assets/AssetCache.cs index e8bf292..ccebb24 100644 --- a/OpenSim.RegionServer/Assets/AssetCache.cs +++ b/OpenSim.RegionServer/Assets/AssetCache.cs | |||
@@ -324,7 +324,7 @@ namespace OpenSim.Assets | |||
324 | /// </summary> | 324 | /// </summary> |
325 | /// <param name="userInfo"></param> | 325 | /// <param name="userInfo"></param> |
326 | /// <param name="transferRequest"></param> | 326 | /// <param name="transferRequest"></param> |
327 | public void AddAssetRequest(SimClient userInfo, TransferRequestPacket transferRequest) | 327 | public void AddAssetRequest(ClientView userInfo, TransferRequestPacket transferRequest) |
328 | { | 328 | { |
329 | LLUUID requestID = new LLUUID(transferRequest.TransferInfo.Params, 0); | 329 | LLUUID requestID = new LLUUID(transferRequest.TransferInfo.Params, 0); |
330 | //check to see if asset is in local cache, if not we need to request it from asset server. | 330 | //check to see if asset is in local cache, if not we need to request it from asset server. |
@@ -464,7 +464,7 @@ namespace OpenSim.Assets | |||
464 | /// </summary> | 464 | /// </summary> |
465 | /// <param name="userInfo"></param> | 465 | /// <param name="userInfo"></param> |
466 | /// <param name="imageID"></param> | 466 | /// <param name="imageID"></param> |
467 | public void AddTextureRequest(SimClient userInfo, LLUUID imageID) | 467 | public void AddTextureRequest(ClientView userInfo, LLUUID imageID) |
468 | { | 468 | { |
469 | //check to see if texture is in local cache, if not request from asset server | 469 | //check to see if texture is in local cache, if not request from asset server |
470 | if (!this.Textures.ContainsKey(imageID)) | 470 | if (!this.Textures.ContainsKey(imageID)) |
@@ -517,7 +517,7 @@ namespace OpenSim.Assets | |||
517 | 517 | ||
518 | public class AssetRequest | 518 | public class AssetRequest |
519 | { | 519 | { |
520 | public SimClient RequestUser; | 520 | public ClientView RequestUser; |
521 | public LLUUID RequestAssetID; | 521 | public LLUUID RequestAssetID; |
522 | public AssetInfo AssetInf; | 522 | public AssetInfo AssetInf; |
523 | public TextureImage ImageInfo; | 523 | public TextureImage ImageInfo; |
diff --git a/OpenSim.RegionServer/Assets/InventoryCache.cs b/OpenSim.RegionServer/Assets/InventoryCache.cs index 136ae53..64a7a32 100644 --- a/OpenSim.RegionServer/Assets/InventoryCache.cs +++ b/OpenSim.RegionServer/Assets/InventoryCache.cs | |||
@@ -94,12 +94,12 @@ namespace OpenSim.Assets | |||
94 | } | 94 | } |
95 | } | 95 | } |
96 | 96 | ||
97 | public bool CreateNewInventoryFolder(SimClient remoteClient, LLUUID folderID) | 97 | public bool CreateNewInventoryFolder(ClientView remoteClient, LLUUID folderID) |
98 | { | 98 | { |
99 | return this.CreateNewInventoryFolder(remoteClient, folderID, 0); | 99 | return this.CreateNewInventoryFolder(remoteClient, folderID, 0); |
100 | } | 100 | } |
101 | 101 | ||
102 | public bool CreateNewInventoryFolder(SimClient remoteClient, LLUUID folderID, ushort type) | 102 | public bool CreateNewInventoryFolder(ClientView remoteClient, LLUUID folderID, ushort type) |
103 | { | 103 | { |
104 | bool res = false; | 104 | bool res = false; |
105 | if (folderID != LLUUID.Zero) //don't create a folder with a zero id | 105 | if (folderID != LLUUID.Zero) //don't create a folder with a zero id |
@@ -112,7 +112,7 @@ namespace OpenSim.Assets | |||
112 | return res; | 112 | return res; |
113 | } | 113 | } |
114 | 114 | ||
115 | public bool CreateNewInventoryFolder(SimClient remoteClient, LLUUID folderID, ushort type, string folderName, LLUUID parent) | 115 | public bool CreateNewInventoryFolder(ClientView remoteClient, LLUUID folderID, ushort type, string folderName, LLUUID parent) |
116 | { | 116 | { |
117 | bool res = false; | 117 | bool res = false; |
118 | if (folderID != LLUUID.Zero) //don't create a folder with a zero id | 118 | if (folderID != LLUUID.Zero) //don't create a folder with a zero id |
@@ -125,7 +125,7 @@ namespace OpenSim.Assets | |||
125 | return res; | 125 | return res; |
126 | } | 126 | } |
127 | 127 | ||
128 | public LLUUID AddNewInventoryItem(SimClient remoteClient, LLUUID folderID, OpenSim.Framework.Types.AssetBase asset) | 128 | public LLUUID AddNewInventoryItem(ClientView remoteClient, LLUUID folderID, OpenSim.Framework.Types.AssetBase asset) |
129 | { | 129 | { |
130 | LLUUID newItem = null; | 130 | LLUUID newItem = null; |
131 | if (this._agentsInventory.ContainsKey(remoteClient.AgentID)) | 131 | if (this._agentsInventory.ContainsKey(remoteClient.AgentID)) |
@@ -140,7 +140,7 @@ namespace OpenSim.Assets | |||
140 | 140 | ||
141 | return newItem; | 141 | return newItem; |
142 | } | 142 | } |
143 | public bool DeleteInventoryItem(SimClient remoteClient, LLUUID itemID) | 143 | public bool DeleteInventoryItem(ClientView remoteClient, LLUUID itemID) |
144 | { | 144 | { |
145 | bool res = false; | 145 | bool res = false; |
146 | if (this._agentsInventory.ContainsKey(remoteClient.AgentID)) | 146 | if (this._agentsInventory.ContainsKey(remoteClient.AgentID)) |
@@ -161,7 +161,7 @@ namespace OpenSim.Assets | |||
161 | return res; | 161 | return res; |
162 | } | 162 | } |
163 | 163 | ||
164 | public bool UpdateInventoryItemAsset(SimClient remoteClient, LLUUID itemID, OpenSim.Framework.Types.AssetBase asset) | 164 | public bool UpdateInventoryItemAsset(ClientView remoteClient, LLUUID itemID, OpenSim.Framework.Types.AssetBase asset) |
165 | { | 165 | { |
166 | if (this._agentsInventory.ContainsKey(remoteClient.AgentID)) | 166 | if (this._agentsInventory.ContainsKey(remoteClient.AgentID)) |
167 | { | 167 | { |
@@ -177,7 +177,7 @@ namespace OpenSim.Assets | |||
177 | return false; | 177 | return false; |
178 | } | 178 | } |
179 | 179 | ||
180 | public bool UpdateInventoryItemDetails(SimClient remoteClient, LLUUID itemID, UpdateInventoryItemPacket.InventoryDataBlock packet) | 180 | public bool UpdateInventoryItemDetails(ClientView remoteClient, LLUUID itemID, UpdateInventoryItemPacket.InventoryDataBlock packet) |
181 | { | 181 | { |
182 | if (this._agentsInventory.ContainsKey(remoteClient.AgentID)) | 182 | if (this._agentsInventory.ContainsKey(remoteClient.AgentID)) |
183 | { | 183 | { |
@@ -193,7 +193,7 @@ namespace OpenSim.Assets | |||
193 | return false; | 193 | return false; |
194 | } | 194 | } |
195 | 195 | ||
196 | public void FetchInventoryDescendents(SimClient userInfo, FetchInventoryDescendentsPacket FetchDescend) | 196 | public void FetchInventoryDescendents(ClientView userInfo, FetchInventoryDescendentsPacket FetchDescend) |
197 | { | 197 | { |
198 | if (this._agentsInventory.ContainsKey(userInfo.AgentID)) | 198 | if (this._agentsInventory.ContainsKey(userInfo.AgentID)) |
199 | { | 199 | { |
@@ -250,7 +250,7 @@ namespace OpenSim.Assets | |||
250 | } | 250 | } |
251 | } | 251 | } |
252 | 252 | ||
253 | public void FetchInventory(SimClient userInfo, FetchInventoryPacket FetchItems) | 253 | public void FetchInventory(ClientView userInfo, FetchInventoryPacket FetchItems) |
254 | { | 254 | { |
255 | if (this._agentsInventory.ContainsKey(userInfo.AgentID)) | 255 | if (this._agentsInventory.ContainsKey(userInfo.AgentID)) |
256 | { | 256 | { |
@@ -291,7 +291,7 @@ namespace OpenSim.Assets | |||
291 | } | 291 | } |
292 | } | 292 | } |
293 | 293 | ||
294 | private void SendItemUpdateCreate(SimClient remoteClient, InventoryItem Item) | 294 | private void SendItemUpdateCreate(ClientView remoteClient, InventoryItem Item) |
295 | { | 295 | { |
296 | 296 | ||
297 | UpdateCreateInventoryItemPacket InventoryReply = new UpdateCreateInventoryItemPacket(); | 297 | UpdateCreateInventoryItemPacket InventoryReply = new UpdateCreateInventoryItemPacket(); |