From 98eda9ebdb168957725c0476abc12cca4dcccd88 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Thu, 9 Apr 2009 13:22:27 +0000 Subject: * Adds World.OnNewUser += delegate(IWorld sender, NewUserEventArgs e); * This event fires when a new avatar is created within the Scene. (Internally corresponds to EventManager.OnNewPresence) --- OpenSim/Region/OptionalModules/Scripting/Minimodule/IWorld.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/IWorld.cs') diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/IWorld.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/IWorld.cs index e7d9024..acb569f 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/IWorld.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/IWorld.cs @@ -29,6 +29,13 @@ using System; namespace OpenSim.Region.OptionalModules.Scripting.Minimodule { + public class NewUserEventArgs : EventArgs + { + public IAvatar Avatar; + } + + public delegate void OnNewUserDelegate(IWorld sender, NewUserEventArgs e); + public class ChatEventArgs : EventArgs { public string Text; @@ -45,5 +52,6 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule IHeightmap Terrain { get; } event OnChatDelegate OnChat; + event OnNewUserDelegate OnNewUser; } } -- cgit v1.1