aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Interfaces
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-08-30 23:05:43 +0100
committerJustin Clark-Casey (justincc)2011-08-30 23:06:10 +0100
commit04bafd21221a789b83b039efd1c52e141944cde0 (patch)
tree7c889db25e5c4ba059f5a03bfaacf95f95966b70 /OpenSim/Region/Framework/Interfaces
parentadd Name property to ISceneEntity (diff)
downloadopensim-SC_OLD-04bafd21221a789b83b039efd1c52e141944cde0.zip
opensim-SC_OLD-04bafd21221a789b83b039efd1c52e141944cde0.tar.gz
opensim-SC_OLD-04bafd21221a789b83b039efd1c52e141944cde0.tar.bz2
opensim-SC_OLD-04bafd21221a789b83b039efd1c52e141944cde0.tar.xz
refactor: Move ScenePresence.RezAttachments() into AttachmentsModule
This adds an incomplete IScenePresence to match ISceneEntity
Diffstat (limited to 'OpenSim/Region/Framework/Interfaces')
-rw-r--r--OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs6
-rw-r--r--OpenSim/Region/Framework/Interfaces/IScenePresence.cs56
2 files changed, 62 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs b/OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs
index c910289..1833dce 100644
--- a/OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs
@@ -36,6 +36,12 @@ namespace OpenSim.Region.Framework.Interfaces
36 public interface IAttachmentsModule 36 public interface IAttachmentsModule
37 { 37 {
38 /// <summary> 38 /// <summary>
39 /// RezAttachments. This should only be called upon login on the first region.
40 /// Attachment rezzings on crossings and TPs are done in a different way.
41 /// </summary>
42 void RezAttachments(IScenePresence sp);
43
44 /// <summary>
39 /// Attach an object to an avatar from the world. 45 /// Attach an object to an avatar from the world.
40 /// </summary> 46 /// </summary>
41 /// <param name="controllingClient"></param> 47 /// <param name="controllingClient"></param>
diff --git a/OpenSim/Region/Framework/Interfaces/IScenePresence.cs b/OpenSim/Region/Framework/Interfaces/IScenePresence.cs
new file mode 100644
index 0000000..d700d79
--- /dev/null
+++ b/OpenSim/Region/Framework/Interfaces/IScenePresence.cs
@@ -0,0 +1,56 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using OpenSim.Framework;
30
31namespace OpenSim.Region.Framework.Interfaces
32{
33 /// <summary>
34 /// An agent in the scene.
35 /// </summary>
36 /// <remarks>
37 /// Interface is a work in progress. Please feel free to add other required properties and methods.
38 /// </remarks>
39 public interface IScenePresence : ISceneEntity
40 {
41 /// <value>
42 /// The client controlling this presence
43 /// </value>
44 IClientAPI ControllingClient { get; }
45
46 /// <summary>
47 /// Avatar appearance data.
48 /// </summary>
49 /// <remarks>
50 // Because appearance setting is in a module, we actually need
51 // to give it access to our appearance directly, otherwise we
52 // get a synchronization issue.
53 /// </remarks>
54 AvatarAppearance Appearance { get; set; }
55 }
56} \ No newline at end of file