OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
CSMWorld::Land Struct Reference

Wrapper for Land record. Encodes X and Y cell index in the ID. More...

#include <land.hpp>

Inheritance diagram for CSMWorld::Land:
Collaboration diagram for CSMWorld::Land:

Public Member Functions

void load (ESM::ESMReader &esm, bool &isDeleted)
 Loads the metadata and ID. More...
 
- Public Member Functions inherited from ESM::Land
 Land ()
 
 ~Land ()
 
void load (ESMReader &esm, bool &isDeleted)
 
void save (ESMWriter &esm, bool isDeleted=false) const
 
void blank ()
 
void loadData (int flags) const
 
void unloadData ()
 
bool isDataLoaded (int flags) const
 
 Land (const Land &land)
 
Landoperator= (Land land)
 
void swap (Land &land)
 
const LandDatagetLandData (int flags) const
 
const LandDatagetLandData () const
 Return land data without loading first anything. Can return a 0-pointer. More...
 
LandDatagetLandData ()
 Return land data without loading first anything. Can return a 0-pointer. More...
 
void add (int flags)
 
void remove (int flags)
 

Public Attributes

std::string mId
 
- Public Attributes inherited from ESM::Land
int mFlags
 
int mX
 
int mY
 
int mPlugin
 
ESM_Context mContext
 
int mDataTypes
 

Additional Inherited Members

- Public Types inherited from ESM::Land
enum  {
  DATA_VNML = 1, DATA_VHGT = 2, DATA_WNAM = 4, DATA_VCLR = 8,
  DATA_VTEX = 16
}
 
typedef signed char VNML
 
- Static Public Member Functions inherited from ESM::Land
static std::string getRecordType ()
 Return a string descriptor for this record type. Currently used for debugging / error logs only. More...
 
- Static Public Attributes inherited from ESM::Land
static unsigned int sRecordId = REC_LAND
 
static const int DEFAULT_HEIGHT = -2048
 
static const int LAND_SIZE = 65
 
static const int REAL_SIZE = 8192
 
static const int LAND_NUM_VERTS = LAND_SIZE * LAND_SIZE
 
static const int HEIGHT_SCALE = 8
 
static const int LAND_TEXTURE_SIZE = 16
 
static const int LAND_NUM_TEXTURES = LAND_TEXTURE_SIZE * LAND_TEXTURE_SIZE
 

Detailed Description

Wrapper for Land record. Encodes X and Y cell index in the ID.

Todo:
Add worldspace support to the Land record.

Member Function Documentation

void CSMWorld::Land::load ( ESM::ESMReader esm,
bool isDeleted 
)

Loads the metadata and ID.

Here is the call graph for this function:

Member Data Documentation

std::string CSMWorld::Land::mId

The documentation for this struct was generated from the following files: