/// <summary> /// Adds cargo to the inventory /// </summary> /// <param name="cargo"></param> /// <returns>true if cargo can be added after this one, false -- current or next cargo can't be added</returns> public bool AddCargo(RTSCargo cargo) { if (inventory.Count < inventoryLimit) { inventory.Add(cargo); return(true); } else { return(false); } }
RTSResourceContainer(RTSCargo c, int a) { cargo = c; amount = a; }