From cb704ecde19c512bfa4fc0b317d37fec63e76713 Mon Sep 17 00:00:00 2001 From: diva Date: Mon, 25 May 2009 20:30:24 +0000 Subject: Beginning of refactoring RESTComms/LocalComms in the new style of services and connectors. This commit has the beginning of the In connector, not the Out. Nothing of this is finished yet, and it doesn't run. But it should compile ok. --- OpenSim/Services/Interfaces/ISimulationService.cs | 81 +++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 OpenSim/Services/Interfaces/ISimulationService.cs (limited to 'OpenSim/Services/Interfaces/ISimulationService.cs') diff --git a/OpenSim/Services/Interfaces/ISimulationService.cs b/OpenSim/Services/Interfaces/ISimulationService.cs new file mode 100644 index 0000000..da5410b --- /dev/null +++ b/OpenSim/Services/Interfaces/ISimulationService.cs @@ -0,0 +1,81 @@ +using System; +using OpenSim.Framework; +using OpenMetaverse; + +namespace OpenSim.Services.Interfaces +{ + public interface ISimulationService + { + #region Agents + + bool CreateAgent(ulong regionHandle, AgentCircuitData aCircuit, out string reason); + + /// + /// Full child agent update. + /// + /// + /// + /// + bool UpdateAgent(ulong regionHandle, AgentData data); + + /// + /// Short child agent update, mostly for position. + /// + /// + /// + /// + bool UpdateAgent(ulong regionHandle, AgentPosition data); + + bool RetrieveAgent(ulong regionHandle, UUID id, out IAgentData agent); + + /// + /// Message from receiving region to departing region, telling it got contacted by the client. + /// When sent over REST, it invokes the opaque uri. + /// + /// + /// + /// + /// + bool ReleaseAgent(ulong regionHandle, UUID id, string uri); + + /// + /// Close agent. + /// + /// + /// + /// + bool CloseAgent(ulong regionHandle, UUID id); + + #endregion Agents + + #region Objects + + /// + /// Create an object in the destination region. This message is used primarily for prim crossing. + /// + /// + /// + /// + /// + bool CreateObject(ulong regionHandle, ISceneObject sog, bool isLocalCall); + + /// + /// Create an object from the user's inventory in the destination region. + /// This message is used primarily by clients. + /// + /// + /// + /// + /// + bool CreateObject(ulong regionHandle, UUID userID, UUID itemID); + + #endregion Objects + + #region Regions + + bool HelloNeighbour(ulong regionHandle, RegionInfo thisRegion); + + #endregion Regions + + } +} -- cgit v1.1