C# Класс Universe.Modules.EntityTransfer.EntityTransferModule

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

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

Свойство Тип Описание
m_Enabled bool
m_scene IScene

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

Метод Описание
AddRegion ( IScene scene ) : void
AddSceneObject ( IScene scene, ISceneEntity sceneObject ) : bool

Adds a Scene Object group to the Scene. Verifies that the creator of the object is not banned from the simulator. Checks if the item is an Attachment

CancelTeleport ( UUID AgentID, UUID RegionID ) : void
ClientTeleportHome ( UUID id, IClientAPI client ) : void
Close ( ) : void
Cross ( IScenePresence agent, bool isFlying, GridRegion crossingRegion ) : void
CrossGroupToNewRegion ( ISceneEntity grp, System.Vector3 attemptedPosition, GridRegion destination ) : bool

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

DoTeleport ( IScenePresence sp, GridRegion finalDestination, System.Vector3 position, System.Vector3 lookAt, uint teleportFlags ) : void
FailedToTeleportAgent ( GridRegion failedCrossingRegion, UUID agentID, string reason, bool isCrossing ) : void
IncomingChildAgentDataUpdate ( IScene scene, AgentData cAgentData ) : bool

We've got an update about an agent that sees into this region, send it to ScenePresence for processing It's the full data.

IncomingChildAgentDataUpdate ( IScene scene, AgentPosition cAgentData ) : bool

We've got an update about an agent that sees into this region, send it to ScenePresence for processing It's only positional data

IncomingCloseAgent ( IScene scene, UUID agentID ) : bool

Tell a single agent to disconnect from the region.

IncomingCreateObject ( UUID regionID, ISceneEntity sog ) : bool

Called when objects or attachments cross the border, or teleport, between regions.

IncomingRetrieveRootAgent ( IScene scene, UUID id, bool agentIsLeaving, AgentData &agent, AgentCircuitData &circuitData ) : bool
Initialize ( IConfigSource source ) : void
InternalCross ( IScenePresence agent, System.Vector3 attemptedPos, bool isFlying, GridRegion crossingRegion ) : void
MakeChildAgent ( IScenePresence sp, GridRegion finalDestination, bool isCrossing ) : void
NewUserConnection ( IScene scene, AgentCircuitData agent, uint teleportFlags, CreateAgentResponse &response ) : bool

Do the work necessary to initiate a new user connection for a particular scene. At the moment, this consists of setting up the caps infrastructure The return bool should allow for connections to be refused, but as not all calling paths take proper notice of it let, we allowed banned users in still.

RegionLoaded ( IScene scene ) : void
RemoveRegion ( IScene scene ) : void
RequestTeleportCancel ( IClientAPI client ) : void
RequestTeleportLandmark ( IClientAPI remoteClient, UUID regionID, System.Vector3 position ) : void

Tries to teleport agent to landmark.

RequestTeleportLocation ( IClientAPI remoteClient, GridRegion reg, System.Vector3 position, System.Vector3 lookAt, uint teleportFlags ) : void

Tries to teleport agent to other region.

RequestTeleportLocation ( IClientAPI remoteClient, string regionName, System.Vector3 position, System.Vector3 lookat, uint teleportFlags ) : void

Tries to teleport agent to other region.

RequestTeleportLocation ( IClientAPI remoteClient, ulong regionHandle, System.Vector3 position, System.Vector3 lookAt, uint teleportFlags ) : void

Tries to teleport agent to other region.

Teleport ( IScenePresence sp, GridRegion finalDestination, System.Vector3 position, System.Vector3 lookAt, uint teleportFlags ) : void
Teleport ( IScenePresence sp, ulong regionHandle, System.Vector3 position, System.Vector3 lookAt, uint teleportFlags ) : void
TeleportHome ( UUID id, IClientAPI client ) : bool

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

Метод Описание
AuthorizeUser ( IScene scene, AgentCircuitData agent, string &reason ) : bool

Verify if the user can connect to this region. Checks the banlist and ensures that the region is set for public access

