1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-10 21:40:15 +00:00

Changing refdata2

This commit is contained in:
Jason Hooks 2011-10-30 17:31:49 -04:00
parent e1558e8e14
commit 15fae749ae

View File

@ -12,6 +12,7 @@
#include "../mwmechanics/movement.hpp" #include "../mwmechanics/movement.hpp"
#include "containerstore.hpp" #include "containerstore.hpp"
#include <Ogre.h>
namespace ESM namespace ESM
{ {
@ -22,9 +23,8 @@ namespace MWWorld
{ {
class RefData class RefData
{ {
Ogre::SceneNode* mHandle; Ogre::SceneNode* mBaseNode;
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,
@ -45,18 +45,15 @@ namespace MWWorld
public: public:
RefData() : mHasLocals (false), mEnabled (true), mCount (1){ mHandle = 0;} RefData() : mHasLocals (false), mEnabled (true), mCount (1) {mBaseNode = 0;}
Ogre::SceneNode* getHandle() std::string getHandle()
{ {
return mHandle; return mBaseNode->getName();
}
void setSceneNode(Ogre::SceneNode* base){
mBaseNode = base;
} }
std::string getBaseNode(){
return baseNode;
}
void setBaseNode(const std::string& node){
baseNode = node;
}
int getCount() const int getCount() const
{ {