2015-05-27 22:20:40 +00:00
|
|
|
#ifndef idA52FEA0859494D3FBDF8ED5565091C59
|
|
|
|
#define idA52FEA0859494D3FBDF8ED5565091C59
|
|
|
|
|
|
|
|
#include "doorkeeper/components/tyler.hpp"
|
|
|
|
#include "doorkeeper/components/basemapsource.hpp"
|
|
|
|
#include <cstdint>
|
|
|
|
#include <utility>
|
|
|
|
#include <string>
|
|
|
|
#include <memory>
|
|
|
|
#include <map>
|
|
|
|
#include <stack>
|
|
|
|
#include <ciso646>
|
|
|
|
|
|
|
|
namespace dkh {
|
|
|
|
template <typename T, uint32_t D, typename C>
|
|
|
|
struct MapLoaderPool {
|
2015-06-06 12:14:00 +00:00
|
|
|
typedef std::unique_ptr<dk::BaseMapSource<D>> BaseMapSourceUPtr;
|
2015-05-27 22:20:40 +00:00
|
|
|
typedef std::map<std::string, BaseMapSourceUPtr> PoolMapType;
|
|
|
|
|
|
|
|
enum { dimensions = D };
|
|
|
|
typedef C opener_type;
|
|
|
|
typedef T tile_type;
|
|
|
|
|
|
|
|
PoolMapType pool;
|
|
|
|
C opener;
|
|
|
|
|
2015-06-06 12:14:00 +00:00
|
|
|
dk::BaseMapSource<D>* operator() ( const std::string& parName );
|
2015-05-27 22:20:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
template <typename M>
|
|
|
|
dk::Tyler<M::dimensions> call_map_load ( M& parFileOpener, const std::string& parOpen );
|
|
|
|
|
|
|
|
template <typename M>
|
|
|
|
dk::Tyler<M::dimensions> call_map_load ( dk::Tyler<M::dimensions>& parTyler, M& parFileOpener, const std::string& parOpen );
|
|
|
|
|
|
|
|
template <typename T, uint32_t D, typename C>
|
|
|
|
dk::Tyler<D> map_load ( C& parFileOpener, const std::string& parOpen );
|
|
|
|
|
|
|
|
template <typename T, uint32_t D, typename C>
|
|
|
|
dk::Tyler<D>& map_load ( dk::Tyler<D>& parTyler, C& parFileOpener, const std::string& parOpen );
|
|
|
|
} //namespace dkh
|
|
|
|
|
|
|
|
#include "doorkeeper/implem/maploader.inl"
|
|
|
|
|
|
|
|
#endif
|