OpenMetaverse Protocol Library Developers API Documentation
Inventory Class
NamespacesOpenMetaverseInventory
Responsible for maintaining inventory structure. Inventory constructs nodes and manages node children as is necessary to maintain a coherant hirarchy. Other classes should not manipulate or create InventoryNodes explicitly. When A node's parent changes (when a folder is moved, for example) simply pass Inventory the updated InventoryFolder and it will make the appropriate changes to its internal representation.
Declaration Syntax
C#
public 
class 
Inventory
Members
All Members Constructors Methods Properties Fields Events



Icon Member Description
Inventory(GridClient, InventoryManager)
Initializes a new instance of the Inventoryclass

Inventory(GridClient, InventoryManager, UUID)
Initializes a new instance of the Inventoryclass

Contains(UUID)
Used to find out if Inventory contains the InventoryObject specified by
  Copy imageCopy
uuid
.

Contains(InventoryBase)
GetContents(InventoryFolder)
GetContents(UUID)
Returns the contents of the specified folder

GetNodeFor(UUID)
InventoryObjectAdded
Raised when the simulator sends us data containing ...

InventoryObjectRemoved
Raised when the simulator sends us data containing ...

InventoryObjectUpdated
Raised when the simulator sends us data containing ...

Item [ ( [ ( UUID ] ) ] )
By using the bracket operator on this class, the program can get the InventoryObject designated by the specified uuid. If the value for the corresponding UUID is null, the call is equivelant to a call to
  Copy imageCopy
RemoveNodeFor(
this[uuid])
. If the value is non-null, it is equivelant to a call to
  Copy imageCopy
UpdateNodeFor(
value)
, the uuid parameter is ignored.

Items
LibraryFolder
The default shared library folder

LibraryRootNode
The root node of the default shared library

Owner
RemoveNodeFor(InventoryBase)
Removes the InventoryObject and all related node data from Inventory.

RestoreFromDisk(String)
Loads in inventory cache file into the inventory structure. Note only valid to call after login has been successful.

RootFolder
The root folder of this avatars inventory

RootNode
The root node of the avatars inventory

SaveToDisk(String)
Saves the current inventory structure to a cache file

UpdateNodeFor(InventoryBase)
Updates the state of the InventoryNode and inventory data structure that is responsible for the InventoryObject. If the item was previously not added to inventory, it adds the item, and updates structure accordingly. If it was, it updates the InventoryNode, changing the parent node if
  Copy imageCopy
item.parentUUID
does not match
  Copy imageCopy
node.Parent.Data.UUID
. You can not set the inventory root folder using this method

Inheritance Hierarchy
Object
Inventory

Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)