The implementation of new flags = parameters for llGetObjectDetails - Part II Constant: integer OBJECT_TOTAL_INVENTORY_COUNT = 31 Constant: integer OBJECT_GROUP_TAG = 33
Signed-off-by: Mandarinka Tasty <mandarinka.tasty@gmail.com> Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>melanie
parent
af3f2717fd
commit
0bb959d8fd
|
@ -13772,6 +13772,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
AttachmentsPrimList.Add(new LSL_Integer(Attachment.PrimCount));
|
AttachmentsPrimList.Add(new LSL_Integer(Attachment.PrimCount));
|
||||||
ret.Add(new LSL_Integer(AttachmentsPrimList.Sum()));
|
ret.Add(new LSL_Integer(AttachmentsPrimList.Sum()));
|
||||||
break;
|
break;
|
||||||
|
case ScriptBaseClass.OBJECT_TOTAL_INVENTORY_COUNT:
|
||||||
|
LSL_List AttachmentsPrimsInventoryList = new LSL_List();
|
||||||
|
foreach (SceneObjectGroup Attachment in av.GetAttachments())
|
||||||
|
{
|
||||||
|
Attachment.ForEachPart(delegate(SceneObjectPart part)
|
||||||
|
{
|
||||||
|
AttachmentsPrimsInventoryList.Add(new LSL_Integer(part.Inventory.Count));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
ret.Add(new LSL_Integer(AttachmentsPrimsInventoryList.Sum()));
|
||||||
|
break;
|
||||||
|
case ScriptBaseClass.OBJECT_GROUP_TAG:
|
||||||
|
ret.Add(new LSL_String(av.Grouptitle));
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
// Invalid or unhandled constant.
|
// Invalid or unhandled constant.
|
||||||
ret.Add(new LSL_Integer(ScriptBaseClass.OBJECT_UNKNOWN_DETAIL));
|
ret.Add(new LSL_Integer(ScriptBaseClass.OBJECT_UNKNOWN_DETAIL));
|
||||||
|
@ -13953,6 +13967,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
case ScriptBaseClass.OBJECT_PRIM_COUNT:
|
case ScriptBaseClass.OBJECT_PRIM_COUNT:
|
||||||
ret.Add(new LSL_Integer(obj.ParentGroup.PrimCount));
|
ret.Add(new LSL_Integer(obj.ParentGroup.PrimCount));
|
||||||
break;
|
break;
|
||||||
|
case ScriptBaseClass.OBJECT_TOTAL_INVENTORY_COUNT:
|
||||||
|
LSL_List ObjectPrimsInventoryList = new LSL_List();
|
||||||
|
obj.ParentGroup.ForEachPart(delegate(SceneObjectPart part)
|
||||||
|
{
|
||||||
|
ObjectPrimsInventoryList.Add(new LSL_Integer(part.Inventory.Count));
|
||||||
|
});
|
||||||
|
ret.Add(ObjectPrimsInventoryList.Sum());
|
||||||
|
break;
|
||||||
|
case ScriptBaseClass.OBJECT_GROUP_TAG:
|
||||||
|
ret.Add(new LSL_String(String.Empty));
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
// Invalid or unhandled constant.
|
// Invalid or unhandled constant.
|
||||||
ret.Add(new LSL_Integer(ScriptBaseClass.OBJECT_UNKNOWN_DETAIL));
|
ret.Add(new LSL_Integer(ScriptBaseClass.OBJECT_UNKNOWN_DETAIL));
|
||||||
|
|
|
@ -639,6 +639,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||||
public const int OBJECT_CLICK_ACTION = 28;
|
public const int OBJECT_CLICK_ACTION = 28;
|
||||||
public const int OBJECT_OMEGA = 29;
|
public const int OBJECT_OMEGA = 29;
|
||||||
public const int OBJECT_PRIM_COUNT = 30;
|
public const int OBJECT_PRIM_COUNT = 30;
|
||||||
|
public const int OBJECT_TOTAL_INVENTORY_COUNT = 31;
|
||||||
|
public const int OBJECT_GROUP_TAG = 33;
|
||||||
|
|
||||||
// Pathfinding types
|
// Pathfinding types
|
||||||
public const int OPT_OTHER = -1;
|
public const int OPT_OTHER = -1;
|
||||||
|
|
Loading…
Reference in New Issue