CacheUserInfo ( IScene scene, CachedUserInfo cache ) : void
CrossPrimGroupIntoNewRegion ( GridRegion destination, ISceneEntity grp, System.Vector3 attemptedPos ) : bool

Move the given scene object into a new region

EventManager_OnNewPresence ( IScenePresence sp ) : void
KillAttachments ( IScenePresence agent ) : void
KillEntities ( IScenePresence sp, IEntity grp ) : void
KillEntity ( IScene scene, IEntity entity ) : void
OnClosingClient ( IClientAPI client ) : void
OnNewClient ( IClientAPI client ) : void

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

Метод Описание
BuildCircuitDataForPresence ( IScenePresence sp, System.Vector3 position ) : AgentCircuitData

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

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

public AddRegion ( IScene scene ) : void
scene IScene
Результат void

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

Adds a Scene Object group to the Scene. Verifies that the creator of the object is not banned from the simulator. Checks if the item is an Attachment
public AddSceneObject ( IScene scene, ISceneEntity sceneObject ) : bool
scene IScene
sceneObject ISceneEntity
Результат bool

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

Verify if the user can connect to this region. Checks the banlist and ensures that the region is set for public access
protected AuthorizeUser ( IScene scene, AgentCircuitData agent, string &reason ) : bool
scene IScene
agent Universe.Framework.PresenceInfo.AgentCircuitData The circuit data for the agent
reason string outputs the reason to this string
Результат bool

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

protected CacheUserInfo ( IScene scene, CachedUserInfo cache ) : void
scene IScene
cache Universe.Framework.Services.CachedUserInfo
Результат void

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

public CancelTeleport ( UUID AgentID, UUID RegionID ) : void
AgentID UUID
RegionID UUID
Результат void

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

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

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

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

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

public Cross ( IScenePresence agent, bool isFlying, GridRegion crossingRegion ) : void
agent IScenePresence
isFlying bool
crossingRegion Universe.Framework.Services.GridRegion
Результат void

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

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 CrossGroupToNewRegion ( ISceneEntity grp, System.Vector3 attemptedPosition, GridRegion destination ) : bool
grp ISceneEntity the scene object that we're crossing
attemptedPosition System.Vector3 the attempted out of region position of the scene object
destination Universe.Framework.Services.GridRegion
Результат bool

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

Move the given scene object into a new region
protected CrossPrimGroupIntoNewRegion ( GridRegion destination, ISceneEntity grp, System.Vector3 attemptedPos ) : bool
destination Universe.Framework.Services.GridRegion
grp ISceneEntity Scene Object Group that we're crossing
attemptedPos System.Vector3
Результат bool

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

public DoTeleport ( IScenePresence sp, GridRegion finalDestination, System.Vector3 position, System.Vector3 lookAt, uint teleportFlags ) : void
sp IScenePresence
finalDestination Universe.Framework.Services.GridRegion
position System.Vector3
lookAt System.Vector3
teleportFlags uint
Результат void

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

protected EventManager_OnNewPresence ( IScenePresence sp ) : void
sp IScenePresence
Результат void

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

public FailedToTeleportAgent ( GridRegion failedCrossingRegion, UUID agentID, string reason, bool isCrossing ) : void
failedCrossingRegion Universe.Framework.Services.GridRegion
agentID UUID
reason string
isCrossing bool
Результат void

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

We've got an update about an agent that sees into this region, send it to ScenePresence for processing It's the full data.
public IncomingChildAgentDataUpdate ( IScene scene, AgentData cAgentData ) : bool
scene IScene
cAgentData Universe.Framework.ClientInterfaces.AgentData /// Agent that contains all of the relevant things about an agent. /// Appearance, animations, position, etc. ///
Результат bool

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

We've got an update about an agent that sees into this region, send it to ScenePresence for processing It's only positional data
public IncomingChildAgentDataUpdate ( IScene scene, AgentPosition cAgentData ) : bool
scene IScene
cAgentData Universe.Framework.ClientInterfaces.AgentPosition AgentPosition that contains agent positional data so we can know what to send
Результат bool

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

Tell a single agent to disconnect from the region.
public IncomingCloseAgent ( IScene scene, UUID agentID ) : bool
scene IScene
agentID UUID
Результат bool

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

