aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/RegionInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/RegionInfo.cs96
1 files changed, 0 insertions, 96 deletions
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs
index 88b62e0..0a826a6 100644
--- a/OpenSim/Framework/RegionInfo.cs
+++ b/OpenSim/Framework/RegionInfo.cs
@@ -54,10 +54,6 @@ namespace OpenSim.Framework
54 private RegionSettings m_regionSettings; 54 private RegionSettings m_regionSettings;
55 // private IConfigSource m_configSource = null; 55 // private IConfigSource m_configSource = null;
56 56
57 public UUID MasterAvatarAssignedUUID = UUID.Zero;
58 public string MasterAvatarFirstName = String.Empty;
59 public string MasterAvatarLastName = String.Empty;
60 public string MasterAvatarSandboxPassword = String.Empty;
61 public UUID originRegionID = UUID.Zero; 57 public UUID originRegionID = UUID.Zero;
62 public string proxyUrl = ""; 58 public string proxyUrl = "";
63 public int ProxyOffset = 0; 59 public int ProxyOffset = 0;
@@ -488,40 +484,6 @@ namespace OpenSim.Framework
488 m_externalHostName = externalName; 484 m_externalHostName = externalName;
489 485
490 486
491 // Master avatar cruft
492 //
493 string masterAvatarUUID;
494 if (!creatingNew)
495 {
496 masterAvatarUUID = config.GetString("MasterAvatarUUID", UUID.Zero.ToString());
497 MasterAvatarFirstName = config.GetString("MasterAvatarFirstName", String.Empty);
498 MasterAvatarLastName = config.GetString("MasterAvatarLastName", String.Empty);
499 MasterAvatarSandboxPassword = config.GetString("MasterAvatarSandboxPassword", String.Empty);
500 }
501 else
502 {
503 masterAvatarUUID = MainConsole.Instance.CmdPrompt("Master Avatar UUID", UUID.Zero.ToString());
504 if (masterAvatarUUID != UUID.Zero.ToString())
505 {
506 config.Set("MasterAvatarUUID", masterAvatarUUID);
507 }
508 else
509 {
510 MasterAvatarFirstName = MainConsole.Instance.CmdPrompt("Master Avatar first name (enter for no master avatar)", String.Empty);
511 if (MasterAvatarFirstName != String.Empty)
512 {
513 MasterAvatarLastName = MainConsole.Instance.CmdPrompt("Master Avatar last name", String.Empty);
514 MasterAvatarSandboxPassword = MainConsole.Instance.CmdPrompt("Master Avatar sandbox password", String.Empty);
515
516 config.Set("MasterAvatarFirstName", MasterAvatarFirstName);
517 config.Set("MasterAvatarLastName", MasterAvatarLastName);
518 config.Set("MasterAvatarSandboxPassword", MasterAvatarSandboxPassword);
519 }
520 }
521 }
522
523 MasterAvatarAssignedUUID = new UUID(masterAvatarUUID);
524
525 m_regionType = config.GetString("RegionType", String.Empty); 487 m_regionType = config.GetString("RegionType", String.Empty);
526 488
527 // Prim stuff 489 // Prim stuff
@@ -564,20 +526,6 @@ namespace OpenSim.Framework
564 526
565 config.Set("ExternalHostName", m_externalHostName); 527 config.Set("ExternalHostName", m_externalHostName);
566 528
567 if (MasterAvatarAssignedUUID != UUID.Zero)
568 {
569 config.Set("MasterAvatarUUID", MasterAvatarAssignedUUID.ToString());
570 }
571 else if (MasterAvatarFirstName != String.Empty && MasterAvatarLastName != String.Empty)
572 {
573 config.Set("MasterAvatarFirstName", MasterAvatarFirstName);
574 config.Set("MasterAvatarLastName", MasterAvatarLastName);
575 }
576 if (MasterAvatarSandboxPassword != String.Empty)
577 {
578 config.Set("MasterAvatarSandboxPassword", MasterAvatarSandboxPassword);
579 }
580
581 if (m_nonphysPrimMax != 0) 529 if (m_nonphysPrimMax != 0)
582 config.Set("NonphysicalPrimMax", m_nonphysPrimMax); 530 config.Set("NonphysicalPrimMax", m_nonphysPrimMax);
583 if (m_physPrimMax != 0) 531 if (m_physPrimMax != 0)
@@ -651,17 +599,6 @@ namespace OpenSim.Framework
651 configMember.addConfigurationOption("external_host_name", 599 configMember.addConfigurationOption("external_host_name",
652 ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, 600 ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY,
653 "External Host Name", m_externalHostName, true); 601 "External Host Name", m_externalHostName, true);
654 configMember.addConfigurationOption("master_avatar_uuid", ConfigurationOption.ConfigurationTypes.TYPE_UUID,
655 "Master Avatar UUID", MasterAvatarAssignedUUID.ToString(), true);
656 configMember.addConfigurationOption("master_avatar_first",
657 ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY,
658 "First Name of Master Avatar", MasterAvatarFirstName, true);
659 configMember.addConfigurationOption("master_avatar_last",
660 ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY,
661 "Last Name of Master Avatar", MasterAvatarLastName, true);
662 configMember.addConfigurationOption("master_avatar_pass", ConfigurationOption.ConfigurationTypes.TYPE_STRING,
663 "(Sandbox Mode Only)Password for Master Avatar account",
664 MasterAvatarSandboxPassword, true);
665 configMember.addConfigurationOption("lastmap_uuid", ConfigurationOption.ConfigurationTypes.TYPE_UUID, 602 configMember.addConfigurationOption("lastmap_uuid", ConfigurationOption.ConfigurationTypes.TYPE_UUID,
666 "Last Map UUID", lastMapUUID.ToString(), true); 603 "Last Map UUID", lastMapUUID.ToString(), true);
667 configMember.addConfigurationOption("lastmap_refresh", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, 604 configMember.addConfigurationOption("lastmap_refresh", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY,
@@ -711,22 +648,6 @@ namespace OpenSim.Framework
711 configMember.addConfigurationOption("external_host_name", 648 configMember.addConfigurationOption("external_host_name",
712 ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, 649 ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY,
713 "External Host Name", "127.0.0.1", false); 650 "External Host Name", "127.0.0.1", false);
714 configMember.addConfigurationOption("master_avatar_uuid", ConfigurationOption.ConfigurationTypes.TYPE_UUID,
715 "Master Avatar UUID", UUID.Zero.ToString(), true);
716 configMember.addConfigurationOption("master_avatar_first",
717 ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY,
718 "First Name of Master Avatar", "Test", false,
719 (ConfigurationOption.ConfigurationOptionShouldBeAsked)
720 shouldMasterAvatarDetailsBeAsked);
721 configMember.addConfigurationOption("master_avatar_last",
722 ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY,
723 "Last Name of Master Avatar", "User", false,
724 (ConfigurationOption.ConfigurationOptionShouldBeAsked)
725 shouldMasterAvatarDetailsBeAsked);
726 configMember.addConfigurationOption("master_avatar_pass", ConfigurationOption.ConfigurationTypes.TYPE_STRING,
727 "(Sandbox Mode Only)Password for Master Avatar account", "test", false,
728 (ConfigurationOption.ConfigurationOptionShouldBeAsked)
729 shouldMasterAvatarDetailsBeAsked);
730 configMember.addConfigurationOption("lastmap_uuid", ConfigurationOption.ConfigurationTypes.TYPE_UUID, 651 configMember.addConfigurationOption("lastmap_uuid", ConfigurationOption.ConfigurationTypes.TYPE_UUID,
731 "Last Map UUID", lastMapUUID.ToString(), true); 652 "Last Map UUID", lastMapUUID.ToString(), true);
732 653
@@ -752,11 +673,6 @@ namespace OpenSim.Framework
752 "Region Type", String.Empty, true); 673 "Region Type", String.Empty, true);
753 } 674 }
754 675
755 public bool shouldMasterAvatarDetailsBeAsked(string configuration_key)
756 {
757 return MasterAvatarAssignedUUID == UUID.Zero;
758 }
759
760 public bool handleIncomingConfiguration(string configuration_key, object configuration_result) 676 public bool handleIncomingConfiguration(string configuration_key, object configuration_result)
761 { 677 {
762 switch (configuration_key) 678 switch (configuration_key)
@@ -797,18 +713,6 @@ namespace OpenSim.Framework
797 m_externalHostName = Util.GetLocalHost().ToString(); 713 m_externalHostName = Util.GetLocalHost().ToString();
798 } 714 }
799 break; 715 break;
800 case "master_avatar_uuid":
801 MasterAvatarAssignedUUID = (UUID) configuration_result;
802 break;
803 case "master_avatar_first":
804 MasterAvatarFirstName = (string) configuration_result;
805 break;
806 case "master_avatar_last":
807 MasterAvatarLastName = (string) configuration_result;
808 break;
809 case "master_avatar_pass":
810 MasterAvatarSandboxPassword = (string)configuration_result;
811 break;
812 case "lastmap_uuid": 716 case "lastmap_uuid":
813 lastMapUUID = (UUID)configuration_result; 717 lastMapUUID = (UUID)configuration_result;
814 break; 718 break;