aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneEvents.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-02-04 10:39:30 +0000
committerAdam Frisby2008-02-04 10:39:30 +0000
commit6fbc64af5e2d179e2235f21645dd717a4066592d (patch)
tree39794023c5c0fe27f75813722f73176b3c61159d /OpenSim/Region/Environment/Scenes/SceneEvents.cs
parent* Lowered maxchunk from 1500 bytes to 1250 bytes to make sure packets fit bel... (diff)
downloadopensim-SC_OLD-6fbc64af5e2d179e2235f21645dd717a4066592d.zip
opensim-SC_OLD-6fbc64af5e2d179e2235f21645dd717a4066592d.tar.gz
opensim-SC_OLD-6fbc64af5e2d179e2235f21645dd717a4066592d.tar.bz2
opensim-SC_OLD-6fbc64af5e2d179e2235f21645dd717a4066592d.tar.xz
* Whole buncha stuff.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneEvents.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneEvents.cs38
1 files changed, 34 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs
index 4e9a258..51d1b32 100644
--- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs
@@ -129,6 +129,31 @@ namespace OpenSim.Region.Environment.Scenes
129 129
130 public event ScriptChangedEvent OnScriptChangedEvent; 130 public event ScriptChangedEvent OnScriptChangedEvent;
131 131
132 public class MoneyTransferArgs : System.EventArgs
133 {
134 public LLUUID sender;
135 public LLUUID reciever;
136
137 // Always false. The SL protocol sucks.
138 public bool authenticated = false;
139
140 public int amount;
141 public int transactiontype;
142 public string description;
143
144 public MoneyTransferArgs(LLUUID asender, LLUUID areciever, int aamount, int atransactiontype, string adescription) {
145 sender = asender;
146 reciever = areciever;
147 amount = aamount;
148 transactiontype = atransactiontype;
149 description = adescription;
150 }
151 }
152
153 public delegate void MoneyTransferEvent(Object sender, MoneyTransferArgs e);
154
155 public event MoneyTransferEvent OnMoneyTransfer;
156
132 public void TriggerOnScriptChangedEvent(uint localID, uint change) 157 public void TriggerOnScriptChangedEvent(uint localID, uint change)
133 { 158 {
134 if (OnScriptChangedEvent != null) 159 if (OnScriptChangedEvent != null)
@@ -191,16 +216,21 @@ namespace OpenSim.Region.Environment.Scenes
191 216
192 public void TriggerParcelPrimCountUpdate() 217 public void TriggerParcelPrimCountUpdate()
193 { 218 {
194 /*
195 * Removed by Adam to prevent some exceptions, temporary.
196 * */
197 if (OnParcelPrimCountUpdate != null) 219 if (OnParcelPrimCountUpdate != null)
198 { 220 {
199 OnParcelPrimCountUpdate(); 221 OnParcelPrimCountUpdate();
222 }
223 }
224
225 public void TriggerMoneyTransfer(Object sender, MoneyTransferArgs e)
226 {
227 if (OnMoneyTransfer != null)
228 {
229 OnMoneyTransfer(sender, e);
200 } 230 }
201
202 } 231 }
203 232
233
204 public void TriggerParcelPrimCountAdd(SceneObjectGroup obj) 234 public void TriggerParcelPrimCountAdd(SceneObjectGroup obj)
205 { 235 {
206 if (OnParcelPrimCountAdd != null) 236 if (OnParcelPrimCountAdd != null)