C# Класс OpenSim.Region.CoreModules.Framework.EntityTransfer.EntityTransferModule

Наследование: ISharedRegionModule, IEntityTransferModule
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
m_Enabled bool
m_aScene OpenSim.Region.Framework.Scenes.Scene
m_agentsInTransit List

Открытые методы

Метод Описание
AddRegion ( Scene scene ) : void
AgentArrivedAtDestination ( UUID id ) : void
Close ( ) : void
Cross ( SceneObjectGroup grp, System.Vector3 attemptedPosition, bool silent ) : void

Move the given scene object into a new region depending on which region its absolute position has moved into. This method locates the new region handle and offsets the prim position for the new region

Cross ( ScenePresence agent, bool isFlying ) : void
EnableChildAgent ( ScenePresence sp, GridRegion region ) : void

This informs a single neighboring region about agent "avatar". Calls an asynchronous method to do so.. so it doesn't lag the sim.

EnableChildAgents ( ScenePresence sp ) : void

This informs all neighboring regions about agent "avatar". Calls an asynchronous method to do so.. so it doesn't lag the sim.

InformClientToInitiateTeleportToLocationAsync ( ScenePresence agent, uint regionX, uint regionY, System.Vector3 position, Scene initiatingScene ) : void
Initialise ( IConfigSource source ) : void
PostInitialise ( ) : void
RegionLoaded ( Scene scene ) : void
RemoveRegion ( Scene scene ) : void
Teleport ( ScenePresence sp, ulong regionHandle, System.Vector3 position, System.Vector3 lookAt, uint teleportFlags ) : void
TeleportHome ( UUID id, IClientAPI client ) : void

Защищенные методы

Метод Описание
AgentHasMovedAway ( UUID sessionID, bool logout ) : void
CreateAgent ( ScenePresence sp, GridRegion reg, GridRegion finalDestination, AgentCircuitData agentCircuit, uint teleportFlags, string &reason, bool &logout ) : bool
CrossAgentToNewRegionAsync ( ScenePresence agent, System.Vector3 pos, uint neighbourx, uint neighboury, bool isFlying ) : ScenePresence

This Closes child agents on neighboring regions Calls an asynchronous method to do so.. so it doesn't lag the sim.

CrossAttachmentsIntoNewRegion ( GridRegion destination, ScenePresence sp, bool silent ) : bool
CrossPrimGroupIntoNewRegion ( GridRegion destination, SceneObjectGroup grp, bool silent ) : bool

Move the given scene object into a new region

DoTeleport ( ScenePresence sp, GridRegion reg, GridRegion finalDestination, System.Vector3 position, System.Vector3 lookAt, uint teleportFlags, IEventQueue eq ) : void
GetFinalDestination ( GridRegion region ) : GridRegion
IsOutsideRegion ( Scene s, System.Vector3 pos ) : bool
KillEntity ( Scene scene, uint localID ) : void
NeedsClosing ( uint oldRegionX, uint newRegionX, uint oldRegionY, uint newRegionY, GridRegion reg ) : bool
NeedsNewAgent ( uint oldRegionX, uint newRegionX, uint oldRegionY, uint newRegionY ) : bool
OnNewClient ( IClientAPI client ) : void
RequestNeighbours ( Scene pScene, uint pRegionLocX, uint pRegionLocY ) : List
ResetFromTransit ( UUID id ) : bool
SetCallbackURL ( AgentData agent, RegionInfo region ) : void
SetInTransit ( UUID id ) : void
UpdateAgent ( GridRegion reg, GridRegion finalDestination, AgentData agent ) : bool
WaitForCallback ( UUID id ) : bool

Приватные методы

Метод Описание
CrossAgentToNewRegionCompleted ( IAsyncResult iar ) : void
Fail ( ScenePresence sp, GridRegion finalDestination ) : void
InformClientOfNeighbourAsync ( ScenePresence sp, AgentCircuitData a, GridRegion reg, IPEndPoint endPoint, bool newAgent ) : void

Async component for informing client of which neighbours exist

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

InformClientOfNeighbourCompleted ( IAsyncResult iar ) : void
InformClientToInitateTeleportToLocation ( ScenePresence agent, uint regionX, uint regionY, System.Vector3 position, Scene initiatingScene ) : void
InformClientToInitiateTeleportToLocationCompleted ( IAsyncResult iar ) : void
NeighbourHandles ( List neighbours ) : List
NewNeighbours ( List currentNeighbours, List previousNeighbours ) : List
OldNeighbours ( List currentNeighbours, List previousNeighbours ) : List

