diff options
author | MW | 2007-08-21 21:03:18 +0000 |
---|---|---|
committer | MW | 2007-08-21 21:03:18 +0000 |
commit | 921ac14e86fab329c3135b24b2a1be83813fce1b (patch) | |
tree | 867f42c3f5b9984b2281df2e6b40f7f56349d297 /OpenSim/Region/ClientStack | |
parent | changed the comment lines from # to ; in opensim.ini. (diff) | |
download | opensim-SC_OLD-921ac14e86fab329c3135b24b2a1be83813fce1b.zip opensim-SC_OLD-921ac14e86fab329c3135b24b2a1be83813fce1b.tar.gz opensim-SC_OLD-921ac14e86fab329c3135b24b2a1be83813fce1b.tar.bz2 opensim-SC_OLD-921ac14e86fab329c3135b24b2a1be83813fce1b.tar.xz |
Added OnRezScript event to Scene.EventManager.Which the script engine should subscribe to. This is triggered whenever a script is moved into a primitive (and includes the localid of the prim and the script text as params) . Currently though the script item isn't deleted from a users inventory, nor does it actually show up in the objects inventory (this will be fixed soon.) So that means that it isn't currently possible to edit a script (or delete it) once it has been added to a primitive.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.API.cs | 1 | ||||
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.API.cs b/OpenSim/Region/ClientStack/ClientView.API.cs index 8729b58..cee18fe 100644 --- a/OpenSim/Region/ClientStack/ClientView.API.cs +++ b/OpenSim/Region/ClientStack/ClientView.API.cs | |||
@@ -91,6 +91,7 @@ namespace OpenSim.Region.ClientStack | |||
91 | public event UDPAssetUploadRequest OnAssetUploadRequest; | 91 | public event UDPAssetUploadRequest OnAssetUploadRequest; |
92 | public event XferReceive OnXferReceive; | 92 | public event XferReceive OnXferReceive; |
93 | public event RequestXfer OnRequestXfer; | 93 | public event RequestXfer OnRequestXfer; |
94 | public event RezScript OnRezScript; | ||
94 | 95 | ||
95 | public event UUIDNameRequest OnNameFromUUIDRequest; | 96 | public event UUIDNameRequest OnNameFromUUIDRequest; |
96 | 97 | ||
diff --git a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs index 592254a..579b824 100644 --- a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs +++ b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | |||
@@ -472,6 +472,11 @@ namespace OpenSim.Region.ClientStack | |||
472 | break; | 472 | break; |
473 | case PacketType.RezScript: | 473 | case PacketType.RezScript: |
474 | //Console.WriteLine(Pack.ToString()); | 474 | //Console.WriteLine(Pack.ToString()); |
475 | RezScriptPacket rezScript = (RezScriptPacket)Pack; | ||
476 | if (OnRezScript != null) | ||
477 | { | ||
478 | OnRezScript(this, rezScript.InventoryBlock.ItemID, rezScript.UpdateBlock.ObjectLocalID); | ||
479 | } | ||
475 | break; | 480 | break; |
476 | case PacketType.MapLayerRequest: | 481 | case PacketType.MapLayerRequest: |
477 | this.RequestMapLayer(); | 482 | this.RequestMapLayer(); |