Called when objects or attachments cross the border, or teleport, between regions.
public IncomingCreateObject ( UUID regionID, ISceneEntity sog ) : bool
regionID UUID
sog ISceneEntity
Результат bool

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

public IncomingRetrieveRootAgent ( IScene scene, UUID id, bool agentIsLeaving, AgentData &agent, AgentCircuitData &circuitData ) : bool
scene IScene
id UUID
agentIsLeaving bool
agent Universe.Framework.ClientInterfaces.AgentData
circuitData Universe.Framework.PresenceInfo.AgentCircuitData
Результат bool

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

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

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

public InternalCross ( IScenePresence agent, System.Vector3 attemptedPos, bool isFlying, GridRegion crossingRegion ) : void
agent IScenePresence
attemptedPos System.Vector3
isFlying bool
crossingRegion Universe.Framework.Services.GridRegion
Результат void

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

protected KillAttachments ( IScenePresence agent ) : void
agent IScenePresence
Результат void

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

protected KillEntities ( IScenePresence sp, IEntity grp ) : void
sp IScenePresence
grp IEntity
Результат void

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

protected KillEntity ( IScene scene, IEntity entity ) : void
scene IScene
entity IEntity
Результат void

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

public MakeChildAgent ( IScenePresence sp, GridRegion finalDestination, bool isCrossing ) : void
sp IScenePresence
finalDestination Universe.Framework.Services.GridRegion
isCrossing bool
Результат void

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

Do the work necessary to initiate a new user connection for a particular scene. At the moment, this consists of setting up the caps infrastructure The return bool should allow for connections to be refused, but as not all calling paths take proper notice of it let, we allowed banned users in still.
public NewUserConnection ( IScene scene, AgentCircuitData agent, uint teleportFlags, CreateAgentResponse &response ) : bool
scene IScene
agent Universe.Framework.PresenceInfo.AgentCircuitData CircuitData of the agent who is connecting
teleportFlags uint
response Universe.Framework.Services.CreateAgentResponse /// Outputs the reason for the false response on this string, /// If the agent was accepted, this will be the Caps SEED for the region ///
Результат bool

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

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

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

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

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

public RegionLoaded ( IScene scene ) : void
scene IScene
Результат void

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

public RemoveRegion ( IScene scene ) : void
scene IScene
Результат void

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

public RequestTeleportCancel ( IClientAPI client ) : void
client IClientAPI
Результат void

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

Tries to teleport agent to landmark.
public RequestTeleportLandmark ( IClientAPI remoteClient, UUID regionID, System.Vector3 position ) : void
remoteClient IClientAPI
regionID UUID
position System.Vector3
Результат void

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

Tries to teleport agent to other region.
public RequestTeleportLocation ( IClientAPI remoteClient, GridRegion reg, System.Vector3 position, System.Vector3 lookAt, uint teleportFlags ) : void
remoteClient IClientAPI
reg Universe.Framework.Services.GridRegion
position System.Vector3
lookAt System.Vector3
teleportFlags uint
Результат void

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

Tries to teleport agent to other region.
public RequestTeleportLocation ( IClientAPI remoteClient, string regionName, System.Vector3 position, System.Vector3 lookat, uint teleportFlags ) : void
remoteClient IClientAPI
regionName string
position System.Vector3
lookat System.Vector3
teleportFlags uint
Результат void

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

Tries to teleport agent to other region.
public RequestTeleportLocation ( IClientAPI remoteClient, ulong regionHandle, System.Vector3 position, System.Vector3 lookAt, uint teleportFlags ) : void
remoteClient IClientAPI
regionHandle ulong
position System.Vector3
lookAt System.Vector3
teleportFlags uint
Результат void

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

public Teleport ( IScenePresence sp, GridRegion finalDestination, System.Vector3 position, System.Vector3 lookAt, uint teleportFlags ) : void
sp IScenePresence
finalDestination Universe.Framework.Services.GridRegion
position System.Vector3
lookAt System.Vector3
teleportFlags uint
Результат void

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

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

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

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

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

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

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

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

protected IScene m_scene
Результат IScene