public void SaveCostNode(KonstructionCostResource cost)
        {
            KonstructionCostResource c = null;
            var count = _costResources.Count;

            for (int i = 0; i < count; ++i)
            {
                var n = _costResources[i];
                if (n.resourceName == cost.resourceName)
                {
                    c = n;
                    break;
                }
            }

            if (c == null)
            {
                c = new KonstructionCostResource
                {
                    resourceName = cost.resourceName,
                    maxMass      = cost.maxMass
                };
                _costResources.Add(c);
            }
        }
        public void AddCostResourceNode(KonstructionCostResource cost)
        {
            var count = _costResources.Count;

            for (int i = 0; i < count; ++i)
            {
                if (_costResources[i].resourceName == cost.resourceName)
                {
                    return;
                }
            }
            _costResources.Add(cost);
        }