diff options
author | Teravus Ovares | 2008-05-03 15:39:40 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-05-03 15:39:40 +0000 |
commit | e8acb49fefc0e567510b4058b6571599a0158b62 (patch) | |
tree | d87243f8d596b6df07db190ba30bf2da4d608c18 /OpenSim/Region/Environment/Scenes/SceneEvents.cs | |
parent | * Committing some collision stuffs that I'm working on. (diff) | |
download | opensim-SC-e8acb49fefc0e567510b4058b6571599a0158b62.zip opensim-SC-e8acb49fefc0e567510b4058b6571599a0158b62.tar.gz opensim-SC-e8acb49fefc0e567510b4058b6571599a0158b62.tar.bz2 opensim-SC-e8acb49fefc0e567510b4058b6571599a0158b62.tar.xz |
* For your fragging desire, damage enabled land works, but watch out!, life does not regenerate until you're dead!
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneEvents.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneEvents.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs index 002fc5d..53a8d0f 100644 --- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs +++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs | |||
@@ -151,6 +151,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
151 | 151 | ||
152 | public event NewInventoryItemUploadComplete OnNewInventoryItemUploadComplete; | 152 | public event NewInventoryItemUploadComplete OnNewInventoryItemUploadComplete; |
153 | 153 | ||
154 | public delegate void AvatarKillData(uint KillerLocalID, ScenePresence avatar); | ||
155 | |||
156 | public event AvatarKillData OnAvatarKilled; | ||
157 | |||
154 | /// <summary> | 158 | /// <summary> |
155 | /// RegisterCapsEvent is called by Scene after the Caps object | 159 | /// RegisterCapsEvent is called by Scene after the Caps object |
156 | /// has been instantiated and before it is return to the | 160 | /// has been instantiated and before it is return to the |
@@ -267,6 +271,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
267 | private NewInventoryItemUploadComplete handlerNewInventoryItemUpdateComplete = null; | 271 | private NewInventoryItemUploadComplete handlerNewInventoryItemUpdateComplete = null; |
268 | private LandBuy handlerLandBuy = null; | 272 | private LandBuy handlerLandBuy = null; |
269 | private LandBuy handlerValidateLandBuy = null; | 273 | private LandBuy handlerValidateLandBuy = null; |
274 | private AvatarKillData handlerAvatarKill = null; | ||
270 | 275 | ||
271 | public void TriggerOnScriptChangedEvent(uint localID, uint change) | 276 | public void TriggerOnScriptChangedEvent(uint localID, uint change) |
272 | { | 277 | { |
@@ -574,5 +579,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
574 | handlerScriptNotAtTargetEvent(localID); | 579 | handlerScriptNotAtTargetEvent(localID); |
575 | } | 580 | } |
576 | } | 581 | } |
582 | public void TriggerAvatarKill(uint KillerObjectLocalID, ScenePresence DeadAvatar) | ||
583 | { | ||
584 | handlerAvatarKill = OnAvatarKilled; | ||
585 | if (handlerAvatarKill != null) | ||
586 | { | ||
587 | handlerAvatarKill(KillerObjectLocalID, DeadAvatar); | ||
588 | } | ||
589 | } | ||
577 | } | 590 | } |
578 | } | 591 | } |