aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie Thielker2008-11-17 19:42:21 +0000
committerMelanie Thielker2008-11-17 19:42:21 +0000
commit7ced8d136aa1085540829e276f6993459c608a3c (patch)
treedbd8156622941406d5297b45ec2dee530d7147b2
parentChange some comments that have been superseded (diff)
downloadopensim-SC_OLD-7ced8d136aa1085540829e276f6993459c608a3c.zip
opensim-SC_OLD-7ced8d136aa1085540829e276f6993459c608a3c.tar.gz
opensim-SC_OLD-7ced8d136aa1085540829e276f6993459c608a3c.tar.bz2
opensim-SC_OLD-7ced8d136aa1085540829e276f6993459c608a3c.tar.xz
Add a few comments
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs20
1 files changed, 13 insertions, 7 deletions
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
183 } 183 }
184 } 184 }
185 185
186 // Please do not refactor these to be just one method
187 // Existing implementations need the distinction
188 //
186 public void ApplyUploadCharge(UUID agentID) 189 public void ApplyUploadCharge(UUID agentID)
187 { 190 {
188 } 191 }
@@ -1512,13 +1515,9 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
1512 } 1515 }
1513 } 1516 }
1514 1517
1515 public bool AmountCovered(IClientAPI client, int amount) 1518 // Please do not refactor these to be just one method
1516 { 1519 // Existing implementations need the distinction
1517 if (GetBalance(client) < amount) 1520 //
1518 return false;
1519 return true;
1520 }
1521
1522 public bool UploadCovered(IClientAPI client) 1521 public bool UploadCovered(IClientAPI client)
1523 { 1522 {
1524 return AmountCovered(client, PriceUpload); 1523 return AmountCovered(client, PriceUpload);
@@ -1529,6 +1528,13 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
1529 return AmountCovered(client, PriceGroupCreate); 1528 return AmountCovered(client, PriceGroupCreate);
1530 } 1529 }
1531 1530
1531 public bool AmountCovered(IClientAPI client, int amount)
1532 {
1533 if (GetBalance(client) < amount)
1534 return false;
1535 return true;
1536 }
1537
1532 #endregion 1538 #endregion
1533 1539
1534 public void ObjectBuy(IClientAPI remoteClient, UUID agentID, 1540 public void ObjectBuy(IClientAPI remoteClient, UUID agentID,