3 #include "blob_exhibit.h"
6 static Exhibit *create_exhibit(const char *type);
8 ExhibitManager::ExhibitManager()
12 ExhibitManager::~ExhibitManager()
14 int num = (int)items.size();
15 for(int i=0; i<num; i++) {
21 bool ExhibitManager::load(const MetaScene *mscn, const char *fname)
23 struct ts_node *root = ts_load(fname);
24 if(!root || strcmp(root->name, "exhibits") != 0) {
26 error_log("failed to load exhibits\n");
35 static Exhibit *create_exhibit(const char *type)
37 if(strcmp(type, "static") == 0) {
39 } else if(strcmp(type, "blobs") == 0) {
40 return new BlobExhibit;