From 7ced8d136aa1085540829e276f6993459c608a3c Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Mon, 17 Nov 2008 19:42:21 +0000 Subject: Add a few comments --- .../Avatar/Currency/SampleMoney/SampleMoneyModule.cs | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs index a465cf8..f87e2dd 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs @@ -183,6 +183,9 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney } } + // Please do not refactor these to be just one method + // Existing implementations need the distinction + // public void ApplyUploadCharge(UUID agentID) { } @@ -1512,13 +1515,9 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney } } - public bool AmountCovered(IClientAPI client, int amount) - { - if (GetBalance(client) < amount) - return false; - return true; - } - + // Please do not refactor these to be just one method + // Existing implementations need the distinction + // public bool UploadCovered(IClientAPI client) { return AmountCovered(client, PriceUpload); @@ -1529,6 +1528,13 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney return AmountCovered(client, PriceGroupCreate); } + public bool AmountCovered(IClientAPI client, int amount) + { + if (GetBalance(client) < amount) + return false; + return true; + } + #endregion public void ObjectBuy(IClientAPI remoteClient, UUID agentID, -- cgit v1.1