Exemplo n.º 1
0
        void LoadConfigValues()
        {
            try
            {
                g_config = Config.ReadObject <CornuConfig>();
            }
            catch
            {
                Puts("Could not read config, creating new default config.");
                LoadDefaultConfig();
            }

            //g_spawnBlock = g_config.MaxSpawnBlock;
        }
Exemplo n.º 2
0
 protected override void LoadDefaultConfig()
 {
     g_config = new CornuConfig();
     Config.WriteObject(g_config, true);
     Puts("New configuration file created.");
 }