2015-05-24 23:37:20 +00:00
|
|
|
#ifndef id372857FBD20C4DD2A9EDDB3A167682AA
|
|
|
|
#define id372857FBD20C4DD2A9EDDB3A167682AA
|
|
|
|
|
|
|
|
#include "doorkeeper/implem/maptypes.hpp"
|
|
|
|
#include "doorkeeper/primitivetypes.hpp"
|
|
|
|
#include <cstdint>
|
2015-05-27 22:20:40 +00:00
|
|
|
#include <vector>
|
|
|
|
#include <string>
|
2015-05-24 23:37:20 +00:00
|
|
|
|
|
|
|
namespace dk {
|
|
|
|
template <typename T, uint32_t D>
|
|
|
|
class BaseMapSource {
|
|
|
|
public:
|
2015-06-06 11:52:48 +00:00
|
|
|
typedef dk::Vector<D> coords;
|
2015-05-24 23:37:20 +00:00
|
|
|
BaseMapSource ( void ) = default;
|
|
|
|
virtual ~BaseMapSource ( void ) noexcept = default;
|
|
|
|
|
|
|
|
virtual void fetch ( std::vector<T>& parOut, const coords& parFrom, const coords& parTo ) = 0;
|
|
|
|
virtual const coords& mapSize ( void ) const = 0;
|
2015-05-27 22:20:40 +00:00
|
|
|
virtual const coords& tileSize ( void ) const = 0;
|
2015-05-24 23:37:20 +00:00
|
|
|
virtual MapTypes mapType ( void ) const = 0;
|
|
|
|
virtual int layersCount ( void ) const = 0;
|
2015-05-27 22:20:40 +00:00
|
|
|
virtual void chainedMaps ( std::vector<std::string>& parOut ) const = 0;
|
2015-05-24 23:37:20 +00:00
|
|
|
};
|
|
|
|
} //namespace dk
|
|
|
|
|
|
|
|
#endif
|