diff options
Diffstat (limited to 'cpp/010vm')
-rw-r--r-- | cpp/010vm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/010vm b/cpp/010vm index 2f2268ba..526d4593 100644 --- a/cpp/010vm +++ b/cpp/010vm @@ -39,6 +39,7 @@ struct reagent { vector<type_number> types; vector<pair<string, property> > properties; reagent(string s); + reagent(type_number t); string to_string(); }; @@ -149,6 +150,9 @@ void setup_recipes() { properties.push_back(pair<string, property>(name, property())); } } + reagent::reagent(type_number t) { + types.push_back(t); + } string reagent::to_string() { ostringstream out; out << "{name: \"" << name << "\", type: "; |