-
-DataFile::Loader::ActionMap Material::GenericLoader::shared_actions;
-
-Material::GenericLoader::GenericLoader(DataFile::Collection &c):
- coll(c),
- material(0),
- mat_loader(0)
-{
- set_actions(shared_actions);
-}
-
-Material::GenericLoader::~GenericLoader()
-{
- delete material;
- delete mat_loader;
-}
-
-void Material::GenericLoader::init_actions()
-{
- add("type", &GenericLoader::type);
-}
-
-void Material::GenericLoader::type(const DataFile::Symbol &sym)
-{
- get_material_registry().invoke(sym.name, *this);
-}
-