mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 21:40:15 +00:00
Changing refdata2
This commit is contained in:
parent
e1558e8e14
commit
15fae749ae
@ -12,6 +12,7 @@
|
||||
#include "../mwmechanics/movement.hpp"
|
||||
|
||||
#include "containerstore.hpp"
|
||||
#include <Ogre.h>
|
||||
|
||||
namespace ESM
|
||||
{
|
||||
@ -22,9 +23,8 @@ namespace MWWorld
|
||||
{
|
||||
class RefData
|
||||
{
|
||||
Ogre::SceneNode* mHandle;
|
||||
Ogre::SceneNode* mBaseNode;
|
||||
|
||||
std::string baseNode;
|
||||
|
||||
MWScript::Locals mLocals; // if we find the overhead of heaving a locals
|
||||
// object in the refdata of refs without a script,
|
||||
@ -45,17 +45,14 @@ namespace MWWorld
|
||||
|
||||
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();
|
||||
}
|
||||
std::string getBaseNode(){
|
||||
return baseNode;
|
||||
}
|
||||
void setBaseNode(const std::string& node){
|
||||
baseNode = node;
|
||||
void setSceneNode(Ogre::SceneNode* base){
|
||||
mBaseNode = base;
|
||||
}
|
||||
|
||||
int getCount() const
|
||||
|
Loading…
x
Reference in New Issue
Block a user