From 638fe7a7b5530320c63f83d50e80e2a17a308783 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Wed, 5 Nov 2008 15:15:41 +0000 Subject: Update svn properties, minor formatting cleanup. --- .../Shared/Api/Implementation/OSSL_Api.cs | 34 +++++++++------------- 1 file changed, 14 insertions(+), 20 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index ead88d5..8a967ac 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -945,25 +945,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api } // send a message to to object identified by the given UUID, a script in the object must implement the dataserver function - // the dataserver function is passed the ID of the calling function and a string message - public void osMessageObject(LSL_Key objectUUID,string message) - { - CheckThreatLevel(ThreatLevel.Low,"osMessageObject"); - m_host.AddScriptLPS(1); - - - object[] resobj = new object[] { new LSL_Types.LSLString(m_host.UUID.ToString()),new LSL_Types.LSLString(message) }; - - SceneObjectPart sceneOP = World.GetSceneObjectPart(new UUID(objectUUID)); - - m_ScriptEngine.PostObjectEvent( - sceneOP.LocalId, new EventParams( - "dataserver", resobj, - new DetectParams[0])); - - } - + // the dataserver function is passed the ID of the calling function and a string message + public void osMessageObject(LSL_Key objectUUID, string message) + { + CheckThreatLevel(ThreatLevel.Low, "osMessageObject"); + m_host.AddScriptLPS(1); + + object[] resobj = new object[] { new LSL_Types.LSLString(m_host.UUID.ToString()), new LSL_Types.LSLString(message) }; + + SceneObjectPart sceneOP = World.GetSceneObjectPart(new UUID(objectUUID)); + + m_ScriptEngine.PostObjectEvent( + sceneOP.LocalId, new EventParams( + "dataserver", resobj, new DetectParams[0])); + } } - - } -- cgit v1.1