3 #include "blob_exhibit.h"
5 static Exhibit *create_exhibit(const char *type);
7 ExhibitManager::ExhibitManager()
11 ExhibitManager::~ExhibitManager()
13 int num = (int)items.size();
14 for(int i=0; i<num; i++) {
20 bool ExhibitManager::load(const MetaScene *mscn, const char *fname)
22 struct ts_node *root = ts_load(fname);
23 if(!root || strcmp(root->name, "exhibits") != 0) {
25 error_log("failed to load exhibits\n");
34 static Exhibit *create_exhibit(const char *type)
36 if(strcmp(type, "static") == 0) {
38 } else if(strcmp(type, "blobs") == 0) {
39 return new BlobExhibit;