C# Class Universe.Services.AgentProcessing

Inheritance: IService, IAgentProcessing
Mostra file Open project: Virtual-Universe/Virtual-Universe

Protected Properties

Property Type Description
MaxVariableRegionSight int
VariableRegionSight bool
_config IConfigSource
m_capsService ICapsService
m_enabled bool
m_registry IRegistryCore

Public Methods

Method Description
CloseNeighborAgents ( GridRegion oldRegion, GridRegion destination, UUID agentID ) : void
CrossAgent ( GridRegion crossingRegion, System.Vector3 pos, System.Vector3 velocity, AgentCircuitData circuit, AgentData cAgent, UUID agentID, UUID requestingRegion, string &reason ) : bool
EnableChildAgents ( UUID agentID, UUID requestingRegion, int drawDistance, AgentCircuitData circuit ) : void
EnableChildAgentsForRegion ( GridRegion requestingRegion ) : bool
FinishedStartup ( ) : void
GetNeighbors ( List scopeIDs, GridRegion region, int userDrawDistance ) : List
InformClientOfNeighbor ( UUID agentID, UUID requestingRegion, AgentCircuitData circuitData, GridRegion &neighbor, uint teleportFlags, AgentData agentData, string &reason ) : bool

Async component for informing client of which neighbors exist

This needs to run asynchronously, as a network timeout may block the thread for a long while

Initialize ( IConfigSource config, IRegistryCore registry ) : void
LogOutAllAgentsForRegion ( UUID requestingRegion ) : void
LoginAgent ( GridRegion region, AgentCircuitData aCircuit, List friendsToInform ) : LoginAgentArgs
LogoutAgent ( IRegionClientCapsService regionCaps, bool kickRootAgent ) : void
SendChildAgentUpdate ( AgentPosition agentpos, IRegionClientCapsService regionCaps ) : void
SendChildAgentUpdateAsync ( AgentPosition agentpos, IRegionClientCapsService regionCaps ) : void
SendCloseChildAgent ( UUID agentID, IEnumerable regionsToClose ) : void
Start ( IConfigSource config, IRegistryCore registry ) : void
TeleportAgent ( GridRegion &destination, uint teleportFlags, AgentCircuitData circuit, AgentData agentData, UUID agentID, UUID requestingRegion, string &reason ) : bool

Protected Methods

Method Description
OnMessageReceived ( OSDMap message ) : OSDMap
ResetFromTransit ( UUID agentID ) : void
SetUserInTransit ( UUID agentID ) : bool
WaitForCallback ( UUID agentID ) : bool
WaitForCallback ( UUID agentID, bool &callWasCanceled ) : bool

Private Methods

Method Description
CreateAgent ( GridRegion region, IRegionClientCapsService regionCaps, AgentCircuitData &aCircuit, ISimulationService SimulationService, List friendsToInform, CreateAgentResponse &response ) : bool
GetRegions ( IClientCapsService iClientCapsService ) : List

Method Details

CloseNeighborAgents() public method

public CloseNeighborAgents ( GridRegion oldRegion, GridRegion destination, UUID agentID ) : void
oldRegion Universe.Framework.Services.GridRegion
destination Universe.Framework.Services.GridRegion
agentID UUID
return void

CrossAgent() public method

public CrossAgent ( GridRegion crossingRegion, System.Vector3 pos, System.Vector3 velocity, AgentCircuitData circuit, AgentData cAgent, UUID agentID, UUID requestingRegion, string &reason ) : bool
crossingRegion Universe.Framework.Services.GridRegion
pos System.Vector3
velocity System.Vector3
circuit Universe.Framework.PresenceInfo.AgentCircuitData
cAgent Universe.Framework.ClientInterfaces.AgentData
agentID UUID
requestingRegion UUID
reason string
return bool

EnableChildAgents() public method

public EnableChildAgents ( UUID agentID, UUID requestingRegion, int drawDistance, AgentCircuitData circuit ) : void
agentID UUID
requestingRegion UUID
drawDistance int
circuit Universe.Framework.PresenceInfo.AgentCircuitData
return void

EnableChildAgentsForRegion() public method

