OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | List of all members
ESM::Script Class Reference

#include <loadscpt.hpp>

Collaboration diagram for ESM::Script:

Classes

struct  SCHD
 
struct  SCHDstruct
 

Public Member Functions

void load (ESMReader &esm, bool &isDeleted)
 
void save (ESMWriter &esm, bool isDeleted=false) const
 
void blank ()
 Set record to default state (does not touch the ID/index). More...
 

Static Public Member Functions

static std::string getRecordType ()
 Return a string descriptor for this record type. Currently used for debugging / error logs only. More...
 

Public Attributes

std::string mId
 
SCHDstruct mData
 
std::vector< std::string > mVarNames
 
std::vector< unsigned char > mScriptData
 
std::string mScriptText
 Script source code. More...
 

Static Public Attributes

static unsigned int sRecordId = REC_SCPT
 

Private Member Functions

void loadSCVR (ESMReader &esm)
 

Member Function Documentation

void ESM::Script::blank ( )

Set record to default state (does not touch the ID/index).

static std::string ESM::Script::getRecordType ( )
inlinestatic

Return a string descriptor for this record type. Currently used for debugging / error logs only.

void ESM::Script::load ( ESMReader esm,
bool isDeleted 
)

Here is the call graph for this function:

void ESM::Script::loadSCVR ( ESMReader esm)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void ESM::Script::save ( ESMWriter esm,
bool  isDeleted = false 
) const

Here is the call graph for this function:

Member Data Documentation

SCHDstruct ESM::Script::mData
std::string ESM::Script::mId
std::vector<unsigned char> ESM::Script::mScriptData

Bytecode generated from script-precompiling in the editor.

Warning
Do not use this field. OpenCS currently does not precompile scripts.
std::string ESM::Script::mScriptText

Script source code.

std::vector<std::string> ESM::Script::mVarNames

Variable names generated by script-precompiling in the editor.

Warning
Do not use this field. OpenCS currently does not precompile scripts.
unsigned int ESM::Script::sRecordId = REC_SCPT
static

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