|
|
|
@ -31,6 +31,7 @@
|
|
|
|
|
#include <components/esm3/loadnpc.hpp>
|
|
|
|
|
#include <components/esm3/loadmisc.hpp>
|
|
|
|
|
#include <components/esm3/loadbody.hpp>
|
|
|
|
|
#include <components/esm3/fogstate.hpp>
|
|
|
|
|
|
|
|
|
|
#include "timestamp.hpp"
|
|
|
|
|
#include "ptr.hpp"
|
|
|
|
@ -39,7 +40,6 @@ namespace ESM
|
|
|
|
|
{
|
|
|
|
|
struct Cell;
|
|
|
|
|
struct CellState;
|
|
|
|
|
struct FogState;
|
|
|
|
|
struct CellId;
|
|
|
|
|
struct RefNum;
|
|
|
|
|
}
|
|
|
|
@ -66,7 +66,7 @@ namespace MWWorld
|
|
|
|
|
// Even though fog actually belongs to the player and not cells,
|
|
|
|
|
// it makes sense to store it here since we need it once for each cell.
|
|
|
|
|
// Note this is nullptr until the cell is explored to save some memory
|
|
|
|
|
std::shared_ptr<ESM::FogState> mFogState;
|
|
|
|
|
std::unique_ptr<ESM::FogState> mFogState;
|
|
|
|
|
|
|
|
|
|
const ESM::Cell *mCell;
|
|
|
|
|
State mState;
|
|
|
|
@ -254,7 +254,7 @@ namespace MWWorld
|
|
|
|
|
|
|
|
|
|
void setWaterLevel (float level);
|
|
|
|
|
|
|
|
|
|
void setFog (ESM::FogState* fog);
|
|
|
|
|
void setFog(std::unique_ptr<ESM::FogState>&& fog);
|
|
|
|
|
///< \note Takes ownership of the pointer
|
|
|
|
|
|
|
|
|
|
ESM::FogState* getFog () const;
|
|
|
|
|