|
|
@ -36,30 +36,26 @@ namespace ESMTerrain
|
|
|
|
class LandObject : public osg::Object
|
|
|
|
class LandObject : public osg::Object
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
LandObject();
|
|
|
|
LandObject() = default;
|
|
|
|
LandObject(const ESM::Land* land, int loadFlags);
|
|
|
|
LandObject(const ESM::Land* land, int loadFlags);
|
|
|
|
LandObject(const ESM4::Land* land, int loadFlags);
|
|
|
|
LandObject(const ESM4::Land* land, int loadFlags);
|
|
|
|
|
|
|
|
|
|
|
|
LandObject(const LandObject& copy, const osg::CopyOp& copyop);
|
|
|
|
|
|
|
|
virtual ~LandObject();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
META_Object(ESMTerrain, LandObject)
|
|
|
|
META_Object(ESMTerrain, LandObject)
|
|
|
|
|
|
|
|
|
|
|
|
inline const ESM::LandData* getData(int flags) const
|
|
|
|
const ESM::LandData* getData(int flags) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ((mData.getLoadFlags() & flags) != flags)
|
|
|
|
if ((mData.getLoadFlags() & flags) != flags)
|
|
|
|
return nullptr;
|
|
|
|
return nullptr;
|
|
|
|
|
|
|
|
|
|
|
|
return &mData;
|
|
|
|
return &mData;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
inline int getPlugin() const { return mLand->getPlugin(); }
|
|
|
|
|
|
|
|
inline int getLandSize() const { return mData.getLandSize(); }
|
|
|
|
|
|
|
|
inline int getRealSize() const { return mData.getSize(); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
int getPlugin() const { return mData.getPlugin(); }
|
|
|
|
const ESM::Land* mLand;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
ESM::LandData mData;
|
|
|
|
ESM::LandData mData;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LandObject(const LandObject& copy, const osg::CopyOp& copyOp);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// Since plugins can define new texture palettes, we need to know the plugin index too
|
|
|
|
// Since plugins can define new texture palettes, we need to know the plugin index too
|
|
|
|