diff options
author | Mike Mazur | 2009-03-05 08:30:08 +0000 |
---|---|---|
committer | Mike Mazur | 2009-03-05 08:30:08 +0000 |
commit | 56158443b39193f968d1c3f18e8c71b26adb8e38 (patch) | |
tree | b59a40d3a242b9a1ffd538c798642fe5d857e552 /OpenSim/Grid/AssetInventoryServer/InventoryObjects.cs | |
parent | Implementing more inventory storage methods. (diff) | |
download | opensim-SC-56158443b39193f968d1c3f18e8c71b26adb8e38.zip opensim-SC-56158443b39193f968d1c3f18e8c71b26adb8e38.tar.gz opensim-SC-56158443b39193f968d1c3f18e8c71b26adb8e38.tar.bz2 opensim-SC-56158443b39193f968d1c3f18e8c71b26adb8e38.tar.xz |
Implemented all Inventory frontend handlers.
This doesn't mean they all work as expected, though. More changes to
come as testing unveils bugs.
Diffstat (limited to 'OpenSim/Grid/AssetInventoryServer/InventoryObjects.cs')
-rw-r--r-- | OpenSim/Grid/AssetInventoryServer/InventoryObjects.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/OpenSim/Grid/AssetInventoryServer/InventoryObjects.cs b/OpenSim/Grid/AssetInventoryServer/InventoryObjects.cs index 5fa4274..4f42a20 100644 --- a/OpenSim/Grid/AssetInventoryServer/InventoryObjects.cs +++ b/OpenSim/Grid/AssetInventoryServer/InventoryObjects.cs | |||
@@ -99,6 +99,33 @@ namespace OpenSim.Grid.AssetInventoryServer | |||
99 | 99 | ||
100 | public class InventoryFolderWithChildren : InventoryFolderBase | 100 | public class InventoryFolderWithChildren : InventoryFolderBase |
101 | { | 101 | { |
102 | public InventoryFolderWithChildren() | ||
103 | { | ||
104 | } | ||
105 | |||
106 | public InventoryFolderWithChildren(InventoryFolderBase folder) | ||
107 | { | ||
108 | // from InventoryNodeBase | ||
109 | Name = folder.Name; | ||
110 | ID = folder.ID; | ||
111 | Owner = folder.Owner; | ||
112 | |||
113 | // from InventoryFolderBase | ||
114 | ParentID = folder.ParentID; | ||
115 | Type = folder.Type; | ||
116 | Version = folder.Version; | ||
117 | } | ||
118 | |||
119 | public InventoryFolderWithChildren(string name, UUID ownerID, UUID parentID, short assetType) | ||
120 | { | ||
121 | ID = UUID.Random(); | ||
122 | Name = name; | ||
123 | Owner = ownerID; | ||
124 | ParentID = parentID; | ||
125 | Type = assetType; | ||
126 | Version = 1; | ||
127 | } | ||
128 | |||
102 | [NonSerialized] | 129 | [NonSerialized] |
103 | public Dictionary<UUID, InventoryNodeBase> Children = new Dictionary<UUID, InventoryNodeBase>(); | 130 | public Dictionary<UUID, InventoryNodeBase> Children = new Dictionary<UUID, InventoryNodeBase>(); |
104 | } | 131 | } |