mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
d1fb854521
esm typo esm typo
39 lines
735 B
C++
39 lines
735 B
C++
#ifndef OPENMW_ESM_FOGSTATE_H
|
|
#define OPENMW_ESM_FOGSTATE_H
|
|
|
|
#include <vector>
|
|
|
|
namespace ESM
|
|
{
|
|
class ESMReader;
|
|
class ESMWriter;
|
|
|
|
struct FogTexture
|
|
{
|
|
int 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
|