Описание методов

AddRegion() публичный Метод

public AddRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
Результат void

AgentArrivedAtDestination() публичный Метод

public AgentArrivedAtDestination ( UUID id ) : void
id UUID
Результат void

AgentHasMovedAway() защищенный Метод

protected AgentHasMovedAway ( UUID sessionID, bool logout ) : void
sessionID UUID
logout bool
Результат void

Close() публичный Метод

public Close ( ) : void
Результат void

CreateAgent() защищенный Метод

protected CreateAgent ( ScenePresence sp, GridRegion reg, GridRegion finalDestination, AgentCircuitData agentCircuit, uint teleportFlags, string &reason, bool &logout ) : bool
sp OpenSim.Region.Framework.Scenes.ScenePresence
reg OpenSim.Services.Interfaces.GridRegion
finalDestination OpenSim.Services.Interfaces.GridRegion
agentCircuit OpenSim.Framework.AgentCircuitData
teleportFlags uint
reason string
logout bool
Результат bool

Cross() публичный Метод

Move the given scene object into a new region depending on which region its absolute position has moved into. This method locates the new region handle and offsets the prim position for the new region
public Cross ( SceneObjectGroup grp, System.Vector3 attemptedPosition, bool silent ) : void
grp OpenSim.Region.Framework.Scenes.SceneObjectGroup the scene object that we're crossing
attemptedPosition System.Vector3 the attempted out of region position of the scene object
silent bool
Результат void

Cross() публичный Метод

public Cross ( ScenePresence agent, bool isFlying ) : void
agent OpenSim.Region.Framework.Scenes.ScenePresence
isFlying bool
Результат void

CrossAgentToNewRegionAsync() защищенный Метод

This Closes child agents on neighboring regions Calls an asynchronous method to do so.. so it doesn't lag the sim.
protected CrossAgentToNewRegionAsync ( ScenePresence agent, System.Vector3 pos, uint neighbourx, uint neighboury, bool isFlying ) : ScenePresence
agent OpenSim.Region.Framework.Scenes.ScenePresence
pos System.Vector3
neighbourx uint
neighboury uint
isFlying bool
Результат OpenSim.Region.Framework.Scenes.ScenePresence

CrossAttachmentsIntoNewRegion() защищенный Метод

protected CrossAttachmentsIntoNewRegion ( GridRegion destination, ScenePresence sp, bool silent ) : bool
destination OpenSim.Services.Interfaces.GridRegion
sp OpenSim.Region.Framework.Scenes.ScenePresence
silent bool
Результат bool

CrossPrimGroupIntoNewRegion() защищенный Метод

Move the given scene object into a new region
protected CrossPrimGroupIntoNewRegion ( GridRegion destination, SceneObjectGroup grp, bool silent ) : bool
destination OpenSim.Services.Interfaces.GridRegion
grp OpenSim.Region.Framework.Scenes.SceneObjectGroup Scene Object Group that we're crossing
silent bool
Результат bool

DoTeleport() защищенный Метод

protected DoTeleport ( ScenePresence sp, GridRegion reg, GridRegion finalDestination, System.Vector3 position, System.Vector3 lookAt, uint teleportFlags, IEventQueue eq ) : void
sp OpenSim.Region.Framework.Scenes.ScenePresence
reg OpenSim.Services.Interfaces.GridRegion
finalDestination OpenSim.Services.Interfaces.GridRegion
position System.Vector3
lookAt System.Vector3
teleportFlags uint
eq IEventQueue
Результат void

EnableChildAgent() публичный Метод

This informs a single neighboring region about agent "avatar". Calls an asynchronous method to do so.. so it doesn't lag the sim.
public EnableChildAgent ( ScenePresence sp, GridRegion region ) : void
sp OpenSim.Region.Framework.Scenes.ScenePresence
region OpenSim.Services.Interfaces.GridRegion
Результат void

EnableChildAgents() публичный Метод

This informs all neighboring regions about agent "avatar". Calls an asynchronous method to do so.. so it doesn't lag the sim.
public EnableChildAgents ( ScenePresence sp ) : void
sp OpenSim.Region.Framework.Scenes.ScenePresence
Результат void

