about summary refs log tree commit diff stats
path: root/cpp/010vm
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-02-22 00:15:14 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-02-22 00:15:14 -0800
commit6cc4621602ac00effcfedeeb01593d5e619db0f9 (patch)
treec14e34d1b0d29708a9064cc453ee1bffe26ed53d /cpp/010vm
parentab9e2eaee0e7361a9ea4cb65011873d44100ff51 (diff)
downloadmu-6cc4621602ac00effcfedeeb01593d5e619db0f9.tar.gz
814
Diffstat (limited to 'cpp/010vm')
-rw-r--r--cpp/010vm4
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: ";