aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneEvents.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-04-14 17:13:38 +0000
committerTeravus Ovares2008-04-14 17:13:38 +0000
commite21886eea0a4d2782a74bb1f974b2e1056fea055 (patch)
tree33512912e98ad07ab04f3370fd48d1d0ed307a66 /OpenSim/Region/Environment/Scenes/SceneEvents.cs
parent* Get Util.GetHostFromDNS to tell us the dns address it was trying to resolve... (diff)
downloadopensim-SC_OLD-e21886eea0a4d2782a74bb1f974b2e1056fea055.zip
opensim-SC_OLD-e21886eea0a4d2782a74bb1f974b2e1056fea055.tar.gz
opensim-SC_OLD-e21886eea0a4d2782a74bb1f974b2e1056fea055.tar.bz2
opensim-SC_OLD-e21886eea0a4d2782a74bb1f974b2e1056fea055.tar.xz
* Fixed a few warnings.
* Added license info to a few files it was missing from. * Fleshed out the landbuy interfaces * If you add '-helperuri http://127.0.0.1:9000/' to your list of parameters you tell the client to use when you start it up you can transfer ownership of parcels now in standalone. Structured gridmode requires a lot more work, see the documentation in the example money module. The example money module is not secure especially in standalone mode.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneEvents.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneEvents.cs60
1 files changed, 59 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs
index 02c9f3f..67edf6b 100644
--- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs
@@ -176,10 +176,50 @@ namespace OpenSim.Region.Environment.Scenes
176 } 176 }
177 } 177 }
178 178
179 public class LandBuyArgs : System.EventArgs
180 {
181 public LLUUID agentId = LLUUID.Zero;
182
183 public LLUUID groupId = LLUUID.Zero;
184
185 public LLUUID parcelOwnerID = LLUUID.Zero;
186
187 public bool final = false;
188 public bool groupOwned = false;
189 public bool removeContribution = false;
190 public int parcelLocalID = 0;
191 public int parcelArea = 0;
192 public int parcelPrice = 0;
193 public bool authenticated = false;
194 public bool landValidated = false;
195 public bool economyValidated = false;
196 public int transactionID = 0;
197 public int amountDebited = 0;
198
199
200 public LandBuyArgs(LLUUID pagentId, LLUUID pgroupId, bool pfinal, bool pgroupOwned,
201 bool premoveContribution, int pparcelLocalID, int pparcelArea, int pparcelPrice,
202 bool pauthenticated)
203 {
204 agentId = pagentId;
205 groupId = pgroupId;
206 final = pfinal;
207 groupOwned = pgroupOwned;
208 removeContribution = premoveContribution;
209 parcelLocalID = pparcelLocalID;
210 parcelArea = pparcelArea;
211 parcelPrice = pparcelPrice;
212 authenticated = pauthenticated;
213 }
214 }
215
179 public delegate void MoneyTransferEvent(Object sender, MoneyTransferArgs e); 216 public delegate void MoneyTransferEvent(Object sender, MoneyTransferArgs e);
180 217
181 public event MoneyTransferEvent OnMoneyTransfer; 218 public delegate void LandBuy(Object sender, LandBuyArgs e);
182 219
220 public event MoneyTransferEvent OnMoneyTransfer;
221 public event LandBuy OnLandBuy;
222 public event LandBuy OnValidatedLandBuy;
183 223
184 /* Designated Event Deletage Instances */ 224 /* Designated Event Deletage Instances */
185 225
@@ -212,6 +252,8 @@ namespace OpenSim.Region.Environment.Scenes
212 private RegisterCapsEvent handlerRegisterCaps = null; // OnRegisterCaps; 252 private RegisterCapsEvent handlerRegisterCaps = null; // OnRegisterCaps;
213 private DeregisterCapsEvent handlerDeregisterCaps = null; // OnDeregisterCaps; 253 private DeregisterCapsEvent handlerDeregisterCaps = null; // OnDeregisterCaps;
214 private NewInventoryItemUploadComplete handlerNewInventoryItemUpdateComplete = null; 254 private NewInventoryItemUploadComplete handlerNewInventoryItemUpdateComplete = null;
255 private LandBuy handlerLandBuy = null;
256 private LandBuy handlerValidatedLandBuy = null;
215 257
216 public void TriggerOnScriptChangedEvent(uint localID, uint change) 258 public void TriggerOnScriptChangedEvent(uint localID, uint change)
217 { 259 {
@@ -476,5 +518,21 @@ namespace OpenSim.Region.Environment.Scenes
476 handlerNewInventoryItemUpdateComplete(agentID, AssetID, AssetName, userlevel); 518 handlerNewInventoryItemUpdateComplete(agentID, AssetID, AssetName, userlevel);
477 } 519 }
478 } 520 }
521 public void TriggerLandBuy (Object sender, LandBuyArgs e)
522 {
523 handlerLandBuy = OnLandBuy;
524 if (handlerLandBuy != null)
525 {
526 handlerLandBuy(sender, e);
527 }
528 }
529 public void TriggerValidatedLandBuy(Object sender, LandBuyArgs e)
530 {
531 handlerValidatedLandBuy = OnValidatedLandBuy;
532 if (handlerValidatedLandBuy != null)
533 {
534 handlerValidatedLandBuy(sender, e);
535 }
536 }
479 } 537 }
480} 538}