diff options
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs index 6011e0b..03432bc 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs | |||
@@ -1,37 +1,37 @@ | |||
1 | using OpenMetaverse; | 1 | using OpenMetaverse; |
2 | using OpenSim.Region.Framework.Scenes; | 2 | using OpenSim.Region.Framework.Scenes; |
3 | 3 | ||
4 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | 4 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule |
5 | { | 5 | { |
6 | class SPAvatar : IAvatar | 6 | class SPAvatar : IAvatar |
7 | { | 7 | { |
8 | private readonly Scene m_rootScene; | 8 | private readonly Scene m_rootScene; |
9 | private readonly UUID m_ID; | 9 | private readonly UUID m_ID; |
10 | 10 | ||
11 | public SPAvatar(Scene scene, UUID ID) | 11 | public SPAvatar(Scene scene, UUID ID) |
12 | { | 12 | { |
13 | m_rootScene = scene; | 13 | m_rootScene = scene; |
14 | m_ID = ID; | 14 | m_ID = ID; |
15 | } | 15 | } |
16 | 16 | ||
17 | private ScenePresence GetSP() | 17 | private ScenePresence GetSP() |
18 | { | 18 | { |
19 | return m_rootScene.GetScenePresence(m_ID); | 19 | return m_rootScene.GetScenePresence(m_ID); |
20 | } | 20 | } |
21 | 21 | ||
22 | public string Name | 22 | public string Name |
23 | { | 23 | { |
24 | get { return GetSP().Name; } | 24 | get { return GetSP().Name; } |
25 | } | 25 | } |
26 | 26 | ||
27 | public UUID GlobalID | 27 | public UUID GlobalID |
28 | { | 28 | { |
29 | get { return m_ID; } | 29 | get { return m_ID; } |
30 | } | 30 | } |
31 | 31 | ||
32 | public Vector3 Position | 32 | public Vector3 Position |
33 | { | 33 | { |
34 | get { return GetSP().AbsolutePosition; } | 34 | get { return GetSP().AbsolutePosition; } |
35 | } | 35 | } |
36 | } | 36 | } |
37 | } | 37 | } |