mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
committed by
UbitUmarov
parent
9a92d94e99
commit
f42fd1c552
@@ -13638,6 +13638,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return (int)tmp;
|
||||
}
|
||||
|
||||
public LSL_String llGetInventoryDesc(string name)
|
||||
{
|
||||
TaskInventoryItem item = m_host.Inventory.GetInventoryItem(name);
|
||||
if (item is null)
|
||||
{
|
||||
Error("llGetInventoryDesc", "Item " + name + " not found");
|
||||
return new LSL_String();
|
||||
}
|
||||
|
||||
return new LSL_String(item.Description);
|
||||
}
|
||||
|
||||
public LSL_Integer llGetInventoryType(string name)
|
||||
{
|
||||
|
||||
|
||||
@@ -156,6 +156,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||
LSL_String llGetInventoryName(int type, int number);
|
||||
LSL_Integer llGetInventoryNumber(int type);
|
||||
LSL_Integer llGetInventoryPermMask(string item, int mask);
|
||||
LSL_String llGetInventoryDesc(string name);
|
||||
LSL_Integer llGetInventoryType(string name);
|
||||
LSL_Key llGetKey();
|
||||
LSL_Key llGetLandOwnerAt(LSL_Vector pos);
|
||||
|
||||
@@ -650,6 +650,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
return m_LSL_Functions.llGetInventoryPermMask(item, mask);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public LSL_String llGetInventoryDesc(string name)
|
||||
{
|
||||
return m_LSL_Functions.llGetInventoryDesc(name);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public LSL_Integer llGetInventoryType(string name)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user