* 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

@@ -48,7 +48,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
public delegate void OnTouchDelegate(IObject sender, TouchEventArgs e);
public interface IObject
public interface IObject : IEntity
{
#region Events
@@ -91,17 +91,6 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
/// </summary>
uint LocalID { get; }
/// <summary>
/// The global 'world-unique' ID for this object.
/// (Note, may not actually be world unique)
/// </summary>
UUID GlobalID { get; }
/// <summary>
/// The name of this Object.
/// </summary>
String Name { get; set; }
/// <summary>
/// The description assigned to this object.
/// </summary>
@@ -140,11 +129,6 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
/// </summary>
Quaternion OffsetRotation { get; set; }
/// <summary>
/// The position of the object relative to the Scene
/// </summary>
Vector3 WorldPosition { get; set; }
/// <summary>
/// The position of the object relative to a parent object
/// If root, works the same as WorldPosition