public EnableChildAgentsForRegion ( GridRegion requestingRegion ) : bool
requestingRegion Universe.Framework.Services.GridRegion
return bool

FinishedStartup() public method

public FinishedStartup ( ) : void
return void

GetNeighbors() public method

public GetNeighbors ( List scopeIDs, GridRegion region, int userDrawDistance ) : List
scopeIDs List
region Universe.Framework.Services.GridRegion
userDrawDistance int
return List

InformClientOfNeighbor() public method

Async component for informing client of which neighbors exist
This needs to run asynchronously, as a network timeout may block the thread for a long while
public InformClientOfNeighbor ( UUID agentID, UUID requestingRegion, AgentCircuitData circuitData, GridRegion &neighbor, uint teleportFlags, AgentData agentData, string &reason ) : bool
agentID UUID
requestingRegion UUID
circuitData Universe.Framework.PresenceInfo.AgentCircuitData
neighbor Universe.Framework.Services.GridRegion
teleportFlags uint
agentData Universe.Framework.ClientInterfaces.AgentData
reason string
return bool

Initialize() public method

public Initialize ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

LogOutAllAgentsForRegion() public method

public LogOutAllAgentsForRegion ( UUID requestingRegion ) : void
requestingRegion UUID
return void

LoginAgent() public method

public LoginAgent ( GridRegion region, AgentCircuitData aCircuit, List friendsToInform ) : LoginAgentArgs
region Universe.Framework.Services.GridRegion
aCircuit Universe.Framework.PresenceInfo.AgentCircuitData
friendsToInform List
return Universe.Framework.Services.LoginAgentArgs

LogoutAgent() public method

public LogoutAgent ( IRegionClientCapsService regionCaps, bool kickRootAgent ) : void
regionCaps IRegionClientCapsService
kickRootAgent bool
return void

OnMessageReceived() protected method

protected OnMessageReceived ( OSDMap message ) : OSDMap
message OSDMap
return OSDMap

ResetFromTransit() protected method

protected ResetFromTransit ( UUID agentID ) : void
agentID UUID
return void

SendChildAgentUpdate() public method

public SendChildAgentUpdate ( AgentPosition agentpos, IRegionClientCapsService regionCaps ) : void
agentpos Universe.Framework.ClientInterfaces.AgentPosition
regionCaps IRegionClientCapsService
return void

SendChildAgentUpdateAsync() public method

public SendChildAgentUpdateAsync ( AgentPosition agentpos, IRegionClientCapsService regionCaps ) : void
agentpos Universe.Framework.ClientInterfaces.AgentPosition
regionCaps IRegionClientCapsService
return void

SendCloseChildAgent() public method

public SendCloseChildAgent ( UUID agentID, IEnumerable regionsToClose ) : void
agentID UUID
regionsToClose IEnumerable
return void

SetUserInTransit() protected method

protected SetUserInTransit ( UUID agentID ) : bool
agentID UUID
return bool

Start() public method

public Start ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

TeleportAgent() public method

public TeleportAgent ( GridRegion &destination, uint teleportFlags, AgentCircuitData circuit, AgentData agentData, UUID agentID, UUID requestingRegion, string &reason ) : bool
destination Universe.Framework.Services.GridRegion
teleportFlags uint
circuit Universe.Framework.PresenceInfo.AgentCircuitData
agentData Universe.Framework.ClientInterfaces.AgentData
agentID UUID
requestingRegion UUID
reason string
return bool

WaitForCallback() protected method

protected WaitForCallback ( UUID agentID ) : bool
agentID UUID
return bool

WaitForCallback() protected method

protected WaitForCallback ( UUID agentID, bool &callWasCanceled ) : bool
agentID UUID
callWasCanceled bool
return bool

Property Details

MaxVariableRegionSight protected_oe property

protected int MaxVariableRegionSight
return int

VariableRegionSight protected_oe property

protected bool VariableRegionSight
return bool

_config protected_oe property

protected IConfigSource _config
return IConfigSource

m_capsService protected_oe property

protected ICapsService m_capsService
return ICapsService

m_enabled protected_oe property

protected bool m_enabled
return bool

m_registry protected_oe property

protected IRegistryCore m_registry
return IRegistryCore