C# Class Universe.Modules.InventoryAccess.BasicInventoryAccessModule

Inheritance: INonSharedRegionModule, IInventoryAccessModule
ファイルを表示 Open project: Virtual-Universe/Virtual-Universe

Protected Properties

Property Type Description
m_Enabled bool
m_LLCLientInventoryModule ILLClientInventory
m_scene IScene

Public Methods

Method Description
AddRegion ( IScene scene ) : void
CapsUpdateInventoryItemAsset ( IClientAPI remoteClient, UUID itemID, byte data ) : string

Capability originating call to update the asset of an item in an agent's inventory

Close ( ) : void
CreateObjectFromInventory ( IClientAPI remoteClient, UUID itemID, InventoryItemBase &item ) : ISceneEntity
CreateObjectFromInventory ( IClientAPI remoteClient, UUID itemID, UUID assetID, InventoryItemBase item ) : ISceneEntity
DeleteToInventory ( DeRezAction action, UUID folderID, List objectGroups, UUID agentId, UUID &itemID ) : UUID

Delete a scene object from a scene and place in the given avatar's inventory. Returns the UUID of the newly created asset.

GetAgentInventoryItem ( IClientAPI remoteClient, UUID itemID, UUID requestID ) : bool
Initialize ( IConfigSource source ) : void
IsForeignUser ( UUID userID, string &assetServerURL ) : bool
OnClosingClient ( IClientAPI client ) : void
OnNewClient ( IClientAPI client ) : void
PostInitialize ( ) : void
RegionLoaded ( IScene scene ) : void
RemoveRegion ( IScene scene ) : void
RezObject ( IClientAPI remoteClient, UUID itemID, System.Vector3 rayEnd, System.Vector3 rayStart, UUID rayTargetID, byte bypassRayCast, bool rayEndIsIntersection, bool rezSelected, bool removeItem, UUID fromTaskID ) : ISceneEntity

Rez an object into the scene from the user's inventory

RezRestoreToWorld ( IClientAPI remoteClient, UUID itemID, InventoryItemBase item, UUID groupID ) : bool

Restores an object in world.

SaveAsAsset ( List objectGroups, AssetBase &asset ) : UUID

Protected Methods

Method Description
ClientRezObject ( IClientAPI remoteClient, UUID itemID, System.Vector3 rayEnd, System.Vector3 rayStart, UUID rayTargetID, byte bypassRayCast, bool rayEndIsIntersection, bool rezSelected, bool removeItem, UUID fromTaskID ) : void

The only difference between this and the other RezObject method is the return value... The client needs this method

ClientRezRestoreToWorld ( IClientAPI remoteClient, UUID itemID, UUID groupID ) : void
CreateObjectFromInventory ( IClientAPI remoteClient, UUID itemID, UUID assetID, XmlDocument &doc, InventoryItemBase item ) : ISceneEntity
CreateObjectFromInventory ( InventoryItemBase item, IClientAPI remoteClient, UUID itemID, XmlDocument &doc ) : ISceneEntity
GetItem ( UUID agentID, UUID itemID ) : InventoryItemBase

Private Methods

Method Description
CreateAsset ( string name, string description, sbyte assetType, byte data, string creatorID ) : AssetBase

Create a new asset data structure.

FailedCompileScriptCAPSUpdate ( UUID assetID, UUID inv, string error ) : string
FailedPermissionsNotecardCAPSUpdate ( UUID assetID, UUID inv ) : string
FailedPermissionsScriptCAPSUpdate ( UUID assetID, UUID inv ) : string
RezMultipleObjectsFromInventory ( XmlNodeList nodes, UUID itemId, IClientAPI remoteClient, System.Vector3 pos, bool rezSelected, InventoryItemBase item, UUID rayTargetID, byte BypassRayCast, bool rayEndIsIntersection, System.Vector3 rayEnd, System.Vector3 rayStart, byte bRayEndIsIntersection ) : List
SuccessNotecardCAPSUpdate ( UUID assetID, UUID inv ) : string
SuccessScriptCAPSUpdate ( UUID assetID, UUID inv ) : string

Method Details

AddRegion() public method

public AddRegion ( IScene scene ) : void
scene IScene
return void

CapsUpdateInventoryItemAsset() public method

Capability originating call to update the asset of an item in an agent's inventory
public CapsUpdateInventoryItemAsset ( IClientAPI remoteClient, UUID itemID, byte data ) : string
remoteClient IClientAPI
itemID UUID
data byte
return string

ClientRezObject() protected method

The only difference between this and the other RezObject method is the return value... The client needs this method
protected ClientRezObject ( IClientAPI remoteClient, UUID itemID, System.Vector3 rayEnd, System.Vector3 rayStart, UUID rayTargetID, byte bypassRayCast, bool rayEndIsIntersection, bool rezSelected, bool removeItem, UUID fromTaskID ) : void
remoteClient IClientAPI
itemID UUID
rayEnd System.Vector3
rayStart System.Vector3
rayTargetID UUID
bypassRayCast byte
rayEndIsIntersection bool
rezSelected bool
removeItem bool
fromTaskID UUID
return void

