diff options
Diffstat (limited to 'OpenSim/Region/Framework/Interfaces/IEntityInventory.cs')
-rw-r--r-- | OpenSim/Region/Framework/Interfaces/IEntityInventory.cs | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/IEntityInventory.cs b/OpenSim/Region/Framework/Interfaces/IEntityInventory.cs index 32f4eea..c605fc1 100644 --- a/OpenSim/Region/Framework/Interfaces/IEntityInventory.cs +++ b/OpenSim/Region/Framework/Interfaces/IEntityInventory.cs | |||
@@ -166,6 +166,19 @@ namespace OpenSim.Region.Framework.Interfaces | |||
166 | List<TaskInventoryItem> GetInventoryItems(); | 166 | List<TaskInventoryItem> GetInventoryItems(); |
167 | 167 | ||
168 | /// <summary> | 168 | /// <summary> |
169 | /// Gets an inventory item by name | ||
170 | /// </summary> | ||
171 | /// <remarks> | ||
172 | /// This method returns the first inventory item that matches the given name. In SL this is all you need | ||
173 | /// since each item in a prim inventory must have a unique name. | ||
174 | /// </remarks> | ||
175 | /// <param name='name'></param> | ||
176 | /// <returns> | ||
177 | /// The inventory item. Null if no such item was found. | ||
178 | /// </returns> | ||
179 | TaskInventoryItem GetInventoryItem(string name); | ||
180 | |||
181 | /// <summary> | ||
169 | /// Get inventory items by name. | 182 | /// Get inventory items by name. |
170 | /// </summary> | 183 | /// </summary> |
171 | /// <param name="name"></param> | 184 | /// <param name="name"></param> |
@@ -174,7 +187,17 @@ namespace OpenSim.Region.Framework.Interfaces | |||
174 | /// If no inventory item has that name then an empty list is returned. | 187 | /// If no inventory item has that name then an empty list is returned. |
175 | /// </returns> | 188 | /// </returns> |
176 | List<TaskInventoryItem> GetInventoryItems(string name); | 189 | List<TaskInventoryItem> GetInventoryItems(string name); |
177 | 190 | ||
191 | /// <summary> | ||
192 | /// Get inventory items by type. | ||
193 | /// </summary> | ||
194 | /// <param type="name"></param> | ||
195 | /// <returns> | ||
196 | /// A list of inventory items of that type. | ||
197 | /// If no inventory items of that type then an empty list is returned. | ||
198 | /// </returns> | ||
199 | List<TaskInventoryItem> GetInventoryItems(InventoryType type); | ||
200 | |||
178 | /// <summary> | 201 | /// <summary> |
179 | /// Get the scene object referenced by an inventory item. | 202 | /// Get the scene object referenced by an inventory item. |
180 | /// </summary> | 203 | /// </summary> |
@@ -228,6 +251,16 @@ namespace OpenSim.Region.Framework.Interfaces | |||
228 | bool ContainsScripts(); | 251 | bool ContainsScripts(); |
229 | 252 | ||
230 | /// <summary> | 253 | /// <summary> |
254 | /// Returns the count of scripts contained | ||
255 | /// </summary></returns> | ||
256 | int ScriptCount(); | ||
257 | |||
258 | /// <summary> | ||
259 | /// Returns the count of running scripts contained | ||
260 | /// </summary></returns> | ||
261 | int RunningScriptCount(); | ||
262 | |||
263 | /// <summary> | ||
231 | /// Get the uuids of all items in this inventory | 264 | /// Get the uuids of all items in this inventory |
232 | /// </summary> | 265 | /// </summary> |
233 | /// <returns></returns> | 266 | /// <returns></returns> |