static Config() { settings = new SynchronizedSettings("Phoenix"); userSettings = new SettingsFragment(settings, "UserSettings"); profile = null; packetLogging = new PacketLogging(settings); groundFindDistance = new SettingInt32Entry(settings, 8, "FindDistance", "Config", "World"); resyncInterval = new SettingInt32Entry(settings, 5, "ResyncInterval", "Config"); resyncInterval.Changed += new EventHandler(resyncInterval_Changed); }
/// <summary> /// Called by Phoenix.Init() /// </summary> internal static void Init() { lock (Config.SyncRoot) { profile = new ProfileConfig(System.IO.Path.Combine(Core.Directory, "Profiles")); } }