Difference between revisions of "Inventory Global"

From Virtual World Web Wiki
Jump to: navigation, search
(Documentation for the Inventory Global class)
(Documentation for the Inventory Global class)
Line 9: Line 9:
  
 
===Methods===
 
===Methods===
:{{CSharp|JSInventoryView CreateView(string type)}}
+
:{{CSharp|JSInventoryView CreateView(string type, Guid? targetID {{=}} NULL)}}
 
::
 
::
 
::Gets a view onto a set of containers (by SecurableType) that can then be filtered and queried
 
::Gets a view onto a set of containers (by SecurableType) that can then be filtered and queried
Line 17: Line 17:
  
 
:{{CSharp|IEnumerable<Guid> GetContainersForTarget(Guid targetID)}}
 
:{{CSharp|IEnumerable<Guid> GetContainersForTarget(Guid targetID)}}
 +
 +
:{{CSharp|JSInventoryItem GetItem(Guid itemID)}}
  
 
__NOTOC____NOEDITSECTION__
 
__NOTOC____NOEDITSECTION__

Revision as of 12:40, 6 September 2017

  • This is a JavaScript global object named Inventory

Remarks [edit]

Events

ContainerAdded()
ContainerRemoved()

Methods

JSInventoryView CreateView(string type, Guid? targetID = NULL)
Gets a view onto a set of containers (by SecurableType) that can then be filtered and queried
JSInventoryView CreateViewForContainer(Guid containerID)
JSInventoryContainer GetContainer(Guid containerID)
IEnumerable<Guid> GetContainersForTarget(Guid targetID)
JSInventoryItem GetItem(Guid itemID)