aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
diff options
context:
space:
mode:
authorMW2007-07-22 11:44:36 +0000
committerMW2007-07-22 11:44:36 +0000
commit70fa30204272e874b8e3acccdc2e22cd4e42b2b2 (patch)
tree2f6c3c0f3b3bd60d5972f8dea6b3abeae4dc9065 /OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
parent* Aerobic erosion now uses Navier Stokes algorithms for wind calculations. (diff)
downloadopensim-SC-70fa30204272e874b8e3acccdc2e22cd4e42b2b2.zip
opensim-SC-70fa30204272e874b8e3acccdc2e22cd4e42b2b2.tar.gz
opensim-SC-70fa30204272e874b8e3acccdc2e22cd4e42b2b2.tar.bz2
opensim-SC-70fa30204272e874b8e3acccdc2e22cd4e42b2b2.tar.xz
* Some work in progress code: Inventory cache, start of inventory server/service, userprofile cache, inventory handling. (non of it is enabled yet (or at least it shouldn't be).
* Fixed some of the problems with crossing regions when flying: you should no longer sink to ground level when crossing (should keep roughly your right height). Should no longer sometimes get sent back to the centre of the current region when attempting to border cross. But instead sometimes you will find you avatar stop at the edge of region and you will need to start moving again to retry the crossing (which should then work). This code is partly based on Babblefrog's issue #212 patch. [I think I have some ideas of how to solve the stopping at edges problem, just want to get the inventory code done first] * Capabilities code has now been moved to the OpenSim.Framework.Communications project as some of the caps code will be tightly tied to inventory/asset handling and it was causing a two way reference problem when it was in its own project/dll. This is a Big commit as I was going to keep my inventory work local until I had it in a working state, in case it brakes anything, but its getting harder to keep in sync with svn.
Diffstat (limited to 'OpenSim/Region/Communications/OGS1/OGS1GridServices.cs')
-rw-r--r--OpenSim/Region/Communications/OGS1/OGS1GridServices.cs19
1 files changed, 14 insertions, 5 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
index aadf85a..69d0d57 100644
--- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
+++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
@@ -382,13 +382,13 @@ namespace OpenSim.Region.Communications.OGS1
382 /// <param name="agentID"></param> 382 /// <param name="agentID"></param>
383 /// <param name="position"></param> 383 /// <param name="position"></param>
384 /// <returns></returns> 384 /// <returns></returns>
385 public bool ExpectAvatarCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position) 385 public bool ExpectAvatarCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position, bool isFlying)
386 { 386 {
387 try 387 try
388 { 388 {
389 if (this.listeners.ContainsKey(regionHandle)) 389 if (this.listeners.ContainsKey(regionHandle))
390 { 390 {
391 this.listeners[regionHandle].TriggerExpectAvatarCrossing(regionHandle, agentID, position); 391 this.listeners[regionHandle].TriggerExpectAvatarCrossing(regionHandle, agentID, position, isFlying);
392 return true; 392 return true;
393 } 393 }
394 RegionInfo regInfo = this.RequestNeighbourInfo(regionHandle); 394 RegionInfo regInfo = this.RequestNeighbourInfo(regionHandle);
@@ -400,7 +400,7 @@ namespace OpenSim.Region.Communications.OGS1
400 "tcp://" + regInfo.RemotingAddress + ":" + regInfo.RemotingPort + "/InterRegions"); 400 "tcp://" + regInfo.RemotingAddress + ":" + regInfo.RemotingPort + "/InterRegions");
401 if (remObject != null) 401 if (remObject != null)
402 { 402 {
403 retValue = remObject.ExpectAvatarCrossing(regionHandle, agentID, position); 403 retValue = remObject.ExpectAvatarCrossing(regionHandle, agentID, position, isFlying);
404 } 404 }
405 else 405 else
406 { 406 {
@@ -420,6 +420,15 @@ namespace OpenSim.Region.Communications.OGS1
420 return false; 420 return false;
421 } 421 }
422 } 422 }
423
424 public bool AcknowledgeAgentCrossed(ulong regionHandle, LLUUID agentID)
425 {
426 if (this.listeners.ContainsKey(regionHandle))
427 {
428 return true;
429 }
430 return false;
431 }
423 #endregion 432 #endregion
424 433
425 #region Methods triggered by calls from external instances 434 #region Methods triggered by calls from external instances
@@ -453,13 +462,13 @@ namespace OpenSim.Region.Communications.OGS1
453 /// <param name="agentID"></param> 462 /// <param name="agentID"></param>
454 /// <param name="position"></param> 463 /// <param name="position"></param>
455 /// <returns></returns> 464 /// <returns></returns>
456 public bool IncomingArrival(ulong regionHandle, LLUUID agentID, LLVector3 position) 465 public bool IncomingArrival(ulong regionHandle, LLUUID agentID, LLVector3 position, bool isFlying)
457 { 466 {
458 try 467 try
459 { 468 {
460 if (this.listeners.ContainsKey(regionHandle)) 469 if (this.listeners.ContainsKey(regionHandle))
461 { 470 {
462 this.listeners[regionHandle].TriggerExpectAvatarCrossing(regionHandle, agentID, position); 471 this.listeners[regionHandle].TriggerExpectAvatarCrossing(regionHandle, agentID, position, isFlying);
463 return true; 472 return true;
464 } 473 }
465 } 474 }