public ProfileIO(Profile p) { ProfileVersion = m_CurrentVersion; m_Profile = p; Name = p.Name; Commands = p.Commands; CustomDeco = p.Deco.ShowCustomDeco; CommandPrefix = p.General.CommandPrefix; Modifiers = p.General.Modifiers; ModifierWarnings = p.General.ModifiersWarnings; SpeechPresets = p.General.SpeechPresets; WebPresets = p.General.WebPresets; EnabledMaps = p.Travel.EnabledMaps; MapNames = p.Travel.MapNames; CustomMaps = p.Travel.CustomMaps; UseServer = p.Server.Enabled; Server = p.Server.Address; Port = p.Server.Port; }
/// <summary> /// Creates a new Profile object /// </summary> public Profile() { m_Travel = new TravelOptions(); m_General = new GeneralOptions(); m_Hues = new HuesOptions(); m_Commands = new CommandsOptions(); m_Mobiles = new MobilesOptions(); m_Props = new PropsOptions(); m_Server = new ServerOptions(); m_Deco = new DecoOptions(); m_Items = new ItemsOptions(); m_Notes = new Notes(); m_Admin = new AdminOptions(); m_Launcher = new LauncherOptions(); m_Screenshots = new ScreenshotOptions(); m_MulManager = new MulManager(); }