GetFinalDestination() защищенный Метод

protected GetFinalDestination ( GridRegion region ) : GridRegion
region OpenSim.Services.Interfaces.GridRegion
Результат OpenSim.Services.Interfaces.GridRegion

InformClientToInitiateTeleportToLocationAsync() публичный Метод

public InformClientToInitiateTeleportToLocationAsync ( ScenePresence agent, uint regionX, uint regionY, System.Vector3 position, Scene initiatingScene ) : void
agent OpenSim.Region.Framework.Scenes.ScenePresence
regionX uint
regionY uint
position System.Vector3
initiatingScene OpenSim.Region.Framework.Scenes.Scene
Результат void

Initialise() публичный Метод

public Initialise ( IConfigSource source ) : void
source IConfigSource
Результат void

IsOutsideRegion() защищенный Метод

protected IsOutsideRegion ( Scene s, System.Vector3 pos ) : bool
s OpenSim.Region.Framework.Scenes.Scene
pos System.Vector3
Результат bool

KillEntity() защищенный Метод

protected KillEntity ( Scene scene, uint localID ) : void
scene OpenSim.Region.Framework.Scenes.Scene
localID uint
Результат void

NeedsClosing() защищенный Метод

protected NeedsClosing ( uint oldRegionX, uint newRegionX, uint oldRegionY, uint newRegionY, GridRegion reg ) : bool
oldRegionX uint
newRegionX uint
oldRegionY uint
newRegionY uint
reg OpenSim.Services.Interfaces.GridRegion
Результат bool

NeedsNewAgent() защищенный Метод

protected NeedsNewAgent ( uint oldRegionX, uint newRegionX, uint oldRegionY, uint newRegionY ) : bool
oldRegionX uint
newRegionX uint
oldRegionY uint
newRegionY uint
Результат bool

OnNewClient() защищенный Метод

protected OnNewClient ( IClientAPI client ) : void
client IClientAPI
Результат void

PostInitialise() публичный Метод

public PostInitialise ( ) : void
Результат void

RegionLoaded() публичный Метод

public RegionLoaded ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
Результат void

RemoveRegion() публичный Метод

public RemoveRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
Результат void

RequestNeighbours() защищенный Метод

protected RequestNeighbours ( Scene pScene, uint pRegionLocX, uint pRegionLocY ) : List
pScene OpenSim.Region.Framework.Scenes.Scene
pRegionLocX uint
pRegionLocY uint
Результат List

ResetFromTransit() защищенный Метод

protected ResetFromTransit ( UUID id ) : bool
id UUID
Результат bool

SetCallbackURL() защищенный Метод

protected SetCallbackURL ( AgentData agent, RegionInfo region ) : void
agent OpenSim.Framework.AgentData
region OpenSim.Framework.RegionInfo
Результат void

SetInTransit() защищенный Метод

protected SetInTransit ( UUID id ) : void
id UUID
Результат void

Teleport() публичный Метод

public Teleport ( ScenePresence sp, ulong regionHandle, System.Vector3 position, System.Vector3 lookAt, uint teleportFlags ) : void
sp OpenSim.Region.Framework.Scenes.ScenePresence
regionHandle ulong
position System.Vector3
lookAt System.Vector3
teleportFlags uint
Результат void

TeleportHome() публичный Метод

public TeleportHome ( UUID id, IClientAPI client ) : void
id UUID
client IClientAPI
Результат void

UpdateAgent() защищенный Метод

protected UpdateAgent ( GridRegion reg, GridRegion finalDestination, AgentData agent ) : bool
reg OpenSim.Services.Interfaces.GridRegion
finalDestination OpenSim.Services.Interfaces.GridRegion
agent OpenSim.Framework.AgentData
Результат bool

WaitForCallback() защищенный Метод

protected WaitForCallback ( UUID id ) : bool
id UUID
Результат bool

Описание свойств

m_Enabled защищенное свойство

protected bool m_Enabled
Результат bool

m_aScene защищенное свойство

protected Scene,OpenSim.Region.Framework.Scenes m_aScene
Результат OpenSim.Region.Framework.Scenes.Scene

m_agentsInTransit защищенное свойство

protected List m_agentsInTransit
Результат List