1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 10:23:51 +00:00

Changing refdata

This commit is contained in:
Jason Hooks 2011-10-30 16:59:40 -04:00
parent 1083db5582
commit e1558e8e14

View file

@ -22,7 +22,9 @@ namespace MWWorld
{ {
class RefData class RefData
{ {
std::string mHandle; Ogre::SceneNode* mHandle;
std::string baseNode;
MWScript::Locals mLocals; // if we find the overhead of heaving a locals MWScript::Locals mLocals; // if we find the overhead of heaving a locals
// object in the refdata of refs without a script, // object in the refdata of refs without a script,
@ -43,12 +45,18 @@ namespace MWWorld
public: public:
RefData() : mHasLocals (false), mEnabled (true), mCount (1) {} RefData() : mHasLocals (false), mEnabled (true), mCount (1){ mHandle = 0;}
std::string getHandle() Ogre::SceneNode* getHandle()
{ {
return mHandle; return mHandle;
} }
std::string getBaseNode(){
return baseNode;
}
void setBaseNode(const std::string& node){
baseNode = node;
}
int getCount() const int getCount() const
{ {
@ -64,10 +72,6 @@ namespace MWWorld
} }
} }
void setHandle (const std::string& handle)
{
mHandle = handle;
}
void setCount (int count) void setCount (int count)
{ {