Difference between revisions of "Inventory Global"
From Virtual World Web Wiki
(Documentation for the Inventory Global class) |
(Documentation for the Inventory Global class) |
||
(3 intermediate revisions by the same user not shown) | |||
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 | ||
:{{CSharp|JSInventoryView CreateViewForContainer(Guid containerID)}} | :{{CSharp|JSInventoryView CreateViewForContainer(Guid containerID)}} | ||
+ | |||
:{{CSharp|JSInventoryContainer GetContainer(Guid containerID)}} | :{{CSharp|JSInventoryContainer GetContainer(Guid containerID)}} | ||
:{{CSharp|IEnumerable<Guid> GetContainersForTarget(Guid targetID)}} | :{{CSharp|IEnumerable<Guid> GetContainersForTarget(Guid targetID)}} | ||
+ | |||
+ | :{{CSharp|string[] GetEvents()}} | ||
+ | |||
+ | :{{CSharp|JSInventoryItem GetItem(Guid itemID)}} | ||
+ | |||
+ | :{{CSharp|IEnumerable<JSInventoryContainer> GetTargetContainers(Guid targetID)}} | ||
__NOTOC____NOEDITSECTION__ | __NOTOC____NOEDITSECTION__ |
Latest revision as of 17:18, 19 November 2018
- 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)
- string[] GetEvents()
- JSInventoryItem GetItem(Guid itemID)
- IEnumerable<JSInventoryContainer> GetTargetContainers(Guid targetID)