diff options
author | Teravus Ovares | 2007-12-10 21:12:38 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-12-10 21:12:38 +0000 |
commit | 2349dc2e27becef11ca1eda2602a99f1a583e6f7 (patch) | |
tree | fe31e46ac53d8fdaf4679f483c3d8bf06e5cb48d /OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs | |
parent | * More refactoring to prepare for draw distance based agent sim notification. (diff) | |
download | opensim-SC-2349dc2e27becef11ca1eda2602a99f1a583e6f7.zip opensim-SC-2349dc2e27becef11ca1eda2602a99f1a583e6f7.tar.gz opensim-SC-2349dc2e27becef11ca1eda2602a99f1a583e6f7.tar.bz2 opensim-SC-2349dc2e27becef11ca1eda2602a99f1a583e6f7.tar.xz |
* Added comments to many methods in the listed files.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs index 68bb3b5..ba9bf7b 100644 --- a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs +++ b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs | |||
@@ -189,7 +189,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
189 | } | 189 | } |
190 | 190 | ||
191 | /// <summary> | 191 | /// <summary> |
192 | /// | 192 | /// This informs all neighboring regions about agent "avatar". |
193 | /// Calls an asynchronous method to do so.. so it doesn't lag the sim. | ||
193 | /// </summary> | 194 | /// </summary> |
194 | public void EnableNeighbourChildAgents(ScenePresence avatar, List<RegionInfo> lstneighbours) | 195 | public void EnableNeighbourChildAgents(ScenePresence avatar, List<RegionInfo> lstneighbours) |
195 | { | 196 | { |
@@ -222,6 +223,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
222 | } | 223 | } |
223 | } | 224 | } |
224 | } | 225 | } |
226 | /// <summary> | ||
227 | /// This informs a single neighboring region about agent "avatar". | ||
228 | /// Calls an asynchronous method to do so.. so it doesn't lag the sim. | ||
229 | /// </summary> | ||
225 | public void InformNeighborChildAgent(ScenePresence avatar, RegionInfo region, List<RegionInfo> neighbours) | 230 | public void InformNeighborChildAgent(ScenePresence avatar, RegionInfo region, List<RegionInfo> neighbours) |
226 | { | 231 | { |
227 | AgentCircuitData agent = avatar.ControllingClient.RequestClientInfo(); | 232 | AgentCircuitData agent = avatar.ControllingClient.RequestClientInfo(); |
@@ -260,7 +265,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
260 | MainLog.Instance.Notice("INTERGRID", "Failed to inform neighbors that I'm here"); | 265 | MainLog.Instance.Notice("INTERGRID", "Failed to inform neighbors that I'm here"); |
261 | } | 266 | } |
262 | } | 267 | } |
263 | 268 | /// <summary> | |
269 | /// Called by scene when region is initialized (not always when it's listening for agents) | ||
270 | /// This is an inter-region message that informs the surrounding neighbors that the sim is up. | ||
271 | /// </summary> | ||
264 | public void InformNeighborsThatRegionisUp(RegionInfo region) | 272 | public void InformNeighborsThatRegionisUp(RegionInfo region) |
265 | { | 273 | { |
266 | //MainLog.Instance.Verbose("INTER", debugRegionName + ": SceneCommunicationService: Sending InterRegion Notification that region is up " + region.RegionName); | 274 | //MainLog.Instance.Verbose("INTER", debugRegionName + ": SceneCommunicationService: Sending InterRegion Notification that region is up " + region.RegionName); |
@@ -286,6 +294,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
286 | } | 294 | } |
287 | public delegate void SendChildAgentDataUpdateDelegate(ulong regionHandle, ChildAgentDataUpdate cAgentData); | 295 | public delegate void SendChildAgentDataUpdateDelegate(ulong regionHandle, ChildAgentDataUpdate cAgentData); |
288 | 296 | ||
297 | /// <summary> | ||
298 | /// This informs all neighboring regions about the settings of it's child agent. | ||
299 | /// Calls an asynchronous method to do so.. so it doesn't lag the sim. | ||
300 | /// | ||
301 | /// This contains information, such as, Draw Distance, Camera location, Current Position, Current throttle settings, etc. | ||
302 | /// | ||
303 | /// </summary> | ||
289 | private void SendChildAgentDataUpdateAsync(ulong regionHandle, ChildAgentDataUpdate cAgentData) | 304 | private void SendChildAgentDataUpdateAsync(ulong regionHandle, ChildAgentDataUpdate cAgentData) |
290 | { | 305 | { |
291 | MainLog.Instance.Notice("INTERGRID", "Informing a neighbor about my agent."); | 306 | MainLog.Instance.Notice("INTERGRID", "Informing a neighbor about my agent."); |
@@ -317,7 +332,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
317 | 332 | ||
318 | 333 | ||
319 | /// <summary> | 334 | /// <summary> |
320 | /// | 335 | /// Helper function to request neighbors from grid-comms |
321 | /// </summary> | 336 | /// </summary> |
322 | /// <param name="regionHandle"></param> | 337 | /// <param name="regionHandle"></param> |
323 | /// <returns></returns> | 338 | /// <returns></returns> |
@@ -328,7 +343,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
328 | } | 343 | } |
329 | 344 | ||
330 | /// <summary> | 345 | /// <summary> |
331 | /// | 346 | /// Requests map blocks in area of minX, maxX, minY, MaxY in world cordinates |
332 | /// </summary> | 347 | /// </summary> |
333 | /// <param name="minX"></param> | 348 | /// <param name="minX"></param> |
334 | /// <param name="minY"></param> | 349 | /// <param name="minY"></param> |