From 37dd174697c0bcc201f8d8e4d7569c2a51f53757 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Tue, 1 May 2012 17:52:30 +0100
Subject: refactor: Split most of EntityTransferModule.Teleport() into its same
region and different region teleport components.
DoTeleport() now retrives IEventQueue itself rather than requiring it to be passed in.
---
.../Framework/Interfaces/IEntityTransferModule.cs | 37 +++++++++++++++++++---
1 file changed, 33 insertions(+), 4 deletions(-)
(limited to 'OpenSim/Region/Framework/Interfaces')
diff --git a/OpenSim/Region/Framework/Interfaces/IEntityTransferModule.cs b/OpenSim/Region/Framework/Interfaces/IEntityTransferModule.cs
index 07e97d5..18e9e3c 100644
--- a/OpenSim/Region/Framework/Interfaces/IEntityTransferModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/IEntityTransferModule.cs
@@ -37,12 +37,41 @@ namespace OpenSim.Region.Framework.Interfaces
{
public interface IEntityTransferModule
{
- void Teleport(ScenePresence agent, ulong regionHandle, Vector3 position,
- Vector3 lookAt, uint teleportFlags);
+ ///
+ /// Teleport an agent within the same or to a different region.
+ ///
+ ///
+ ///
+ /// The handle of the destination region. If it's the same as the region currently
+ /// occupied by the agent then the teleport will be within that region.
+ ///
+ ///
+ ///
+ ///
+ void Teleport(ScenePresence agent, ulong regionHandle, Vector3 position, Vector3 lookAt, uint teleportFlags);
- void DoTeleport(ScenePresence sp, GridRegion reg, GridRegion finalDestination,
- Vector3 position, Vector3 lookAt, uint teleportFlags, IEventQueue eq);
+ ///
+ /// Teleport an agent directly to a given region without checking whether the region should be subsituted.
+ ///
+ ///
+ /// Please use Teleport() instead unless you know exactly what you're doing.
+ /// Do not use for same region teleports.
+ ///
+ ///
+ ///
+ /// /param>
+ ///
+ ///
+ ///
+ void DoTeleport(
+ ScenePresence sp, GridRegion reg, GridRegion finalDestination,
+ Vector3 position, Vector3 lookAt, uint teleportFlags);
+ ///
+ /// Teleports the agent for the given client to their home destination.
+ ///
+ ///
+ ///
void TeleportHome(UUID id, IClientAPI client);
bool Cross(ScenePresence agent, bool isFlying);
--
cgit v1.1