aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorBlueWall2012-01-22 14:51:15 -0500
committerBlueWall2012-01-22 14:51:15 -0500
commit74c1ed77a44c96aed5c0b2c0eb828e6383792bfc (patch)
tree32efdd47564b99c415c1cf0712447e9c56c52e2c /OpenSim/Framework
parentHooking up new telehub data to the database (diff)
downloadopensim-SC_OLD-74c1ed77a44c96aed5c0b2c0eb828e6383792bfc.zip
opensim-SC_OLD-74c1ed77a44c96aed5c0b2c0eb828e6383792bfc.tar.gz
opensim-SC_OLD-74c1ed77a44c96aed5c0b2c0eb828e6383792bfc.tar.bz2
opensim-SC_OLD-74c1ed77a44c96aed5c0b2c0eb828e6383792bfc.tar.xz
Finish connecting Telehub to database
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/RegionSettings.cs50
1 files changed, 6 insertions, 44 deletions
diff --git a/OpenSim/Framework/RegionSettings.cs b/OpenSim/Framework/RegionSettings.cs
index a2dd64f..9b5bbf2 100644
--- a/OpenSim/Framework/RegionSettings.cs
+++ b/OpenSim/Framework/RegionSettings.cs
@@ -449,17 +449,14 @@ namespace OpenSim.Framework
449 } 449 }
450 450
451 // Connected Telehub position 451 // Connected Telehub position
452 private float m_TelehubPosX; 452 private Vector3 m_TelehubPos;
453 private float m_TelehubPosY;
454 private float m_TelehubPosZ;
455 public Vector3 TelehubPos 453 public Vector3 TelehubPos
456 { 454 {
457 get 455 get
458 { 456 {
459 if (HasTelehub) 457 if (HasTelehub)
460 { 458 {
461 Vector3 Pos = new Vector3(m_TelehubPosX, m_TelehubPosY, m_TelehubPosZ); 459 return m_TelehubPos;
462 return Pos;
463 } 460 }
464 else 461 else
465 { 462 {
@@ -468,53 +465,18 @@ namespace OpenSim.Framework
468 } 465 }
469 set 466 set
470 { 467 {
471 468 m_TelehubPos = value;
472 m_TelehubPosX = value.X;
473 m_TelehubPosY = value.Y;
474 m_TelehubPosZ = value.Z;
475 } 469 }
476 } 470 }
477 471
478 // Connected Telehub rotation 472 // Connected Telehub rotation
479 private float m_TelehubRotX; 473 private Quaternion m_TelehubRot;
480 private float m_TelehubRotY;
481 private float m_TelehubRotZ;
482 private float m_TelehubRotW;
483 public Quaternion TelehubRot 474 public Quaternion TelehubRot
484 { 475 {
485 get 476 get
486 { 477 { return m_TelehubRot; }
487 if (HasTelehub)
488 {
489 Quaternion quat = new Quaternion();
490
491 quat.X = m_TelehubRotX;
492 quat.Y = m_TelehubRotY;
493 quat.Z = m_TelehubRotZ;
494 quat.W = m_TelehubRotW;
495
496 return quat;
497 }
498 else
499 {
500 // What else to do??
501 Quaternion quat = new Quaternion();
502
503 quat.X = m_TelehubRotX;
504 quat.X = m_TelehubRotY;
505 quat.X = m_TelehubRotZ;
506 quat.X = m_TelehubRotW;
507
508 return quat;
509 }
510 }
511 set 478 set
512 { 479 { m_TelehubRot = value; }
513 m_TelehubRotX = value.X;
514 m_TelehubRotY = value.Y;
515 m_TelehubRotZ = value.Z;
516 m_TelehubRotW = value.W;
517 }
518 } 480 }
519 481
520 // Our Connected Telehub's SpawnPoints 482 // Our Connected Telehub's SpawnPoints