diff options
author | UbitUmarov | 2019-02-21 23:41:49 +0000 |
---|---|---|
committer | UbitUmarov | 2019-02-21 23:41:49 +0000 |
commit | 6e05695244173435067408e5716cb4bd2a2c0aef (patch) | |
tree | d0232db890fb96e9f64f3c38209fdfd9aa51f05d /OpenSim | |
parent | let Xengine also have that detectedkey (diff) | |
download | opensim-SC-6e05695244173435067408e5716cb4bd2a2c0aef.zip opensim-SC-6e05695244173435067408e5716cb4bd2a2c0aef.tar.gz opensim-SC-6e05695244173435067408e5716cb4bd2a2c0aef.tar.bz2 opensim-SC-6e05695244173435067408e5716cb4bd2a2c0aef.tar.xz |
add LSL_Key osGetLastChangedEventKey() ( it is a alias for lldetectedkey(0) but don't tell anyone
Diffstat (limited to 'OpenSim')
3 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index e4cc3aa..7674628 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -5455,5 +5455,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5455 | 5455 | ||
5456 | return item.Description; | 5456 | return item.Description; |
5457 | } | 5457 | } |
5458 | |||
5459 | public LSL_Key osGetLastChangedEventKey() | ||
5460 | { | ||
5461 | m_host.AddScriptLPS(1); | ||
5462 | DetectParams detectedParams = m_ScriptEngine.GetDetectParams(m_item.ItemID, 0); | ||
5463 | if (detectedParams == null) | ||
5464 | return String.Empty; | ||
5465 | return detectedParams.Key.ToString(); | ||
5466 | } | ||
5458 | } | 5467 | } |
5459 | } \ No newline at end of file | 5468 | } \ No newline at end of file |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs index 711108b..8333af8 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs | |||
@@ -550,5 +550,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces | |||
550 | LSL_Key osGetInventoryLastOwner(LSL_String itemNameOrId); | 550 | LSL_Key osGetInventoryLastOwner(LSL_String itemNameOrId); |
551 | LSL_String osGetInventoryName(LSL_Key itemId); | 551 | LSL_String osGetInventoryName(LSL_Key itemId); |
552 | LSL_String osGetInventoryDescription(LSL_String itemNameOrId); | 552 | LSL_String osGetInventoryDescription(LSL_String itemNameOrId); |
553 | LSL_Key osGetLastChangedEventKey(); | ||
553 | } | 554 | } |
554 | } | 555 | } |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs index 86c8ba3..f0fb745 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs | |||
@@ -1381,5 +1381,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
1381 | { | 1381 | { |
1382 | return m_OSSL_Functions.osGetInventoryDescription(itemNameOrId); | 1382 | return m_OSSL_Functions.osGetInventoryDescription(itemNameOrId); |
1383 | } | 1383 | } |
1384 | |||
1385 | public LSL_Key osGetLastChangedEventKey() | ||
1386 | { | ||
1387 | return m_OSSL_Functions.osGetLastChangedEventKey(); | ||
1388 | } | ||
1384 | } | 1389 | } |
1385 | } | 1390 | } |