mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
* Providing a way for the rest of the simulator to get at the economy settings through the IMoneyModule interface.
This commit is contained in:
@@ -279,6 +279,27 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
|
||||
scene.SetObjectCapacity(ObjectCapacity);
|
||||
}
|
||||
|
||||
public EconomyData GetEconomyData()
|
||||
{
|
||||
EconomyData edata = new EconomyData();
|
||||
edata.ObjectCapacity = ObjectCapacity;
|
||||
edata.ObjectCount = ObjectCount;
|
||||
edata.PriceEnergyUnit = PriceEnergyUnit;
|
||||
edata.PriceGroupCreate = PriceGroupCreate;
|
||||
edata.PriceObjectClaim = PriceObjectClaim;
|
||||
edata.PriceObjectRent = PriceObjectRent;
|
||||
edata.PriceObjectScaleFactor = PriceObjectScaleFactor;
|
||||
edata.PriceParcelClaim = PriceParcelClaim;
|
||||
edata.PriceParcelClaimFactor = PriceParcelClaimFactor;
|
||||
edata.PriceParcelRent = PriceParcelRent;
|
||||
edata.PricePublicObjectDecay = PricePublicObjectDecay;
|
||||
edata.PricePublicObjectDelete = PricePublicObjectDelete;
|
||||
edata.PriceRentLight = PriceRentLight;
|
||||
edata.PriceUpload = PriceUpload;
|
||||
edata.TeleportMinPrice = TeleportMinPrice;
|
||||
return edata;
|
||||
}
|
||||
|
||||
private void GetClientFunds(IClientAPI client)
|
||||
{
|
||||
// Here we check if we're in grid mode
|
||||
@@ -1580,4 +1601,6 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
|
||||
Gift = 2,
|
||||
Purchase = 3
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user