aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs
diff options
context:
space:
mode:
authorUbitUmarov2017-07-26 19:00:49 +0100
committerUbitUmarov2017-07-26 19:01:11 +0100
commit0bbe7bab7bb60c39b0defeff173287fc66430c26 (patch)
treea62addfa06dad2071c9a097b87620f30528fd646 /OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs
parentadd comments to make that more clear (diff)
downloadopensim-SC-0bbe7bab7bb60c39b0defeff173287fc66430c26.zip
opensim-SC-0bbe7bab7bb60c39b0defeff173287fc66430c26.tar.gz
opensim-SC-0bbe7bab7bb60c39b0defeff173287fc66430c26.tar.bz2
opensim-SC-0bbe7bab7bb60c39b0defeff173287fc66430c26.tar.xz
add new funtion bool MoveMoney(UUID fromUser, UUID toUser, int amount, MoneyTransactionType type, string text). this should be called async allowing time for money module to process it. If returns true, the transation did sucess, so if its use was to pay something, the payed item/service must be provided without fail, otherwise another method is needed so a refund is possible
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs b/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs
index 47edeb9..3666c3f 100644
--- a/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs
+++ b/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs
@@ -844,9 +844,14 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
844 module.BuyObject(remoteClient, categoryID, localID, saleType, salePrice); 844 module.BuyObject(remoteClient, categoryID, localID, saleType, salePrice);
845 } 845 }
846 846
847 public void MoveMoney(UUID fromAgentID, UUID toAgentID, int amount, string text) 847 public void MoveMoney(UUID fromUser, UUID toUser, int amount, string text)
848 { 848 {
849 } 849 }
850
851 public bool MoveMoney(UUID fromUser, UUID toUser, int amount, MoneyTransactionType type, string text)
852 {
853 return true;
854 }
850 } 855 }
851 856
852 public enum TransactionType : int 857 public enum TransactionType : int