1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 10:53:52 +00:00
openmw/apps/opencs/view/world/creator.cpp
2020-11-29 11:14:07 +04:00

21 lines
514 B
C++

#include "creator.hpp"
#include <stdexcept>
CSVWorld::Creator::~Creator() {}
void CSVWorld::Creator::setScope (unsigned int scope)
{
if (scope!=CSMWorld::Scope_Content)
throw std::logic_error ("Invalid scope in creator");
}
CSVWorld::CreatorFactoryBase::~CreatorFactoryBase() {}
CSVWorld::Creator *CSVWorld::NullCreatorFactory::makeCreator (CSMDoc::Document& document,
const CSMWorld::UniversalId& id) const
{
return nullptr;
}