You want large textures, you shall have! - Xfer system now working for large asset uploads

Fixed the VS solution file.
Now forwars ViewerEffect messages onto the other clients
Renamed OpenSim.Framework/Inventory.cs to OpenSim.Framework/AgentInventory.cs
This commit is contained in:
MW
2007-03-25 17:34:58 +00:00
parent 2fc543e0ab
commit 40af8c2561
11 changed files with 511 additions and 236 deletions

View File

@@ -65,14 +65,20 @@ namespace OpenSim.Assets
}
}
public bool CreateNewInventoryFolder(SimClient remoteClient, LLUUID folderID)
{
return this.CreateNewInventoryFolder(remoteClient, folderID, 0);
}
public bool CreateNewInventoryFolder(SimClient remoteClient, LLUUID folderID, ushort type)
{
bool res = false;
if (folderID != LLUUID.Zero) //don't create a folder with a zero id
{
if (this._agentsInventory.ContainsKey(remoteClient.AgentID))
{
res = this._agentsInventory[remoteClient.AgentID].CreateNewFolder(folderID);
res = this._agentsInventory[remoteClient.AgentID].CreateNewFolder(folderID, type);
}
}
return res;
@@ -94,6 +100,22 @@ namespace OpenSim.Assets
return newItem;
}
public bool UpdateInventoryItem(SimClient remoteClient, LLUUID itemID, OpenSim.Framework.Assets.AssetBase asset)
{
if (this._agentsInventory.ContainsKey(remoteClient.AgentID))
{
bool res = _agentsInventory[remoteClient.AgentID].UpdateItem(itemID, asset);
if (res)
{
InventoryItem Item = this._agentsInventory[remoteClient.AgentID].InventoryItems[itemID];
this.SendItemUpdateCreate(remoteClient, Item);
}
return res;
}
return false;
}
public void FetchInventoryDescendents(SimClient userInfo, FetchInventoryDescendentsPacket FetchDescend)
{
if (this._agentsInventory.ContainsKey(userInfo.AgentID))
@@ -190,6 +212,7 @@ namespace OpenSim.Assets
}
}
}
private void SendItemUpdateCreate(SimClient remoteClient, InventoryItem Item)
{
@@ -223,7 +246,7 @@ namespace OpenSim.Assets
}
}
public class UserServerRequest
{