mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
Clean up IMoneyModule and adjust the other modules to the changes
This commit is contained in:
@@ -108,6 +108,16 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
|
||||
public event ObjectPaid OnObjectPaid;
|
||||
|
||||
public int UploadCharge
|
||||
{
|
||||
get { return 0; }
|
||||
}
|
||||
|
||||
public int GroupCreationCharge
|
||||
{
|
||||
get { return 0; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Startup
|
||||
/// </summary>
|
||||
@@ -188,17 +198,12 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
// Please do not refactor these to be just one method
|
||||
// Existing implementations need the distinction
|
||||
//
|
||||
public void ApplyUploadCharge(UUID agentID)
|
||||
{
|
||||
}
|
||||
|
||||
public void ApplyGroupCreationCharge(UUID agentID)
|
||||
{
|
||||
}
|
||||
|
||||
public void ApplyCharge(UUID agentID, int amount, string text)
|
||||
{
|
||||
}
|
||||
public void ApplyUploadCharge(UUID agentID, int amount, string text)
|
||||
{
|
||||
}
|
||||
|
||||
public bool ObjectGiveMoney(UUID objectID, UUID fromID, UUID toID, int amount)
|
||||
{
|
||||
@@ -769,7 +774,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
//m_log.Info("[FRIEND]: " + avatar.Name + " status:" + (!avatar.IsChildAgent).ToString());
|
||||
}
|
||||
|
||||
public int GetBalance(IClientAPI client)
|
||||
public int GetBalance(UUID agentID)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -777,16 +782,10 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
// Please do not refactor these to be just one method
|
||||
// Existing implementations need the distinction
|
||||
//
|
||||
public bool UploadCovered(IClientAPI client)
|
||||
public bool UploadCovered(IClientAPI client, int amount)
|
||||
{
|
||||
return AmountCovered(client, PriceUpload);
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool GroupCreationCovered(IClientAPI client)
|
||||
{
|
||||
return AmountCovered(client, PriceGroupCreate);
|
||||
}
|
||||
|
||||
public bool AmountCovered(IClientAPI client, int amount)
|
||||
{
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user