From e1558e8e14cb22bcda807bf4ff8fee81b067e885 Mon Sep 17 00:00:00 2001 From: Jason Hooks Date: Sun, 30 Oct 2011 16:59:40 -0400 Subject: [PATCH] Changing refdata --- apps/openmw/mwworld/refdata.hpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/apps/openmw/mwworld/refdata.hpp b/apps/openmw/mwworld/refdata.hpp index a9613248e6..af52ab2b00 100644 --- a/apps/openmw/mwworld/refdata.hpp +++ b/apps/openmw/mwworld/refdata.hpp @@ -22,7 +22,9 @@ namespace MWWorld { class RefData { - std::string mHandle; + Ogre::SceneNode* mHandle; + + std::string baseNode; MWScript::Locals mLocals; // if we find the overhead of heaving a locals // object in the refdata of refs without a script, @@ -43,12 +45,18 @@ namespace MWWorld 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; } + std::string getBaseNode(){ + return baseNode; + } + void setBaseNode(const std::string& node){ + baseNode = node; + } int getCount() const { @@ -64,10 +72,6 @@ namespace MWWorld } } - void setHandle (const std::string& handle) - { - mHandle = handle; - } void setCount (int count) {