diff --git a/apps/openmw/mwclass/classes.cpp b/apps/openmw/mwclass/classes.cpp index 5942385264..561b9dd57e 100644 --- a/apps/openmw/mwclass/classes.cpp +++ b/apps/openmw/mwclass/classes.cpp @@ -1,6 +1,22 @@ #include "classes.hpp" -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "activator.hpp" #include "apparatus.hpp" diff --git a/apps/openmw/mwlua/cellbindings.cpp b/apps/openmw/mwlua/cellbindings.cpp index 51f5bb25f5..48c7141ab8 100644 --- a/apps/openmw/mwlua/cellbindings.cpp +++ b/apps/openmw/mwlua/cellbindings.cpp @@ -1,7 +1,43 @@ #include "cellbindings.hpp" #include -#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "../mwworld/cellstore.hpp" #include "../mwworld/worldmodel.hpp" diff --git a/apps/openmw/mwworld/cellstore.cpp b/apps/openmw/mwworld/cellstore.cpp index e094edb903..e03771d8e4 100644 --- a/apps/openmw/mwworld/cellstore.cpp +++ b/apps/openmw/mwworld/cellstore.cpp @@ -7,7 +7,6 @@ #include #include -#include #include #include #include @@ -41,11 +40,29 @@ #include #include #include + #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include +#include #include #include +#include +#include #include + #include #include #include @@ -387,7 +404,7 @@ namespace MWWorld static constexpr bool isESM4ActorRec(unsigned int rec) { - return rec == ESM::REC_NPC_4 || rec == ESM::REC_CREA4 || rec == ESM::REC_LVLN4 || rec == ESM::REC_LVLC4; + return rec == ESM::REC_NPC_4 || rec == ESM::REC_CREA4; } template diff --git a/apps/openmw/mwworld/esmstore.cpp b/apps/openmw/mwworld/esmstore.cpp index b808bb7a4e..ef9c83d82b 100644 --- a/apps/openmw/mwworld/esmstore.cpp +++ b/apps/openmw/mwworld/esmstore.cpp @@ -5,20 +5,18 @@ #include #include + #include #include #include #include -#include -#include -#include - #include -#include -#include #include #include #include +#include +#include +#include #include "../mwmechanics/spelllist.hpp" @@ -278,10 +276,6 @@ namespace MWWorld case ESM::REC_STAT: case ESM::REC_WEAP: case ESM::REC_BODY: - case ESM::REC_ACHR4: - case ESM::REC_ACRE4: - case ESM::REC_STAT4: - case ESM::REC_LIGH4: case ESM::REC_ACTI4: case ESM::REC_ALCH4: case ESM::REC_AMMO4: @@ -292,11 +286,13 @@ namespace MWWorld case ESM::REC_DOOR4: case ESM::REC_FURN4: case ESM::REC_INGR4: + case ESM::REC_LIGH4: + case ESM::REC_LVLI4: case ESM::REC_LVLC4: case ESM::REC_LVLN4: case ESM::REC_MISC4: case ESM::REC_NPC_4: - case ESM::REC_RACE4: + case ESM::REC_STAT4: case ESM::REC_TREE4: case ESM::REC_WEAP4: return true; diff --git a/apps/openmw/mwworld/esmstore.hpp b/apps/openmw/mwworld/esmstore.hpp index 8cadf62d88..ae31cb5560 100644 --- a/apps/openmw/mwworld/esmstore.hpp +++ b/apps/openmw/mwworld/esmstore.hpp @@ -24,82 +24,87 @@ namespace MWMechanics class SpellList; } +namespace ESM +{ + class ReadersCache; + class Script; + struct Activator; + struct Apparatus; + struct Armor; + struct Attribute; + struct BirthSign; + struct BodyPart; + struct Book; + struct Cell; + struct Class; + struct Clothing; + struct Container; + struct Creature; + struct CreatureLevList; + struct Dialogue; + struct Door; + struct Enchantment; + struct Faction; + struct GameSetting; + struct Global; + struct Ingredient; + struct ItemLevList; + struct Land; + struct LandTexture; + struct Light; + struct Lockpick; + struct MagicEffect; + struct Miscellaneous; + struct NPC; + struct Pathgrid; + struct Potion; + struct Probe; + struct Race; + struct Region; + struct Repair; + struct Skill; + struct Sound; + struct SoundGenerator; + struct Spell; + struct StartScript; + struct Static; + struct Weapon; +} + namespace ESM4 { class Reader; - struct Static; - struct Cell; - struct Light; - struct Reference; + struct Activator; struct ActorCharacter; struct ActorCreature; - struct Activator; - struct Potion; struct Ammunition; struct Armor; + struct ArmorAddon; struct Book; + struct Cell; struct Clothing; struct Container; struct Creature; struct Door; struct Furniture; + struct Hair; + struct HeadPart; struct Ingredient; + struct Land; struct LevelledCreature; + struct LevelledItem; struct LevelledNpc; + struct Light; struct MiscItem; struct Npc; + struct Outfit; + struct Potion; struct Race; + struct Reference; + struct Static; struct Tree; struct Weapon; struct World; - struct Land; -} - -namespace ESM -{ - class ReadersCache; - struct Activator; - struct Potion; - struct Apparatus; - struct Armor; - struct BodyPart; - struct Book; - struct BirthSign; - struct Class; - struct Clothing; - struct Container; - struct Creature; - struct Dialogue; - struct Door; - struct Enchantment; - struct Faction; - struct Global; - struct Ingredient; - struct CreatureLevList; - struct ItemLevList; - struct Light; - struct Lockpick; - struct Miscellaneous; - struct NPC; - struct Probe; - struct Race; - struct Region; - struct Repair; - struct SoundGenerator; - struct Sound; - struct Spell; - struct StartScript; - struct Static; - struct Weapon; - struct GameSetting; - class Script; - struct Cell; - struct Land; - struct LandTexture; - struct Pathgrid; - struct MagicEffect; - struct Skill; - struct Attribute; } namespace MWWorld @@ -128,12 +133,13 @@ namespace MWWorld // Special entry which is hardcoded and not loaded from an ESM Store, - Store, Store, Store, Store, Store, - Store, Store, Store, Store, Store, - Store, Store, Store, Store, - Store, Store, Store, Store, Store, - Store, Store, Store, Store, - Store, Store, Store>; + Store, Store, Store, Store, + Store, Store, Store, Store, Store, + Store, Store, Store, Store, Store, + Store, Store, Store, Store, + Store, Store, Store, Store, + Store, Store, Store, Store, Store, + Store, Store, Store, Store>; private: template diff --git a/apps/openmw/mwworld/store.cpp b/apps/openmw/mwworld/store.cpp index 8fd2aa81e9..919f8b9799 100644 --- a/apps/openmw/mwworld/store.cpp +++ b/apps/openmw/mwworld/store.cpp @@ -5,11 +5,11 @@ #include #include + #include #include #include -#include -#include + #include #include #include @@ -1371,29 +1371,35 @@ template class MWWorld::TypedDynamicStore; template class MWWorld::TypedDynamicStore; template class MWWorld::TypedDynamicStore; +template class MWWorld::TypedDynamicStore; +template class MWWorld::TypedDynamicStore; +template class MWWorld::TypedDynamicStore; + template class MWWorld::TypedDynamicStore; -template class MWWorld::TypedDynamicStore; template class MWWorld::TypedDynamicStore; template class MWWorld::TypedDynamicStore; +template class MWWorld::TypedDynamicStore; template class MWWorld::TypedDynamicStore; +template class MWWorld::TypedDynamicStore; template class MWWorld::TypedDynamicStore; template class MWWorld::TypedDynamicStore; template class MWWorld::TypedDynamicStore; template class MWWorld::TypedDynamicStore; template class MWWorld::TypedDynamicStore; +template class MWWorld::TypedDynamicStore; +template class MWWorld::TypedDynamicStore; template class MWWorld::TypedDynamicStore; -template class MWWorld::TypedDynamicStore; -template class MWWorld::TypedDynamicStore; -template class MWWorld::TypedDynamicStore; +template class MWWorld::TypedDynamicStore; template class MWWorld::TypedDynamicStore; +template class MWWorld::TypedDynamicStore; template class MWWorld::TypedDynamicStore; template class MWWorld::TypedDynamicStore; +template class MWWorld::TypedDynamicStore; template class MWWorld::TypedDynamicStore; -template class MWWorld::TypedDynamicStore; -template class MWWorld::TypedDynamicStore; -template class MWWorld::TypedDynamicStore; +template class MWWorld::TypedDynamicStore; +template class MWWorld::TypedDynamicStore; template class MWWorld::TypedDynamicStore; -template class MWWorld::TypedDynamicStore; +template class MWWorld::TypedDynamicStore; +template class MWWorld::TypedDynamicStore; template class MWWorld::TypedDynamicStore; template class MWWorld::TypedDynamicStore; -template class MWWorld::TypedDynamicStore; diff --git a/apps/openmw_test_suite/mwworld/test_store.cpp b/apps/openmw_test_suite/mwworld/test_store.cpp index 16bfdd24a4..f6faba0f13 100644 --- a/apps/openmw_test_suite/mwworld/test_store.cpp +++ b/apps/openmw_test_suite/mwworld/test_store.cpp @@ -16,12 +16,6 @@ #include #include #include -#include -#include -#include -#include -#include -#include #include #include #include diff --git a/components/esm/records.hpp b/components/esm/records.hpp index 25922a79d1..d5f6e0926a 100644 --- a/components/esm/records.hpp +++ b/components/esm/records.hpp @@ -1,51 +1,53 @@ #ifndef OPENMW_ESM_RECORDS_H #define OPENMW_ESM_RECORDS_H -#include "components/esm3/loadacti.hpp" -#include "components/esm3/loadalch.hpp" -#include "components/esm3/loadappa.hpp" -#include "components/esm3/loadarmo.hpp" -#include "components/esm3/loadbody.hpp" -#include "components/esm3/loadbook.hpp" -#include "components/esm3/loadbsgn.hpp" -#include "components/esm3/loadcell.hpp" -#include "components/esm3/loadclas.hpp" -#include "components/esm3/loadclot.hpp" -#include "components/esm3/loadcont.hpp" -#include "components/esm3/loadcrea.hpp" -#include "components/esm3/loaddial.hpp" -#include "components/esm3/loaddoor.hpp" -#include "components/esm3/loadench.hpp" -#include "components/esm3/loadfact.hpp" -#include "components/esm3/loadglob.hpp" -#include "components/esm3/loadgmst.hpp" -#include "components/esm3/loadinfo.hpp" -#include "components/esm3/loadingr.hpp" -#include "components/esm3/loadland.hpp" -#include "components/esm3/loadlevlist.hpp" -#include "components/esm3/loadligh.hpp" -#include "components/esm3/loadlock.hpp" -#include "components/esm3/loadltex.hpp" -#include "components/esm3/loadmgef.hpp" -#include "components/esm3/loadmisc.hpp" -#include "components/esm3/loadnpc.hpp" -#include "components/esm3/loadpgrd.hpp" -#include "components/esm3/loadprob.hpp" -#include "components/esm3/loadrace.hpp" -#include "components/esm3/loadregn.hpp" -#include "components/esm3/loadrepa.hpp" -#include "components/esm3/loadscpt.hpp" -#include "components/esm3/loadskil.hpp" -#include "components/esm3/loadsndg.hpp" -#include "components/esm3/loadsoun.hpp" -#include "components/esm3/loadspel.hpp" -#include "components/esm3/loadsscr.hpp" -#include "components/esm3/loadstat.hpp" -#include "components/esm3/loadweap.hpp" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include +#include #include #include #include @@ -54,20 +56,24 @@ #include #include #include +#include +#include #include +#include #include #include +#include #include #include #include +#include #include #include #include #include #include - -#include "defs.hpp" +#include // Special records which are not loaded from ESM -#include "components/esm/attr.hpp" +#include #endif