Some more forward-declaring for OpenMW-CS

This commit is contained in:
Alexander "Ace" Olofsson 2015-02-09 16:50:34 +01:00
parent f2c5060cc0
commit cfcaf4528f
3 changed files with 18 additions and 5 deletions

View file

@ -1,4 +1,5 @@
#include "cell.hpp"
#include "idcollection.hpp"
#include "pathgrid.hpp"
#include <sstream>

View file

@ -6,11 +6,14 @@
#include <components/esm/loadpgrd.hpp>
#include "idcollection.hpp"
#include "cell.hpp"
namespace CSMWorld
{
struct Cell;
template<typename T>
struct IdAccessor;
template<typename T, typename AT = IdAccessor<T>>
class IdCollection;
/// \brief Wrapper for Pathgrid record
///
/// \attention The mData.mX and mData.mY fields of the ESM::Pathgrid struct are not used.

View file

@ -1,10 +1,19 @@
#ifndef CSM_WOLRD_SUBCOLLECTION_H
#define CSM_WOLRD_SUBCOLLECTION_H
#include "idcollection.hpp"
namespace ESM
{
class ESMReader;
}
namespace CSMWorld
{
struct Cell;
template<typename T>
struct IdAccessor;
template<typename T, typename AT = IdAccessor<T>>
class IdCollection;
/// \brief Single type collection of top level records that are associated with cells
template<typename ESXRecordT, typename IdAccessorT = IdAccessor<ESXRecordT> >
class SubCellCollection : public IdCollection<ESXRecordT, IdAccessorT>