28 lines
555 B
C++
28 lines
555 B
C++
#ifndef SATISFACTORY_RECIPE
|
|
#define SATISFACTORY_RECIPE
|
|
|
|
#include "Product.h"
|
|
|
|
#include <vector>
|
|
|
|
class Recipe {
|
|
public:
|
|
Recipe()
|
|
{
|
|
// TEST:
|
|
ingredients.push_back({Product(), 20.0});
|
|
ingredients.push_back({Product(), 4.0});
|
|
ingredients.push_back({Product(), 60.0});
|
|
}
|
|
~Recipe() {}
|
|
|
|
std::pair<Product, float> Produces() const { return produces; }
|
|
std::vector<std::pair<Product, float> > Ingredients(float overclock = 1.0f);
|
|
|
|
private:
|
|
std::pair<Product, float> produces;
|
|
std::vector<std::pair<Product, float> > ingredients;
|
|
};
|
|
|
|
#endif
|