using OpenMetaverse; using System; using System.Collections.Generic; using System.Text; namespace SecondBotEvents.Config { public class HomeboundConfig : Config { public HomeboundConfig(bool fromENV, string fromFolder = "") : base(fromENV, fromFolder) { } protected override void MakeSettings() { filename = "homebound"; settings.Add("Enabled"); settings.Add("HomeSimSlUrl"); settings.Add("BackupSimSLUrl"); settings.Add("AtHomeSeekLocation"); settings.Add("AtBackupSeekLocation"); settings.Add("AtHomeAutoSitUuid"); } public string GetAtHomeAutoSitUuid() { return ReadSettingAsString("AtHomeAutoSitUuid", UUID.Zero.ToString()); } public bool GetAtHomeSeekLocation() { return ReadSettingAsBool("AtHomeSeekLocation", true); } public bool GetAtBackupSeekLocation() { return ReadSettingAsBool("AtBackupSeekLocation", false); } public string GetBackupSimSLUrl() { return ReadSettingAsString("BackupSimSLUrl", "Sandbox%20Decorus/128/128/27"); } public string GetHomeSimSlUrl() { return ReadSettingAsString("HomeSimSlUrl", "Viserion/46/163/23"); } public bool GetEnabled() { return ReadSettingAsBool("Enabled", false); } } }