ClientRezRestoreToWorld() protected method

protected ClientRezRestoreToWorld ( IClientAPI remoteClient, UUID itemID, UUID groupID ) : void
remoteClient IClientAPI
itemID UUID
groupID UUID
return void

Close() public method

public Close ( ) : void
return void

CreateObjectFromInventory() public method

public CreateObjectFromInventory ( IClientAPI remoteClient, UUID itemID, InventoryItemBase &item ) : ISceneEntity
remoteClient IClientAPI
itemID UUID
item Universe.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
return ISceneEntity

CreateObjectFromInventory() public method

public CreateObjectFromInventory ( IClientAPI remoteClient, UUID itemID, UUID assetID, InventoryItemBase item ) : ISceneEntity
remoteClient IClientAPI
itemID UUID
assetID UUID
item Universe.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
return ISceneEntity

CreateObjectFromInventory() protected method

protected CreateObjectFromInventory ( IClientAPI remoteClient, UUID itemID, UUID assetID, XmlDocument &doc, InventoryItemBase item ) : ISceneEntity
remoteClient IClientAPI
itemID UUID
assetID UUID
doc System.Xml.XmlDocument
item Universe.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
return ISceneEntity

CreateObjectFromInventory() protected method

protected CreateObjectFromInventory ( InventoryItemBase item, IClientAPI remoteClient, UUID itemID, XmlDocument &doc ) : ISceneEntity
item Universe.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
remoteClient IClientAPI
itemID UUID
doc System.Xml.XmlDocument
return ISceneEntity

DeleteToInventory() public method

Delete a scene object from a scene and place in the given avatar's inventory. Returns the UUID of the newly created asset.
public DeleteToInventory ( DeRezAction action, UUID folderID, List objectGroups, UUID agentId, UUID &itemID ) : UUID
action DeRezAction
folderID UUID
objectGroups List
agentId UUID
itemID UUID
return UUID

GetAgentInventoryItem() public method

public GetAgentInventoryItem ( IClientAPI remoteClient, UUID itemID, UUID requestID ) : bool
remoteClient IClientAPI
itemID UUID
requestID UUID
return bool

GetItem() protected method

protected GetItem ( UUID agentID, UUID itemID ) : InventoryItemBase
agentID UUID
itemID UUID
return Universe.Framework.Services.ClassHelpers.Inventory.InventoryItemBase

Initialize() public method

public Initialize ( IConfigSource source ) : void
source IConfigSource
return void

IsForeignUser() public method

public IsForeignUser ( UUID userID, string &assetServerURL ) : bool
userID UUID
assetServerURL string
return bool

OnClosingClient() public method

public OnClosingClient ( IClientAPI client ) : void
client IClientAPI
return void

OnNewClient() public method

public OnNewClient ( IClientAPI client ) : void
client IClientAPI
return void

PostInitialize() public method

public PostInitialize ( ) : void
return void

RegionLoaded() public method

public RegionLoaded ( IScene scene ) : void
scene IScene
return void

RemoveRegion() public method

public RemoveRegion ( IScene scene ) : void
scene IScene
return void

RezObject() public method

Rez an object into the scene from the user's inventory
public RezObject ( IClientAPI remoteClient, UUID itemID, System.Vector3 rayEnd, System.Vector3 rayStart, UUID rayTargetID, byte bypassRayCast, bool rayEndIsIntersection, bool rezSelected, bool removeItem, UUID fromTaskID ) : ISceneEntity
remoteClient IClientAPI
itemID UUID
rayEnd System.Vector3
rayStart System.Vector3
rayTargetID UUID
bypassRayCast byte
rayEndIsIntersection bool
rezSelected bool
removeItem bool
fromTaskID UUID
return ISceneEntity

RezRestoreToWorld() public method

Restores an object in world.
public RezRestoreToWorld ( IClientAPI remoteClient, UUID itemID, InventoryItemBase item, UUID groupID ) : bool
remoteClient IClientAPI Remote client.
itemID UUID Item I.
item Universe.Framework.Services.ClassHelpers.Inventory.InventoryItemBase Item.
groupID UUID Group I.
return bool

SaveAsAsset() public method

public SaveAsAsset ( List objectGroups, AssetBase &asset ) : UUID
objectGroups List
asset Universe.Framework.Services.ClassHelpers.Assets.AssetBase
return UUID

Property Details

m_Enabled protected_oe property

protected bool m_Enabled
return bool

m_LLCLientInventoryModule protected_oe property

protected ILLClientInventory m_LLCLientInventoryModule
return ILLClientInventory

m_scene protected_oe property

protected IScene m_scene
return IScene