2013-07-26 10:34:30 +00:00
|
|
|
#include "creator.hpp"
|
|
|
|
|
2022-10-19 17:02:00 +00:00
|
|
|
#include <apps/opencs/model/world/scope.hpp>
|
|
|
|
#include <apps/opencs/model/world/universalid.hpp>
|
2022-10-09 10:39:43 +00:00
|
|
|
|
2014-08-07 07:32:49 +00:00
|
|
|
#include <stdexcept>
|
|
|
|
|
2022-10-19 17:02:00 +00:00
|
|
|
namespace CSMDoc
|
|
|
|
{
|
|
|
|
class Document;
|
|
|
|
}
|
|
|
|
|
2014-08-07 07:32:49 +00:00
|
|
|
CSVWorld::Creator::~Creator() {}
|
|
|
|
|
|
|
|
void CSVWorld::Creator::setScope(unsigned int scope)
|
|
|
|
{
|
|
|
|
if (scope != CSMWorld::Scope_Content)
|
|
|
|
throw std::logic_error("Invalid scope in creator");
|
|
|
|
}
|
|
|
|
|
2013-07-26 10:34:30 +00:00
|
|
|
CSVWorld::CreatorFactoryBase::~CreatorFactoryBase() {}
|
|
|
|
|
2015-06-18 19:59:40 +00:00
|
|
|
CSVWorld::Creator* CSVWorld::NullCreatorFactory::makeCreator(
|
|
|
|
CSMDoc::Document& document, const CSMWorld::UniversalId& id) const
|
2013-07-26 10:34:30 +00:00
|
|
|
{
|
2020-11-13 07:39:47 +00:00
|
|
|
return nullptr;
|
2015-03-11 14:54:45 +00:00
|
|
|
}
|