예제 #1
0
        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);
        }
예제 #2
0
파일: Config.cs 프로젝트: byterj/phoenix
        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);
        }
예제 #3
0
 /// <summary>
 /// Called by Phoenix.Init()
 /// </summary>
 internal static void Init()
 {
     lock (Config.SyncRoot) {
         profile = new ProfileConfig(System.IO.Path.Combine(Core.Directory, "Profiles"));
     }
 }
예제 #4
0
파일: Config.cs 프로젝트: byterj/phoenix
 /// <summary>
 /// Called by Phoenix.Init()
 /// </summary>
 internal static void Init()
 {
     lock (Config.SyncRoot) {
         profile = new ProfileConfig(System.IO.Path.Combine(Core.Directory, "Profiles"));
     }
 }