28 using System.Collections.Generic;
29 using System.Reflection;
31 using OpenSim.Framework;
32 using OpenSim.Region.Framework.Scenes;
33 using OpenSim.Services.Interfaces;
42 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
48 m_GridUserService = guservice;
49 m_log.DebugFormat(
"[ACTIVITY DETECTOR]: starting ");
56 scene.EventManager.OnMakeRootAgent += OnMakeRootAgent;
57 scene.EventManager.OnNewClient += OnNewClient;
62 scene.EventManager.OnMakeRootAgent -= OnMakeRootAgent;
63 scene.EventManager.OnNewClient -= OnNewClient;
75 m_GridUserService.SetLastPosition(
76 userid, UUID.Zero, sp.Scene.RegionInfo.RegionID, sp.AbsolutePosition, sp.Lookat);
83 client.OnConnectionClosed += OnConnectionClose;
100 Scene s = (Scene)client.
Scene;
104 m_GridUserService.LoggedOut(
105 userId, client.SessionId, client.Scene.RegionInfo.RegionID,
106 client.SceneAgent.AbsolutePosition, client.SceneAgent.Lookat);
void OnNewClient(IClientAPI client)
Scene Scene
The scene to which this entity belongs
void OnMakeRootAgent(ScenePresence sp)
IUserManagement UserManagementModule
bool IsChildAgent
If true, then the agent has no avatar in the scene. The agent exists to relay data from a region that...
PresenceType
Indicate the type of ScenePresence.
ISceneAgent SceneAgent
The scene agent for this client. This will only be set if the client has an agent in a scene (i...
ActivityDetector(IGridUserService guservice)
void OnConnectionClose(IClientAPI client)
void RemoveRegion(Scene scene)
Interactive OpenSim region server
PresenceType PresenceType
string GetUserUUI(UUID uuid)
void AddRegion(Scene scene)