mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-18 13:12:50 +00:00
Merge branch 'cleanup_detournavigator_includes' into 'master'
Cleanup detournavigator includes See merge request OpenMW/openmw!2281
This commit is contained in:
commit
823b8ebc22
@ -4,6 +4,7 @@
|
||||
#include <components/debug/debugging.hpp>
|
||||
#include <components/detournavigator/navmeshdb.hpp>
|
||||
#include <components/detournavigator/recastglobalallocator.hpp>
|
||||
#include <components/detournavigator/settings.hpp>
|
||||
#include <components/esm3/esmreader.hpp>
|
||||
#include <components/esm3/variant.hpp>
|
||||
#include <components/esmloader/esmdata.hpp>
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include <components/detournavigator/recastmesh.hpp>
|
||||
#include <components/detournavigator/recastmeshprovider.hpp>
|
||||
#include <components/detournavigator/serialization.hpp>
|
||||
#include <components/detournavigator/settings.hpp>
|
||||
#include <components/detournavigator/tileposition.hpp>
|
||||
#include <components/misc/progressreporter.hpp>
|
||||
#include <components/sceneutil/workqueue.hpp>
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include <components/detournavigator/objectid.hpp>
|
||||
#include <components/detournavigator/recastmesh.hpp>
|
||||
#include <components/detournavigator/tilecachedrecastmeshmanager.hpp>
|
||||
#include <components/detournavigator/settings.hpp>
|
||||
#include <components/esm3/cellref.hpp>
|
||||
#include <components/esm3/esmreader.hpp>
|
||||
#include <components/esm3/loadcell.hpp>
|
||||
|
@ -3,6 +3,7 @@
|
||||
#include <components/esm3/loadcell.hpp>
|
||||
#include <components/esm3/loadland.hpp>
|
||||
#include <components/detournavigator/navigator.hpp>
|
||||
#include <components/detournavigator/agentbounds.hpp>
|
||||
#include <components/misc/coordinateconverter.hpp>
|
||||
#include <components/settings/settings.hpp>
|
||||
|
||||
|
@ -8,16 +8,17 @@
|
||||
#include <components/sceneutil/detourdebugdraw.hpp>
|
||||
#include <components/sceneutil/workqueue.hpp>
|
||||
#include <components/detournavigator/settings.hpp>
|
||||
#include <components/detournavigator/guardednavmeshcacheitem.hpp>
|
||||
|
||||
#include <osg/PositionAttitudeTransform>
|
||||
#include <osg/StateSet>
|
||||
|
||||
#include <DetourNavMesh.h>
|
||||
|
||||
#include "../mwbase/world.hpp"
|
||||
#include "../mwbase/environment.hpp"
|
||||
|
||||
#include <limits>
|
||||
#include <algorithm>
|
||||
|
||||
namespace MWRender
|
||||
{
|
||||
|
@ -51,6 +51,7 @@
|
||||
#include <components/esm3/loadcell.hpp>
|
||||
|
||||
#include <components/detournavigator/navigator.hpp>
|
||||
#include <components/detournavigator/navmeshcacheitem.hpp>
|
||||
|
||||
#include "../mwworld/cellstore.hpp"
|
||||
#include "../mwworld/class.hpp"
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include <components/resource/scenemanager.hpp>
|
||||
#include <components/sceneutil/positionattitudetransform.hpp>
|
||||
#include <components/detournavigator/navigator.hpp>
|
||||
#include <components/detournavigator/agentbounds.hpp>
|
||||
#include <components/misc/convert.hpp>
|
||||
#include <components/detournavigator/heightfieldshape.hpp>
|
||||
|
||||
|
@ -32,6 +32,7 @@
|
||||
|
||||
#include <components/detournavigator/navigator.hpp>
|
||||
#include <components/detournavigator/settings.hpp>
|
||||
#include <components/detournavigator/agentbounds.hpp>
|
||||
|
||||
#include <components/loadinglistener/loadinglistener.hpp>
|
||||
|
||||
|
@ -10,6 +10,8 @@
|
||||
#include "navmeshdb.hpp"
|
||||
#include "changetype.hpp"
|
||||
#include "agentbounds.hpp"
|
||||
#include "guardednavmeshcacheitem.hpp"
|
||||
#include "sharednavmeshcacheitem.hpp"
|
||||
|
||||
#include <osg/Vec3f>
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
#include "cachedrecastmeshmanager.hpp"
|
||||
#include "debug.hpp"
|
||||
|
||||
namespace DetourNavigator
|
||||
{
|
||||
|
@ -1,7 +1,6 @@
|
||||
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_FINDSMOOTHPATH_H
|
||||
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_FINDSMOOTHPATH_H
|
||||
|
||||
#include "exceptions.hpp"
|
||||
#include "flags.hpp"
|
||||
#include "settings.hpp"
|
||||
#include "settingsutils.hpp"
|
||||
|
@ -2,11 +2,9 @@
|
||||
|
||||
#include "dbrefgeometryobject.hpp"
|
||||
#include "makenavmesh.hpp"
|
||||
#include "offmeshconnectionsmanager.hpp"
|
||||
#include "preparednavmeshdata.hpp"
|
||||
#include "serialization.hpp"
|
||||
#include "settings.hpp"
|
||||
#include "tilecachedrecastmeshmanager.hpp"
|
||||
|
||||
#include <components/debug/debuglog.hpp>
|
||||
|
||||
|
17
components/detournavigator/guardednavmeshcacheitem.hpp
Normal file
17
components/detournavigator/guardednavmeshcacheitem.hpp
Normal file
@ -0,0 +1,17 @@
|
||||
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_GUARDEDNAVMESHCACHEITEM_H
|
||||
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_GUARDEDNAVMESHCACHEITEM_H
|
||||
|
||||
namespace Misc
|
||||
{
|
||||
template <class T>
|
||||
class ScopeGuarded;
|
||||
}
|
||||
|
||||
namespace DetourNavigator
|
||||
{
|
||||
class NavMeshCacheItem;
|
||||
|
||||
using GuardedNavMeshCacheItem = Misc::ScopeGuarded<NavMeshCacheItem>;
|
||||
}
|
||||
|
||||
#endif
|
@ -11,10 +11,8 @@
|
||||
#include "navmeshdata.hpp"
|
||||
#include "recastmeshbuilder.hpp"
|
||||
#include "navmeshdb.hpp"
|
||||
#include "serialization.hpp"
|
||||
#include "dbrefgeometryobject.hpp"
|
||||
#include "navmeshdbutils.hpp"
|
||||
#include "recastparams.hpp"
|
||||
#include "offmeshconnection.hpp"
|
||||
|
||||
#include <components/misc/convert.hpp>
|
||||
#include <components/bullethelpers/processtrianglecallback.hpp>
|
||||
|
@ -1,17 +1,9 @@
|
||||
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_MAKENAVMESH_H
|
||||
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_MAKENAVMESH_H
|
||||
|
||||
#include "offmeshconnectionsmanager.hpp"
|
||||
#include "navmeshcacheitem.hpp"
|
||||
#include "tileposition.hpp"
|
||||
#include "sharednavmesh.hpp"
|
||||
#include "navmeshtilescache.hpp"
|
||||
#include "offmeshconnection.hpp"
|
||||
#include "navmeshdb.hpp"
|
||||
|
||||
#include <components/misc/guarded.hpp>
|
||||
|
||||
#include <osg/Vec3f>
|
||||
#include "recastmesh.hpp"
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
@ -21,10 +13,12 @@ struct rcConfig;
|
||||
|
||||
namespace DetourNavigator
|
||||
{
|
||||
class RecastMesh;
|
||||
struct Settings;
|
||||
struct PreparedNavMeshData;
|
||||
struct NavMeshData;
|
||||
struct OffMeshConnection;
|
||||
struct AgentBounds;
|
||||
struct RecastSettings;
|
||||
|
||||
inline float getLength(const osg::Vec2i& value)
|
||||
{
|
||||
|
@ -2,7 +2,7 @@
|
||||
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_NAVIGATOR_H
|
||||
|
||||
#include "objectid.hpp"
|
||||
#include "navmeshcacheitem.hpp"
|
||||
#include "sharednavmeshcacheitem.hpp"
|
||||
#include "recastmeshtiles.hpp"
|
||||
#include "waitconditiontype.hpp"
|
||||
#include "heightfieldshape.hpp"
|
||||
@ -23,6 +23,11 @@ namespace Loading
|
||||
class Listener;
|
||||
}
|
||||
|
||||
namespace osg
|
||||
{
|
||||
class Stats;
|
||||
}
|
||||
|
||||
namespace DetourNavigator
|
||||
{
|
||||
struct Settings;
|
||||
|
@ -1,5 +1,4 @@
|
||||
#include "navigatorimpl.hpp"
|
||||
#include "debug.hpp"
|
||||
#include "settingsutils.hpp"
|
||||
|
||||
#include <components/debug/debuglog.hpp>
|
||||
|
@ -5,6 +5,9 @@
|
||||
#include "flags.hpp"
|
||||
#include "settings.hpp"
|
||||
#include "navigator.hpp"
|
||||
#include "navmeshcacheitem.hpp"
|
||||
|
||||
#include <components/misc/guarded.hpp>
|
||||
|
||||
#include <optional>
|
||||
|
||||
|
@ -7,8 +7,6 @@
|
||||
#include "navmeshdata.hpp"
|
||||
#include "version.hpp"
|
||||
|
||||
#include <components/misc/guarded.hpp>
|
||||
|
||||
#include <map>
|
||||
#include <iosfwd>
|
||||
#include <set>
|
||||
@ -148,9 +146,6 @@ namespace DetourNavigator
|
||||
std::map<TilePosition, Tile> mUsedTiles;
|
||||
std::set<TilePosition> mEmptyTiles;
|
||||
};
|
||||
|
||||
using GuardedNavMeshCacheItem = Misc::ScopeGuarded<NavMeshCacheItem>;
|
||||
using SharedNavMeshCacheItem = std::shared_ptr<GuardedNavMeshCacheItem>;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include "navmeshcacheitem.hpp"
|
||||
#include "settings.hpp"
|
||||
#include "waitconditiontype.hpp"
|
||||
#include "settingsutils.hpp"
|
||||
|
||||
#include <components/debug/debuglog.hpp>
|
||||
#include <components/bullethelpers/heightfield.hpp>
|
||||
|
@ -2,7 +2,6 @@
|
||||
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_NAVMESHMANAGER_H
|
||||
|
||||
#include "asyncnavmeshupdater.hpp"
|
||||
#include "cachedrecastmeshmanager.hpp"
|
||||
#include "offmeshconnectionsmanager.hpp"
|
||||
#include "recastmeshtiles.hpp"
|
||||
#include "waitconditiontype.hpp"
|
||||
|
@ -22,6 +22,8 @@ namespace DetourNavigator
|
||||
|
||||
~PreparedNavMeshData() noexcept;
|
||||
|
||||
PreparedNavMeshData& operator=(const PreparedNavMeshData& other) = delete;
|
||||
|
||||
friend bool operator==(const PreparedNavMeshData& lhs, const PreparedNavMeshData& rhs) noexcept;
|
||||
};
|
||||
|
||||
|
@ -2,8 +2,6 @@
|
||||
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_RECASTMESH_H
|
||||
|
||||
#include "areatype.hpp"
|
||||
#include "bounds.hpp"
|
||||
#include "tilebounds.hpp"
|
||||
#include "objecttransform.hpp"
|
||||
|
||||
#include <components/bullethelpers/operators.hpp>
|
||||
|
@ -1,5 +1,4 @@
|
||||
#include "recastmeshbuilder.hpp"
|
||||
#include "debug.hpp"
|
||||
#include "exceptions.hpp"
|
||||
|
||||
#include <components/bullethelpers/transformboundingbox.hpp>
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include "recastmeshmanager.hpp"
|
||||
#include "recastmeshbuilder.hpp"
|
||||
#include "settings.hpp"
|
||||
#include "heightfieldshape.hpp"
|
||||
|
||||
#include <components/debug/debuglog.hpp>
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include "tileposition.hpp"
|
||||
#include "recastmesh.hpp"
|
||||
#include "tilecachedrecastmeshmanager.hpp"
|
||||
#include "version.hpp"
|
||||
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include "recastmesh.hpp"
|
||||
#include "settings.hpp"
|
||||
#include "agentbounds.hpp"
|
||||
#include "tilebounds.hpp"
|
||||
|
||||
#include <components/serialization/binaryreader.hpp>
|
||||
#include <components/serialization/binarywriter.hpp>
|
||||
|
13
components/detournavigator/sharednavmeshcacheitem.hpp
Normal file
13
components/detournavigator/sharednavmeshcacheitem.hpp
Normal file
@ -0,0 +1,13 @@
|
||||
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_SHAREDNAVMESHCACHEITEM_H
|
||||
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_SHAREDNAVMESHCACHEITEM_H
|
||||
|
||||
#include "guardednavmeshcacheitem.hpp"
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace DetourNavigator
|
||||
{
|
||||
using SharedNavMeshCacheItem = std::shared_ptr<GuardedNavMeshCacheItem>;
|
||||
}
|
||||
|
||||
#endif
|
@ -1,5 +1,4 @@
|
||||
#include "tilecachedrecastmeshmanager.hpp"
|
||||
#include "makenavmesh.hpp"
|
||||
#include "gettilespositions.hpp"
|
||||
#include "settingsutils.hpp"
|
||||
#include "changetype.hpp"
|
||||
|
@ -3,7 +3,6 @@
|
||||
|
||||
#include "cachedrecastmeshmanager.hpp"
|
||||
#include "tileposition.hpp"
|
||||
#include "settingsutils.hpp"
|
||||
#include "gettilespositions.hpp"
|
||||
#include "version.hpp"
|
||||
#include "heightfieldshape.hpp"
|
||||
|
Loading…
x
Reference in New Issue
Block a user