mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 07:23:51 +00:00
Changing refdata2
This commit is contained in:
parent
e1558e8e14
commit
15fae749ae
1 changed files with 8 additions and 11 deletions
|
@ -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…
Reference in a new issue