From a858c5daee64223355de04b77746142be0f5795f Mon Sep 17 00:00:00 2001
From: SignpostMarv
Date: Sat, 1 Sep 2012 02:39:49 +0100
Subject: implementing a function to get the number of attachments worn
---
OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs | 7 +++++++
1 file changed, 7 insertions(+)
(limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime')
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
index ba1ade2..230c378 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
@@ -311,6 +311,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
m_OSSL_Functions.osForceDetachFromAvatar();
}
+ public LSL_List osGetNumberOfAttachments(LSL_Key avatar, LSL_List attachmentPoints)
+ {
+ return m_OSSL_Functions.osGetNumberOfAttachments(avatar, attachmentPoints);
+ }
+
+ #endregion
+
// Texture Draw functions
public string osMovePen(string drawList, int x, int y)
--
cgit v1.1
From ff867b59cf59fdab19413cd46f3dd04058fbf3c7 Mon Sep 17 00:00:00 2001
From: SignpostMarv
Date: Sat, 1 Sep 2012 02:44:11 +0100
Subject: Implementing functing to send messages directly to attachments
---
.../Shared/Api/Runtime/LSL_Constants.cs | 52 ++++++++++++++++++++++
.../ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs | 5 +++
2 files changed, 57 insertions(+)
(limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime')
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
index cad8518..60a7e14 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
@@ -237,6 +237,58 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
public const int ATTACH_HUD_BOTTOM = 37;
public const int ATTACH_HUD_BOTTOM_RIGHT = 38;
+ #region osMessageAttachments constants
+
+ ///
+ /// Instructs osMessageAttachements to send the message to attachments
+ /// on every point.
+ ///
+ ///
+ /// One might expect this to be named OS_ATTACH_ALL, but then one might
+ /// also expect functions designed to attach or detach or get
+ /// attachments to work with it too. Attaching a no-copy item to
+ /// many attachments could be dangerous.
+ /// when combined with OS_ATTACH_MSG_INVERT_POINTS, will prevent the
+ /// message from being sent.
+ /// if combined with OS_ATTACH_MSG_OBJECT_CREATOR or
+ /// OS_ATTACH_MSG_SCRIPT_CREATOR, could result in no message being
+ /// sent- this is expected behaviour.
+ ///
+ public const int OS_ATTACH_MSG_ALL = -65535;
+
+ ///
+ /// Instructs osMessageAttachements to invert how the attachment points
+ /// list should be treated (e.g. go from inclusive operation to
+ /// exclusive operation).
+ ///
+ ///
+ /// This might be used if you want to deliver a message to one set of
+ /// attachments and a different message to everything else. With
+ /// this flag, you only need to build one explicit list for both calls.
+ ///
+ public const int OS_ATTACH_MSG_INVERT_POINTS = 1;
+
+ ///
+ /// Instructs osMessageAttachments to only send the message to
+ /// attachments with a CreatorID that matches the host object CreatorID
+ ///
+ ///
+ /// This would be used if distributed in an object vendor/updater server.
+ ///
+ public const int OS_ATTACH_MSG_OBJECT_CREATOR = 2;
+
+ ///
+ /// Instructs osMessageAttachments to only send the message to
+ /// attachments with a CreatorID that matches the sending script CreatorID
+ ///
+ ///
+ /// This might be used if the script is distributed independently of a
+ /// containing object.
+ ///
+ public const int OS_ATTACH_MSG_SCRIPT_CREATOR = 4;
+
+ #endregion
+
public const int LAND_LEVEL = 0;
public const int LAND_RAISE = 1;
public const int LAND_LOWER = 2;
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
index 230c378..08ebfd6 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
@@ -316,6 +316,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
return m_OSSL_Functions.osGetNumberOfAttachments(avatar, attachmentPoints);
}
+ public void osMessageAttachments(LSL_Key avatar, string message, LSL_List attachmentPoints, int flags)
+ {
+ m_OSSL_Functions.osMessageAttachments(avatar, message, attachmentPoints, flags);
+ }
+
#endregion
// Texture Draw functions
--
cgit v1.1
From 07dbe46ba3c2b949c9da34eaa80d7e1afd68fece Mon Sep 17 00:00:00 2001
From: SignpostMarv
Date: Sat, 1 Sep 2012 02:45:07 +0100
Subject: wrapping attachment functions in a region
---
OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime')
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
index 08ebfd6..52ca3da 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
@@ -289,7 +289,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
m_OSSL_Functions.osAvatarStopAnimation(avatar, animation);
}
- // Avatar functions
+ #region Attachment commands
public void osForceAttachToAvatar(int attachmentPoint)
{
--
cgit v1.1