public void Load(ConfigNode node)
 {
     ConfigNode[] nodes = node.GetNodes("Resource");
     for (int i = 0; i < nodes.Length; ++i)
     {
         WingTankResource res = new WingTankResource(nodes[i]);
         resources.Add(res.resource.name, res);
     }
 }
        public void Load(ConfigNode node)
        {
            float ratioTotal = 0;

            GUIName = node.GetValue("name");
            ConfigNode[] nodes = node.GetNodes("Resource");
            foreach (ConfigNode n in nodes)
            {
                var res = new WingTankResource(n);
                if (res.resource != null)
                {
                    resources.Add(res.resource.name, res);
                    ratioTotal += res.ratio;
                }
            }
            foreach (KeyValuePair <string, WingTankResource> kvp in resources)
            {
                kvp.Value.SetUnitsPerVolume(ratioTotal);
            }
        }