Beispiel #1
0
 void ReloadCryogenics()
 {
     CryogenicsParams.Reload();
     if (boiloff != null && current_resource != null)
     {
         boiloff.SetResource(current_resource);
     }
 }
        public static void Reload()
        {
            var node = ConfigNode.Load(CustomConfig.GameDataFolder("ConfigurableContainers", "Cryogenics.cfg"));

            if (node == null)
            {
                Utils.Log("Unable to read Cryogenics.cfg");
                return;
            }
            if (instance == null)
            {
                instance = new CryogenicsParams();
            }
            instance.LoadFrom(node);
            Utils.Log("CryogenicsParams reloaded:\n{}", instance);
        }