Can now Rez and DeRez objects (take to and from inventory).

Very much a work in progress and likely to be a number of bugs.
This commit is contained in:
MW
2007-03-31 15:54:16 +00:00
parent b72edaa109
commit af93263a3b
8 changed files with 420 additions and 37 deletions

View File

@@ -140,6 +140,26 @@ namespace OpenSim.Assets
return newItem;
}
public bool DeleteInventoryItem(SimClient remoteClient, LLUUID itemID)
{
bool res = false;
if (this._agentsInventory.ContainsKey(remoteClient.AgentID))
{
res = this._agentsInventory[remoteClient.AgentID].DeleteFromInventory(itemID);
if (res)
{
RemoveInventoryItemPacket remove = new RemoveInventoryItemPacket();
remove.AgentData.AgentID = remoteClient.AgentID;
remove.AgentData.SessionID = remoteClient.SessionID;
remove.InventoryData = new RemoveInventoryItemPacket.InventoryDataBlock[1];
remove.InventoryData[0] = new RemoveInventoryItemPacket.InventoryDataBlock();
remove.InventoryData[0].ItemID = itemID;
remoteClient.OutPacket(remove);
}
}
return res;
}
public bool UpdateInventoryItemAsset(SimClient remoteClient, LLUUID itemID, OpenSim.Framework.Assets.AssetBase asset)
{