load all types of referenceable IDs

pull/16/head
Marc Zinnschlag 12 years ago
parent d715cf5431
commit c22f773f72

@ -327,7 +327,29 @@ void CSMWorld::Data::loadFile (const boost::filesystem::path& path, bool base)
case ESM::REC_SPEL: mSpells.load (reader, base); break;
case ESM::REC_CELL: mCells.load (reader, base); break;
case ESM::REC_ACTI: mReferenceables.load (reader, base, UniversalId::Type_Activator); break;
case ESM::REC_ALCH: mReferenceables.load (reader, base, UniversalId::Type_Potion); break;
case ESM::REC_APPA: mReferenceables.load (reader, base, UniversalId::Type_Apparatus); break;
case ESM::REC_ARMO: mReferenceables.load (reader, base, UniversalId::Type_Armor); break;
case ESM::REC_BOOK: mReferenceables.load (reader, base, UniversalId::Type_Book); break;
case ESM::REC_CLOT: mReferenceables.load (reader, base, UniversalId::Type_Clothing); break;
case ESM::REC_CONT: mReferenceables.load (reader, base, UniversalId::Type_Container); break;
case ESM::REC_CREA: mReferenceables.load (reader, base, UniversalId::Type_Creature); break;
case ESM::REC_DOOR: mReferenceables.load (reader, base, UniversalId::Type_Door); break;
case ESM::REC_INGR: mReferenceables.load (reader, base, UniversalId::Type_Ingredient); break;
case ESM::REC_LEVC:
mReferenceables.load (reader, base, UniversalId::Type_CreatureLevelledList); break;
case ESM::REC_LEVI:
mReferenceables.load (reader, base, UniversalId::Type_ItemLevelledList); break;
case ESM::REC_LIGH: mReferenceables.load (reader, base, UniversalId::Type_Light); break;
case ESM::REC_LOCK: mReferenceables.load (reader, base, UniversalId::Type_Lockpick); break;
case ESM::REC_MISC:
mReferenceables.load (reader, base, UniversalId::Type_Miscellaneous); break;
case ESM::REC_NPC_: mReferenceables.load (reader, base, UniversalId::Type_Npc); break;
case ESM::REC_PROB: mReferenceables.load (reader, base, UniversalId::Type_Probe); break;
case ESM::REC_REPA: mReferenceables.load (reader, base, UniversalId::Type_Repair); break;
case ESM::REC_STAT: mReferenceables.load (reader, base, UniversalId::Type_Static); break;
case ESM::REC_WEAP: mReferenceables.load (reader, base, UniversalId::Type_Weapon); break;
default:

@ -46,9 +46,47 @@ CSMWorld::RefIdCollection::RefIdCollection()
mAdapters.insert (std::make_pair (UniversalId::Type_Activator,
new BaseRefIdAdapter<ESM::Activator> (UniversalId::Type_Activator, baseColumns)));
mAdapters.insert (std::make_pair (UniversalId::Type_Potion,
new BaseRefIdAdapter<ESM::Potion> (UniversalId::Type_Potion, baseColumns)));
mAdapters.insert (std::make_pair (UniversalId::Type_Apparatus,
new BaseRefIdAdapter<ESM::Apparatus> (UniversalId::Type_Apparatus, baseColumns)));
mAdapters.insert (std::make_pair (UniversalId::Type_Armor,
new BaseRefIdAdapter<ESM::Armor> (UniversalId::Type_Armor, baseColumns)));
mAdapters.insert (std::make_pair (UniversalId::Type_Book,
new BaseRefIdAdapter<ESM::Book> (UniversalId::Type_Book, baseColumns)));
mAdapters.insert (std::make_pair (UniversalId::Type_Clothing,
new BaseRefIdAdapter<ESM::Clothing> (UniversalId::Type_Clothing, baseColumns)));
mAdapters.insert (std::make_pair (UniversalId::Type_Container,
new BaseRefIdAdapter<ESM::Container> (UniversalId::Type_Container, baseColumns)));
mAdapters.insert (std::make_pair (UniversalId::Type_Creature,
new BaseRefIdAdapter<ESM::Creature> (UniversalId::Type_Creature, baseColumns)));
mAdapters.insert (std::make_pair (UniversalId::Type_Door,
new BaseRefIdAdapter<ESM::Door> (UniversalId::Type_Door, baseColumns)));
mAdapters.insert (std::make_pair (UniversalId::Type_Ingredient,
new BaseRefIdAdapter<ESM::Ingredient> (UniversalId::Type_Ingredient, baseColumns)));
mAdapters.insert (std::make_pair (UniversalId::Type_CreatureLevelledList,
new BaseRefIdAdapter<ESM::CreatureLevList> (
UniversalId::Type_CreatureLevelledList, baseColumns)));
mAdapters.insert (std::make_pair (UniversalId::Type_ItemLevelledList,
new BaseRefIdAdapter<ESM::ItemLevList> (UniversalId::Type_ItemLevelledList, baseColumns)));
mAdapters.insert (std::make_pair (UniversalId::Type_Light,
new BaseRefIdAdapter<ESM::Light> (UniversalId::Type_Light, baseColumns)));
mAdapters.insert (std::make_pair (UniversalId::Type_Lockpick,
new BaseRefIdAdapter<ESM::Lockpick> (UniversalId::Type_Lockpick, baseColumns)));
mAdapters.insert (std::make_pair (UniversalId::Type_Miscellaneous,
new BaseRefIdAdapter<ESM::Miscellaneous> (UniversalId::Type_Miscellaneous, baseColumns)));
mAdapters.insert (std::make_pair (UniversalId::Type_Npc,
new BaseRefIdAdapter<ESM::NPC> (UniversalId::Type_Npc, baseColumns)));
mAdapters.insert (std::make_pair (UniversalId::Type_Probe,
new BaseRefIdAdapter<ESM::Probe> (UniversalId::Type_Probe, baseColumns)));
mAdapters.insert (std::make_pair (UniversalId::Type_Repair,
new BaseRefIdAdapter<ESM::Repair> (UniversalId::Type_Repair, baseColumns)));
mAdapters.insert (std::make_pair (UniversalId::Type_Static,
new BaseRefIdAdapter<ESM::Static> (UniversalId::Type_Static, baseColumns)));
mAdapters.insert (std::make_pair (UniversalId::Type_Weapon,
new BaseRefIdAdapter<ESM::Weapon> (UniversalId::Type_Weapon, baseColumns)));
}
CSMWorld::RefIdCollection::~RefIdCollection()

Loading…
Cancel
Save