Cleanup openmw lua includes

pull/3228/head
elsid 2 years ago
parent 28d6159b86
commit 552301c8fb
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -1,6 +1,6 @@
#include "luabindings.hpp" #include "luabindings.hpp"
#include "luamanagerimp.hpp" #include "worldview.hpp"
namespace sol namespace sol
{ {

@ -5,6 +5,8 @@
#include "../mwrender/camera.hpp" #include "../mwrender/camera.hpp"
#include "../mwrender/renderingmanager.hpp" #include "../mwrender/renderingmanager.hpp"
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
namespace MWLua namespace MWLua
{ {

@ -3,7 +3,9 @@
#include <components/esm3/loadcell.hpp> #include <components/esm3/loadcell.hpp>
#include "../mwworld/cellstore.hpp" #include "../mwworld/cellstore.hpp"
#include "types/types.hpp" #include "types/types.hpp"
#include "worldview.hpp"
namespace sol namespace sol
{ {

@ -6,6 +6,7 @@
#include <components/sdlutil/events.hpp> #include <components/sdlutil/events.hpp>
#include "../mwbase/environment.hpp"
#include "../mwbase/inputmanager.hpp" #include "../mwbase/inputmanager.hpp"
#include "../mwinput/actions.hpp" #include "../mwinput/actions.hpp"

@ -14,7 +14,8 @@
#include "../mwmechanics/aipackage.hpp" #include "../mwmechanics/aipackage.hpp"
#include "../mwmechanics/creaturestats.hpp" #include "../mwmechanics/creaturestats.hpp"
#include "luamanagerimp.hpp" #include "context.hpp"
#include "worldview.hpp"
namespace sol namespace sol
{ {

@ -11,10 +11,10 @@
#include "../mwbase/luamanager.hpp" #include "../mwbase/luamanager.hpp"
#include "object.hpp" #include "object.hpp"
#include "luabindings.hpp"
namespace MWLua namespace MWLua
{ {
struct Context;
class LocalScripts : public LuaUtil::ScriptsContainer class LocalScripts : public LuaUtil::ScriptsContainer
{ {

@ -8,13 +8,11 @@
#include "../mwbase/environment.hpp" #include "../mwbase/environment.hpp"
#include "../mwbase/statemanager.hpp" #include "../mwbase/statemanager.hpp"
#include "../mwworld/esmstore.hpp" #include "../mwworld/esmstore.hpp"
#include "../mwworld/inventorystore.hpp"
#include "../mwworld/store.hpp" #include "../mwworld/store.hpp"
#include "eventqueue.hpp" #include "eventqueue.hpp"
#include "worldview.hpp" #include "worldview.hpp"
#include "luamanagerimp.hpp" #include "luamanagerimp.hpp"
#include "types/types.hpp"
namespace MWLua namespace MWLua
{ {

@ -7,9 +7,6 @@
#include <components/lua/storage.hpp> #include <components/lua/storage.hpp>
#include "context.hpp" #include "context.hpp"
#include "eventqueue.hpp"
#include "object.hpp"
#include "worldview.hpp"
namespace MWWorld namespace MWWorld
{ {

@ -26,6 +26,7 @@
#include "userdataserializer.hpp" #include "userdataserializer.hpp"
#include "types/types.hpp" #include "types/types.hpp"
#include "debugbindings.hpp" #include "debugbindings.hpp"
#include "playerscripts.hpp"
namespace MWLua namespace MWLua
{ {

@ -17,9 +17,8 @@
#include "object.hpp" #include "object.hpp"
#include "eventqueue.hpp" #include "eventqueue.hpp"
#include "globalscripts.hpp" #include "globalscripts.hpp"
#include "localscripts.hpp"
#include "playerscripts.hpp"
#include "worldview.hpp" #include "worldview.hpp"
#include "localscripts.hpp"
namespace MWLua namespace MWLua
{ {

@ -6,7 +6,6 @@
#include "../mwworld/cellstore.hpp" #include "../mwworld/cellstore.hpp"
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
#include "../mwworld/containerstore.hpp" #include "../mwworld/containerstore.hpp"
#include "../mwworld/inventorystore.hpp"
#include "../mwworld/player.hpp" #include "../mwworld/player.hpp"
#include "../mwmechanics/creaturestats.hpp" #include "../mwmechanics/creaturestats.hpp"

@ -10,6 +10,7 @@
#include "localscripts.hpp" #include "localscripts.hpp"
#include "luamanagerimp.hpp" #include "luamanagerimp.hpp"
#include "context.hpp"
#include "../mwmechanics/creaturestats.hpp" #include "../mwmechanics/creaturestats.hpp"
#include "../mwmechanics/npcstats.hpp" #include "../mwmechanics/npcstats.hpp"

@ -1,10 +1,12 @@
#ifndef MWLUA_STATS_H #ifndef MWLUA_STATS_H
#define MWLUA_STATS_H #define MWLUA_STATS_H
#include "context.hpp" #include <sol/forward.hpp>
namespace MWLua namespace MWLua
{ {
struct Context;
void addActorStatsBindings(sol::table& actor, const Context& context); void addActorStatsBindings(sol::table& actor, const Context& context);
void addNpcStatsBindings(sol::table& npc, const Context& context); void addNpcStatsBindings(sol::table& npc, const Context& context);
} }

@ -3,10 +3,11 @@
#include <components/esm3/loadacti.hpp> #include <components/esm3/loadacti.hpp>
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <components/lua/luastate.hpp>
#include <apps/openmw/mwworld/esmstore.hpp> #include <apps/openmw/mwworld/esmstore.hpp>
#include <apps/openmw/mwbase/environment.hpp>
#include "../luabindings.hpp" #include <apps/openmw/mwbase/world.hpp>
namespace sol namespace sol
{ {

@ -8,7 +8,6 @@
#include <apps/openmw/mwworld/inventorystore.hpp> #include <apps/openmw/mwworld/inventorystore.hpp>
#include <apps/openmw/mwworld/class.hpp> #include <apps/openmw/mwworld/class.hpp>
#include "../luabindings.hpp"
#include "../localscripts.hpp" #include "../localscripts.hpp"
#include "../luamanagerimp.hpp" #include "../luamanagerimp.hpp"
#include "../stats.hpp" #include "../stats.hpp"

@ -3,10 +3,11 @@
#include <components/esm3/loadappa.hpp> #include <components/esm3/loadappa.hpp>
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <components/lua/luastate.hpp>
#include <apps/openmw/mwworld/esmstore.hpp> #include <apps/openmw/mwworld/esmstore.hpp>
#include <apps/openmw/mwbase/environment.hpp>
#include "../luabindings.hpp" #include <apps/openmw/mwbase/world.hpp>
namespace sol namespace sol
{ {

@ -3,10 +3,11 @@
#include <components/esm3/loadbook.hpp> #include <components/esm3/loadbook.hpp>
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <components/lua/luastate.hpp>
#include <apps/openmw/mwworld/esmstore.hpp> #include <apps/openmw/mwworld/esmstore.hpp>
#include <apps/openmw/mwbase/environment.hpp>
#include "../luabindings.hpp" #include <apps/openmw/mwbase/world.hpp>
namespace sol namespace sol
{ {

@ -3,11 +3,12 @@
#include <components/esm3/loadcont.hpp> #include <components/esm3/loadcont.hpp>
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <components/lua/luastate.hpp>
#include <apps/openmw/mwworld/esmstore.hpp> #include <apps/openmw/mwworld/esmstore.hpp>
#include <apps/openmw/mwworld/class.hpp> #include <apps/openmw/mwworld/class.hpp>
#include <apps/openmw/mwbase/environment.hpp>
#include "../luabindings.hpp" #include <apps/openmw/mwbase/world.hpp>
namespace sol namespace sol
{ {

@ -1,13 +1,13 @@
#include "types.hpp" #include "types.hpp"
#include <components/esm3/loadcrea.hpp> #include <components/esm3/loadcrea.hpp>
#include <components/lua/luastate.hpp>
#include <apps/openmw/mwworld/esmstore.hpp>
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include "../stats.hpp" #include <apps/openmw/mwworld/esmstore.hpp>
#include "../luabindings.hpp" #include <apps/openmw/mwbase/environment.hpp>
#include <apps/openmw/mwbase/world.hpp>
namespace sol namespace sol
{ {

@ -7,6 +7,7 @@
#include <apps/openmw/mwworld/esmstore.hpp> #include <apps/openmw/mwworld/esmstore.hpp>
#include "../luabindings.hpp" #include "../luabindings.hpp"
#include "../worldview.hpp"
namespace sol namespace sol
{ {

@ -2,9 +2,12 @@
#include <components/esm3/loadingr.hpp> #include <components/esm3/loadingr.hpp>
#include <components/lua/luastate.hpp>
#include <apps/openmw/mwworld/esmstore.hpp> #include <apps/openmw/mwworld/esmstore.hpp>
#include "../luabindings.hpp" #include <apps/openmw/mwbase/environment.hpp>
#include <apps/openmw/mwbase/world.hpp>
namespace sol namespace sol
{ {

@ -3,10 +3,11 @@
#include <components/esm3/loadlock.hpp> #include <components/esm3/loadlock.hpp>
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <components/lua/luastate.hpp>
#include <apps/openmw/mwworld/esmstore.hpp> #include <apps/openmw/mwworld/esmstore.hpp>
#include <apps/openmw/mwbase/environment.hpp>
#include "../luabindings.hpp" #include <apps/openmw/mwbase/world.hpp>
namespace sol namespace sol
{ {

@ -3,10 +3,11 @@
#include <components/esm3/loadmisc.hpp> #include <components/esm3/loadmisc.hpp>
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <components/lua/luastate.hpp>
#include <apps/openmw/mwworld/esmstore.hpp> #include <apps/openmw/mwworld/esmstore.hpp>
#include <apps/openmw/mwbase/environment.hpp>
#include "../luabindings.hpp" #include <apps/openmw/mwbase/world.hpp>
namespace sol namespace sol
{ {

@ -1,11 +1,13 @@
#include "types.hpp" #include "types.hpp"
#include <components/esm3/loadnpc.hpp> #include <components/esm3/loadnpc.hpp>
#include <components/lua/luastate.hpp>
#include <apps/openmw/mwworld/esmstore.hpp> #include <apps/openmw/mwworld/esmstore.hpp>
#include <apps/openmw/mwbase/environment.hpp>
#include <apps/openmw/mwbase/world.hpp>
#include "../stats.hpp" #include "../stats.hpp"
#include "../luabindings.hpp"
namespace sol namespace sol
{ {

@ -3,10 +3,11 @@
#include <components/esm3/loadalch.hpp> #include <components/esm3/loadalch.hpp>
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <components/lua/luastate.hpp>
#include <apps/openmw/mwworld/esmstore.hpp> #include <apps/openmw/mwworld/esmstore.hpp>
#include <apps/openmw/mwbase/environment.hpp>
#include "../luabindings.hpp" #include <apps/openmw/mwbase/world.hpp>
namespace sol namespace sol
{ {

@ -3,10 +3,11 @@
#include <components/esm3/loadprob.hpp> #include <components/esm3/loadprob.hpp>
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <components/lua/luastate.hpp>
#include <apps/openmw/mwworld/esmstore.hpp> #include <apps/openmw/mwworld/esmstore.hpp>
#include <apps/openmw/mwbase/environment.hpp>
#include "../luabindings.hpp" #include <apps/openmw/mwbase/world.hpp>
namespace sol namespace sol
{ {

@ -3,10 +3,11 @@
#include <components/esm3/loadrepa.hpp> #include <components/esm3/loadrepa.hpp>
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <components/lua/luastate.hpp>
#include <apps/openmw/mwworld/esmstore.hpp> #include <apps/openmw/mwworld/esmstore.hpp>
#include <apps/openmw/mwbase/environment.hpp>
#include "../luabindings.hpp" #include <apps/openmw/mwbase/world.hpp>
namespace sol namespace sol
{ {

@ -3,10 +3,11 @@
#include <components/esm3/loadweap.hpp> #include <components/esm3/loadweap.hpp>
#include <components/misc/resourcehelpers.hpp> #include <components/misc/resourcehelpers.hpp>
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <components/lua/luastate.hpp>
#include <apps/openmw/mwworld/esmstore.hpp> #include <apps/openmw/mwworld/esmstore.hpp>
#include <apps/openmw/mwbase/environment.hpp>
#include "../luabindings.hpp" #include <apps/openmw/mwbase/world.hpp>
namespace sol namespace sol
{ {

Loading…
Cancel
Save