Completing the item sale series, this one implements sell contents.

All item sale modes are now complete.
0.6.0-stable
Melanie Thielker 2008-08-24 16:41:23 +00:00
parent d190f1d2dc
commit a7a385937e
2 changed files with 18 additions and 0 deletions

View File

@ -4036,6 +4036,14 @@ namespace OpenSim.Region.Environment.Scenes
remoteClient.SendInventoryItemCreateUpdate(item); remoteClient.SendInventoryItemCreateUpdate(item);
} }
break; break;
case 3: // Sell contents
List<LLUUID> invList = part.GetInventoryList();
if (invList.Count > 0)
MoveTaskInventoryItems(remoteClient.AgentId, part.Name,
part, invList);
break;
} }
} }
} }

View File

@ -743,5 +743,15 @@ namespace OpenSim.Region.Environment.Scenes
} }
return false; return false;
} }
public List<LLUUID> GetInventoryList()
{
List<LLUUID> ret = new List<LLUUID>();
foreach (TaskInventoryItem item in m_taskInventory.Values)
ret.Add(item.ItemID);
return ret;
}
} }
} }