OpenSim
|
Classes | |
class | InventoryStringBuilder |
Public Member Functions | |
SceneObjectPartInventory (SceneObjectPart part) | |
Constructor More... | |
void | ForceInventoryPersistence () |
Force the task inventory of this prim to persist at the next update sweep More... | |
void | ResetInventoryIDs () |
Reset UUIDs for all the items in the prim's inventory. More... | |
void | ResetObjectID () |
Reset parent object UUID for all the items in the prim's inventory. More... | |
void | ChangeInventoryOwner (UUID ownerId) |
Change every item in this inventory to a new owner. More... | |
void | ChangeInventoryGroup (UUID groupID) |
Change every item in this inventory to a new group. More... | |
bool | TryGetScriptInstanceRunning (UUID itemId, out bool running) |
Try to get the script running status. More... | |
int | CreateScriptInstances (int startParam, bool postOnRez, string engine, int stateSource) |
Start all the scripts contained in this entity's inventory More... | |
ArrayList | GetScriptErrors (UUID itemID) |
void | RemoveScriptInstances (bool sceneObjectBeingDeleted) |
Stop and remove all the scripts in this prim. More... | |
void | StopScriptInstances () |
Stop all the scripts in this prim. More... | |
bool | CreateScriptInstance (TaskInventoryItem item, int startParam, bool postOnRez, string engine, int stateSource) |
Start a script which is in this prim's inventory. More... | |
bool | CreateScriptInstance (UUID itemId, int startParam, bool postOnRez, string engine, int stateSource) |
Start a script which is in this prim's inventory. Some processing may occur in the background, but this routine returns asap. More... | |
ArrayList | CreateScriptInstanceEr (UUID itemId, int startParam, bool postOnRez, string engine, int stateSource) |
Start a script which is in this prim's inventory and return any compilation error messages. More... | |
void | RemoveScriptInstance (UUID itemId, bool sceneObjectBeingDeleted) |
Stop and remove a script which is in this prim's inventory. More... | |
void | StopScriptInstance (UUID itemId) |
Stop a script which is in this prim's inventory. More... | |
void | StopScriptInstance (TaskInventoryItem item) |
Stop a script which is in this prim's inventory. More... | |
void | AddInventoryItem (TaskInventoryItem item, bool allowedDrop) |
Add an item to this prim's inventory. If an item with the same name already exists, then an alternative name is chosen. More... | |
void | AddInventoryItemExclusive (TaskInventoryItem item, bool allowedDrop) |
Add an item to this prim's inventory. If an item with the same name already exists, it is replaced. More... | |
void | RestoreInventoryItems (ICollection< TaskInventoryItem > items) |
Restore a whole collection of items to the prim's inventory at once. We assume that the items already have all their fields correctly filled out. The items are not flagged for persistence to the database, since they are being restored from persistence rather than being newly added. More... | |
TaskInventoryItem | GetInventoryItem (UUID itemId) |
Returns an existing inventory item. Returns the original, so any changes will be live. More... | |
TaskInventoryItem | GetInventoryItem (string name) |
Gets an inventory item by name More... | |
List< TaskInventoryItem > | GetInventoryItems (string name) |
Get inventory items by name. More... | |
bool | GetRezReadySceneObjects (TaskInventoryItem item, out List< SceneObjectGroup > objlist, out List< Vector3 > veclist, out Vector3 bbox, out float offsetHeight) |
Get the scene object(s) referenced by an inventory item. More... | |
bool | UpdateInventoryItem (TaskInventoryItem item) |
Update an existing inventory item. More... | |
bool | UpdateInventoryItem (TaskInventoryItem item, bool fireScriptEvents) |
bool | UpdateInventoryItem (TaskInventoryItem item, bool fireScriptEvents, bool considerChanged) |
int | RemoveInventoryItem (UUID itemID) |
Remove an item from this prim's inventory More... | |
void | RequestInventoryFile (IClientAPI client, IXfer xferManager) |
Serialize all the metadata for the items in this prim's inventory ready for sending to the client More... | |
void | ProcessInventoryBackup (ISimulationDataService datastore) |
Process inventory backup More... | |
uint | MaskEffectivePermissions () |
void | ApplyNextOwnerPermissions () |
void | ApplyGodPermissions (uint perms) |
bool | ContainsScripts () |
Returns true if this part inventory contains any scripts. False otherwise. More... | |
int | ScriptCount () |
Returns the count of scripts in this parts inventory. More... | |
int | RunningScriptCount () |
Returns the count of running scripts in this parts inventory. More... | |
List< UUID > | GetInventoryList () |
Get the uuids of all items in this inventory More... | |
List< TaskInventoryItem > | GetInventoryItems () |
Get all inventory items. More... | |
List< TaskInventoryItem > | GetInventoryItems (InventoryType type) |
Get inventory items by type. More... | |
Dictionary< UUID, string > | GetScriptStates () |
Get the xml representing the saved states of scripts in this inventory. More... | |
Dictionary< UUID, string > | GetScriptStates (bool oldIDs) |
void | ResumeScripts () |
Static Public Member Functions | |
static bool | TryGetScriptInstanceRunning (Scene scene, TaskInventoryItem item, out bool running) |
Protected Member Functions | |
void | AddInventoryItem (string name, TaskInventoryItem item, bool allowedDrop) |
Add an item to this prim's inventory. More... | |
Protected Attributes | |
uint | m_inventorySerial = 0 |
Serial count for inventory file , used to tell if inventory has changed no need for this to be part of Database backup More... | |
TaskInventoryDictionary | m_items = new TaskInventoryDictionary() |
Holds in memory prim inventory More... | |
Properties | |
int | Count [get] |
Properties inherited from OpenSim.Region.Framework.Interfaces.IEntityInventory | |
int | Count [get] |
Number of items in this inventory. More... | |
Definition at line 45 of file SceneObjectPartInventory.cs.
|
inline |
Constructor
part | A SceneObjectPart |
Definition at line 117 of file SceneObjectPartInventory.cs.
|
inline |
Add an item to this prim's inventory. If an item with the same name already exists, then an alternative name is chosen.
item |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 748 of file SceneObjectPartInventory.cs.
|
inlineprotected |
Add an item to this prim's inventory.
name | The name that the new item should have. |
item | The item itself. The name within this structure is ignored in favour of the name given in this method's arguments |
allowedDrop | Item was only added to inventory because AllowedDrop is set |
Definition at line 788 of file SceneObjectPartInventory.cs.
|
inline |
Add an item to this prim's inventory. If an item with the same name already exists, it is replaced.
item |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 757 of file SceneObjectPartInventory.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 1376 of file SceneObjectPartInventory.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 1354 of file SceneObjectPartInventory.cs.
|
inline |
Change every item in this inventory to a new group.
groupID |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 214 of file SceneObjectPartInventory.cs.
|
inline |
Change every item in this inventory to a new owner.
ownerId |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 187 of file SceneObjectPartInventory.cs.
|
inline |
Returns true if this part inventory contains any scripts. False otherwise.
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 1392 of file SceneObjectPartInventory.cs.
|
inline |
Start a script which is in this prim's inventory.
item |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 355 of file SceneObjectPartInventory.cs.
|
inline |
Start a script which is in this prim's inventory. Some processing may occur in the background, but this routine returns asap.
itemId | A UUID |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 500 of file SceneObjectPartInventory.cs.
|
inline |
Start a script which is in this prim's inventory and return any compilation error messages.
itemId | A UUID |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 540 of file SceneObjectPartInventory.cs.
|
inline |
Start all the scripts contained in this entity's inventory
startParam | |
postOnRez | |
engine | |
stateSource |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 294 of file SceneObjectPartInventory.cs.
|
inline |
Force the task inventory of this prim to persist at the next update sweep
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 125 of file SceneObjectPartInventory.cs.
|
inline |
Returns an existing inventory item. Returns the original, so any changes will be live.
itemID |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 838 of file SceneObjectPartInventory.cs.
|
inline |
Gets an inventory item by name
This method returns the first inventory item that matches the given name. In SL this is all you need since each item in a prim inventory must have a unique name.
name |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 847 of file SceneObjectPartInventory.cs.
|
inline |
Get inventory items by name.
name |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 863 of file SceneObjectPartInventory.cs.
|
inline |
Get all inventory items.
name |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 1462 of file SceneObjectPartInventory.cs.
|
inline |
Get inventory items by type.
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 1473 of file SceneObjectPartInventory.cs.
|
inline |
Get the uuids of all items in this inventory
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 1452 of file SceneObjectPartInventory.cs.
|
inline |
Get the scene object(s) referenced by an inventory item.
This is returned in a 'rez ready' state. That is, name, description, permissions and other details have been adjusted to reflect the part and item from which it originates.
item | Inventory item |
objlist | The scene objects |
veclist | Relative offsets for each object |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 880 of file SceneObjectPartInventory.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 306 of file SceneObjectPartInventory.cs.
|
inline |
Get the xml representing the saved states of scripts in this inventory.
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 1488 of file SceneObjectPartInventory.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 1493 of file SceneObjectPartInventory.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 1321 of file SceneObjectPartInventory.cs.
|
inline |
Process inventory backup
datastore |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 1238 of file SceneObjectPartInventory.cs.
|
inline |
Remove an item from this prim's inventory
itemID |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 1053 of file SceneObjectPartInventory.cs.
|
inline |
Stop and remove a script which is in this prim's inventory.
itemId | |
sceneObjectBeingDeleted | Should be true if this script is being removed because the scene object is being deleted. This will prevent spurious updates to the client. |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 635 of file SceneObjectPartInventory.cs.
|
inline |
Stop and remove all the scripts in this prim.
sceneObjectBeingDeleted | Should be true if these scripts are being removed because the scene object is being deleted. This will prevent spurious updates to the client. |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 332 of file SceneObjectPartInventory.cs.
|
inline |
Serialize all the metadata for the items in this prim's inventory ready for sending to the client
xferManager |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 1112 of file SceneObjectPartInventory.cs.
|
inline |
Reset UUIDs for all the items in the prim's inventory.
This involves either generating new ones or setting existing UUIDs to the correct parent UUIDs.
If this method is called and there are inventory items, then we regard the inventory as having changed.
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 139 of file SceneObjectPartInventory.cs.
|
inline |
Reset parent object UUID for all the items in the prim's inventory.
If this method is called and there are inventory items, then we regard the inventory as having changed.
linkNum | Link number for the part |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 161 of file SceneObjectPartInventory.cs.
|
inline |
Restore a whole collection of items to the prim's inventory at once. We assume that the items already have all their fields correctly filled out. The items are not flagged for persistence to the database, since they are being restored from persistence rather than being newly added.
items |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 820 of file SceneObjectPartInventory.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 1538 of file SceneObjectPartInventory.cs.
|
inline |
Returns the count of running scripts in this parts inventory.
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 1427 of file SceneObjectPartInventory.cs.
|
inline |
Returns the count of scripts in this parts inventory.
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 1409 of file SceneObjectPartInventory.cs.
|
inline |
Stop a script which is in this prim's inventory.
itemId | |
sceneObjectBeingDeleted | Should be true if this script is being removed because the scene object is being deleted. This will prevent spurious updates to the client. |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 663 of file SceneObjectPartInventory.cs.
|
inline |
Stop a script which is in this prim's inventory.
itemId | |
sceneObjectBeingDeleted | Should be true if this script is being removed because the scene object is being deleted. This will prevent spurious updates to the client. |
Definition at line 692 of file SceneObjectPartInventory.cs.
|
inline |
Stop all the scripts in this prim.
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 345 of file SceneObjectPartInventory.cs.
|
inline |
Try to get the script running status.
itemId | |
running |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 262 of file SceneObjectPartInventory.cs.
|
inlinestatic |
Definition at line 274 of file SceneObjectPartInventory.cs.
|
inline |
Update an existing inventory item.
item | The updated item. An item with the same id must already exist in this prim's inventory. |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 992 of file SceneObjectPartInventory.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 997 of file SceneObjectPartInventory.cs.
|
inline |
Implements OpenSim.Region.Framework.Interfaces.IEntityInventory.
Definition at line 1002 of file SceneObjectPartInventory.cs.
|
protected |
Serial count for inventory file , used to tell if inventory has changed no need for this to be part of Database backup
Definition at line 65 of file SceneObjectPartInventory.cs.
|
protected |
Holds in memory prim inventory
Definition at line 70 of file SceneObjectPartInventory.cs.
|
get |
Definition at line 103 of file SceneObjectPartInventory.cs.