1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- using System;
- using OpenMetaverse;
- using OpenSim.Region.Framework.Scenes;
- namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
- {
- public class SPAvatarAttachment : IAvatarAttachment
- {
- private readonly Scene m_rootScene;
-
- private readonly int m_location;
-
- private readonly UUID m_assetId;
- private readonly ISecurityCredential m_security;
-
- public SPAvatarAttachment(Scene rootScene, IAvatar self, int location, UUID itemId, UUID assetId, ISecurityCredential security)
- {
- m_rootScene = rootScene;
- m_security = security;
-
- m_location = location;
-
- m_assetId = assetId;
- }
-
- public int Location { get { return m_location; } }
-
- public IObject Asset
- {
- get
- {
- return new SOPObject(m_rootScene, m_rootScene.GetSceneObjectPart(m_assetId).LocalId, m_security);
- }
- }
- }
- }
|