mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
756 B
C++
40 lines
756 B
C++
#ifndef OPENMW_ESM_FOGSTATE_H
|
|
#define OPENMW_ESM_FOGSTATE_H
|
|
|
|
#include <cstdint>
|
|
#include <vector>
|
|
|
|
namespace ESM
|
|
{
|
|
class ESMReader;
|
|
class ESMWriter;
|
|
|
|
struct FogTexture
|
|
{
|
|
int32_t mX, mY; // Only used for interior cells
|
|
std::vector<char> mImageData;
|
|
};
|
|
|
|
// format 0, saved games only
|
|
// Fog of war state
|
|
struct FogState
|
|
{
|
|
// Only used for interior cells
|
|
float mNorthMarkerAngle;
|
|
struct Bounds
|
|
{
|
|
float mMinX;
|
|
float mMinY;
|
|
float mMaxX;
|
|
float mMaxY;
|
|
} mBounds;
|
|
|
|
std::vector<FogTexture> mFogTextures;
|
|
|
|
void load(ESMReader& esm);
|
|
void save(ESMWriter& esm, bool interiorCell) const;
|
|
};
|
|
}
|
|
|
|
#endif
|