1 #ifndef GAME_MWWORLD_REFDATA_H
2 #define GAME_MWWORLD_REFDATA_H
7 #include "../mwscript/locals.hpp"
14 class PositionAttitudeTransform;
ESM::Position mPosition
Definition: refdata.hpp:44
~RefData()
Definition: refdata.cpp:124
Definition: locals.hpp:16
bool isDeleted() const
Returns true if the object was either deleted by the content file or by gameplay. ...
Definition: refdata.cpp:175
void write(ESM::ObjectState &objectState, const std::string &scriptId="") const
Definition: refdata.cpp:96
void copy(const RefData &refData)
Definition: refdata.cpp:24
void setLocals(const ESM::Script &script)
Definition: refdata.cpp:154
bool isEnabled() const
Definition: refdata.cpp:190
MWScript::Locals & getLocals()
Definition: refdata.cpp:185
bool activateByScript()
Definition: refdata.cpp:246
RefData & operator=(const RefData &refData)
Definition: refdata.cpp:108
SceneUtil::PositionAttitudeTransform * mBaseNode
Definition: refdata.hpp:31
Definition: loadscpt.hpp:19
bool onActivate()
Definition: refdata.cpp:266
MWScript::Locals mLocals
Definition: refdata.hpp:33
const ESM::AnimationState & getAnimationState() const
Definition: refdata.cpp:274
bool activate()
Definition: refdata.cpp:253
bool isDeletedByContentFile() const
Returns true if the object was deleted by a content file.
Definition: refdata.cpp:180
SceneUtil::PositionAttitudeTransform * getBaseNode()
Return base node (can be a null pointer).
Definition: refdata.cpp:139
Base class for the MW-class-specific part of RefData.
Definition: customdata.hpp:16
Definition: animationstate.hpp:14
Definition: refdata.hpp:29
void setBaseNode(SceneUtil::PositionAttitudeTransform *base)
Set base node (can be a null pointer).
Definition: refdata.cpp:134
bool mEnabled
Definition: refdata.hpp:39
RefData()
Definition: refdata.cpp:48
void setPosition(const ESM::Position &pos)
Definition: refdata.cpp:213
int getCount() const
Definition: refdata.cpp:149
<
Definition: objectstate.hpp:19
void setCustomData(CustomData *data)
Definition: refdata.cpp:224
void setCount(int count)
Definition: refdata.cpp:160
bool mDeletedByContentFile
Definition: refdata.hpp:37
CustomData * mCustomData
Definition: refdata.hpp:48
unsigned int mFlags
Definition: refdata.hpp:56
void cleanup()
Definition: refdata.cpp:40
Definition: cellref.hpp:34
int mCount
0: deleted
Definition: refdata.hpp:42
void enable()
Definition: refdata.cpp:195
CustomData * getCustomData()
May return a 0-pointer. The ownership of the return data object is not transferred.
Definition: refdata.cpp:231
void setDeletedByContentFile(bool deleted)
Definition: refdata.cpp:170
const ESM::Position & getPosition() const
Definition: refdata.cpp:219
bool mChanged
Definition: refdata.hpp:54
ESM::AnimationState mAnimationState
Definition: refdata.hpp:46
bool hasChanged() const
Has this RefData changed since it was originally loaded?
Definition: refdata.cpp:241
void disable()
Definition: refdata.cpp:204