mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-20 15:23:52 +00:00
1ff8abb240
command Static nature of C++ forced me to use templates. Bit frustraiting.
33 lines
667 B
C++
33 lines
667 B
C++
#ifndef CSM_WOLRD_NESTEDTABLEWRAPPER_H
|
|
#define CSM_WOLRD_NESTEDTABLEWRAPPER_H
|
|
|
|
#include <components/esm/loadcont.hpp>
|
|
|
|
#include <vector>
|
|
namespace CSMWorld
|
|
{
|
|
struct NestedTableWrapperBase
|
|
{
|
|
virtual ~NestedTableWrapperBase();
|
|
|
|
NestedTableWrapperBase();
|
|
};
|
|
|
|
template<typename NestedTable>
|
|
class NestedTableWrapper : public NestedTableWrapperBase
|
|
{
|
|
NestedTable mNestedTable;
|
|
|
|
public:
|
|
|
|
NestedTableWrapper(const NestedTable& nestedTable) {}
|
|
|
|
NestedTable getNestedTable() const
|
|
{
|
|
return mNestedTable;
|
|
}
|
|
|
|
virtual ~NestedTableWrapper() {}
|
|
};
|
|
}
|
|
#endif
|