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/IWorld.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/IWorld.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/IWorld.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/IWorld.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/IWorld.cs index b35b57d..e7d9024 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/IWorld.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/IWorld.cs | |||
@@ -25,13 +25,25 @@ | |||
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; | ||
29 | |||
28 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | 30 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule |
29 | { | 31 | { |
32 | public class ChatEventArgs : EventArgs | ||
33 | { | ||
34 | public string Text; | ||
35 | public IEntity Sender; | ||
36 | } | ||
37 | |||
38 | public delegate void OnChatDelegate(IWorld sender, ChatEventArgs e); | ||
39 | |||
30 | public interface IWorld | 40 | public interface IWorld |
31 | { | 41 | { |
32 | IObjectAccessor Objects { get; } | 42 | IObjectAccessor Objects { get; } |
33 | IAvatar[] Avatars { get; } | 43 | IAvatar[] Avatars { get; } |
34 | IParcel[] Parcels { get; } | 44 | IParcel[] Parcels { get; } |
35 | IHeightmap Terrain { get; } | 45 | IHeightmap Terrain { get; } |
46 | |||
47 | event OnChatDelegate OnChat; | ||
36 | } | 48 | } |
37 | } | 49 | } |