mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-04 15:57:59 +03:00
Move LiveCellRefBase ctor where it belongs to
This commit is contained in:
parent
2f6d400c62
commit
20cfdd4b43
3 changed files with 8 additions and 10 deletions
|
@ -10,6 +10,11 @@
|
||||||
#include "class.hpp"
|
#include "class.hpp"
|
||||||
#include "esmstore.hpp"
|
#include "esmstore.hpp"
|
||||||
|
|
||||||
|
MWWorld::LiveCellRefBase::LiveCellRefBase(std::string type, const ESM::CellRef &cref)
|
||||||
|
: mClass(&Class::get(type)), mRef(cref), mData(mRef)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
void MWWorld::LiveCellRefBase::loadImp (const ESM::ObjectState& state)
|
void MWWorld::LiveCellRefBase::loadImp (const ESM::ObjectState& state)
|
||||||
{
|
{
|
||||||
mRef = state.mRef;
|
mRef = state.mRef;
|
||||||
|
|
|
@ -5,14 +5,7 @@
|
||||||
|
|
||||||
#include "containerstore.hpp"
|
#include "containerstore.hpp"
|
||||||
#include "class.hpp"
|
#include "class.hpp"
|
||||||
|
#include "livecellref.hpp"
|
||||||
|
|
||||||
/* This shouldn't really be here. */
|
|
||||||
MWWorld::LiveCellRefBase::LiveCellRefBase(std::string type, const ESM::CellRef &cref)
|
|
||||||
: mClass(&Class::get(type)), mRef(cref), mData(mRef)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
const std::string& MWWorld::Ptr::getTypeName() const
|
const std::string& MWWorld::Ptr::getTypeName() const
|
||||||
{
|
{
|
||||||
|
@ -59,4 +52,4 @@ MWWorld::ContainerStore *MWWorld::Ptr::getContainerStore() const
|
||||||
MWWorld::Ptr::operator const void *()
|
MWWorld::Ptr::operator const void *()
|
||||||
{
|
{
|
||||||
return mRef;
|
return mRef;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,12 +7,12 @@
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
#include "cellreflist.hpp"
|
#include "cellreflist.hpp"
|
||||||
#include "livecellref.hpp"
|
|
||||||
|
|
||||||
namespace MWWorld
|
namespace MWWorld
|
||||||
{
|
{
|
||||||
class ContainerStore;
|
class ContainerStore;
|
||||||
class CellStore;
|
class CellStore;
|
||||||
|
class LiveCellRefBase;
|
||||||
|
|
||||||
/// \brief Pointer to a LiveCellRef
|
/// \brief Pointer to a LiveCellRef
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue