Add the option to have variable costing for uploads

This commit is contained in:
Melanie
2012-09-11 17:28:13 +02:00
parent 94a8e5572b
commit bd1d9a214b
2 changed files with 46 additions and 9 deletions

View File

@@ -101,12 +101,12 @@ namespace OpenSim.Region.Framework.Scenes
engine.StartProcessing();
}
public void AddUploadedInventoryItem(UUID agentID, InventoryItemBase item)
public void AddUploadedInventoryItem(UUID agentID, InventoryItemBase item, uint cost)
{
IMoneyModule money = RequestModuleInterface<IMoneyModule>();
if (money != null)
{
money.ApplyUploadCharge(agentID, money.UploadCharge, "Asset upload");
money.ApplyUploadCharge(agentID, (int)cost, "Asset upload");
}
AddInventoryItem(item);