* 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);
This commit is contained in:
Adam Frisby
2009-04-09 11:09:24 +00:00
parent 1b56fff7c8
commit b529750548
5 changed files with 98 additions and 22 deletions

View File

@@ -25,6 +25,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
using System;
using OpenMetaverse;
using OpenSim.Region.Framework.Scenes;
@@ -49,6 +50,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
public string Name
{
get { return GetSP().Name; }
set { throw new InvalidOperationException("Avatar Names are a read-only property."); }
}
public UUID GlobalID
@@ -56,9 +58,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
get { return m_ID; }
}
public Vector3 Position
public Vector3 WorldPosition
{
get { return GetSP().AbsolutePosition; }
set { GetSP().AbsolutePosition = value; }
}
}
}