mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 05:19:55 +00:00
45 lines
No EOL
1.6 KiB
C++
45 lines
No EOL
1.6 KiB
C++
|
|
#include "subviews.hpp"
|
|
|
|
#include "../doc/subviewfactoryimp.hpp"
|
|
|
|
#include "tablesubview.hpp"
|
|
#include "dialoguesubview.hpp"
|
|
#include "scriptsubview.hpp"
|
|
#include "regionmapsubview.hpp"
|
|
#include "genericcreator.hpp"
|
|
|
|
void CSVWorld::addSubViewFactories (CSVDoc::SubViewFactoryManager& manager)
|
|
{
|
|
manager.add (CSMWorld::UniversalId::Type_Gmsts,
|
|
new CSVDoc::SubViewFactoryWithCreator<TableSubView, NullCreatorFactory>);
|
|
|
|
manager.add (CSMWorld::UniversalId::Type_Skills,
|
|
new CSVDoc::SubViewFactoryWithCreator<TableSubView, NullCreatorFactory>);
|
|
|
|
static const CSMWorld::UniversalId::Type sTableTypes[] =
|
|
{
|
|
CSMWorld::UniversalId::Type_Globals,
|
|
CSMWorld::UniversalId::Type_Classes,
|
|
CSMWorld::UniversalId::Type_Factions,
|
|
CSMWorld::UniversalId::Type_Races,
|
|
CSMWorld::UniversalId::Type_Sounds,
|
|
CSMWorld::UniversalId::Type_Scripts,
|
|
CSMWorld::UniversalId::Type_Regions,
|
|
CSMWorld::UniversalId::Type_Birthsigns,
|
|
CSMWorld::UniversalId::Type_Spells,
|
|
CSMWorld::UniversalId::Type_Cells,
|
|
CSMWorld::UniversalId::Type_Referenceables,
|
|
CSMWorld::UniversalId::Type_References,
|
|
|
|
CSMWorld::UniversalId::Type_None // end marker
|
|
};
|
|
|
|
for (int i=0; sTableTypes[i]!=CSMWorld::UniversalId::Type_None; ++i)
|
|
manager.add (sTableTypes[i],
|
|
new CSVDoc::SubViewFactoryWithCreator<TableSubView, CreatorFactory<GenericCreator> >);
|
|
|
|
manager.add (CSMWorld::UniversalId::Type_Script, new CSVDoc::SubViewFactory<ScriptSubView>);
|
|
|
|
manager.add (CSMWorld::UniversalId::Type_RegionMap, new CSVDoc::SubViewFactory<RegionMapSubView>);
|
|
} |