diff options
author | Adam Frisby | 2009-04-09 11:09:24 +0000 |
---|---|---|
committer | Adam Frisby | 2009-04-09 11:09:24 +0000 |
commit | b529750548b74ae16c5b2e0f5393e2ef87626d50 (patch) | |
tree | 5307c3abb39a6c3766ebd73e6c831a95807a0e9f /OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs | |
parent | * Implements retrieving child primitives via World.Objects[id] (MRM) (diff) | |
download | opensim-SC-b529750548b74ae16c5b2e0f5393e2ef87626d50.zip opensim-SC-b529750548b74ae16c5b2e0f5393e2ef87626d50.tar.gz opensim-SC-b529750548b74ae16c5b2e0f5393e2ef87626d50.tar.bz2 opensim-SC-b529750548b74ae16c5b2e0f5393e2ef87626d50.tar.xz |
* Moves Name, GlobalID and WorldPosition into new IEntity interface.
* Avatar and Object now inherit from IEntity.
* Avatar.Position is now Avatar.WorldPosition to match IObject property.
* Implements event World.OnChat += delegate(IWorld sender, ChatEventArgs e);
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs index 25b547c..41074c3 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SPAvatar.cs | |||
@@ -25,6 +25,7 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
28 | using OpenMetaverse; | 29 | using OpenMetaverse; |
29 | using OpenSim.Region.Framework.Scenes; | 30 | using OpenSim.Region.Framework.Scenes; |
30 | 31 | ||
@@ -49,6 +50,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
49 | public string Name | 50 | public string Name |
50 | { | 51 | { |
51 | get { return GetSP().Name; } | 52 | get { return GetSP().Name; } |
53 | set { throw new InvalidOperationException("Avatar Names are a read-only property."); } | ||
52 | } | 54 | } |
53 | 55 | ||
54 | public UUID GlobalID | 56 | public UUID GlobalID |
@@ -56,9 +58,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
56 | get { return m_ID; } | 58 | get { return m_ID; } |
57 | } | 59 | } |
58 | 60 | ||
59 | public Vector3 Position | 61 | public Vector3 WorldPosition |
60 | { | 62 | { |
61 | get { return GetSP().AbsolutePosition; } | 63 | get { return GetSP().AbsolutePosition; } |
64 | set { GetSP().AbsolutePosition = value; } | ||
62 | } | 65 | } |
63 | } | 66 | } |
64 | } | 67 | } |