28 using System.Collections.Generic;
29 using System.Reflection;
32 using OpenSim.Framework;
33 using OpenSim.Region.Framework.Scenes;
34 using OpenSim.Services.Interfaces;
36 namespace OpenSim.
Region.CoreModules.ServiceConnectorsOut.Presence
43 private Scene m_aScene;
47 m_PresenceService = presenceservice;
52 scene.EventManager.OnMakeRootAgent += OnMakeRootAgent;
53 scene.EventManager.OnNewClient += OnNewClient;
55 m_PresenceService.LogoutRegionAgents(scene.RegionInfo.RegionID);
63 scene.EventManager.OnMakeRootAgent -= OnMakeRootAgent;
64 scene.EventManager.OnNewClient -= OnNewClient;
66 m_PresenceService.LogoutRegionAgents(scene.RegionInfo.RegionID);
73 m_PresenceService.ReportAgent(sp.ControllingClient.SessionId, sp.Scene.RegionInfo.RegionID);
78 client.OnConnectionClosed += OnConnectionClose;
86 m_PresenceService.LogoutAgent(client.SessionId);
PresenceDetector(IPresenceService presenceservice)
void OnNewClient(IClientAPI client)
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...
void AddRegion(Scene scene)
void OnMakeRootAgent(ScenePresence sp)
void OnConnectionClose(IClientAPI client)
void RemoveRegion(Scene scene)
PresenceType PresenceType