King_DuckZ
fd8a1cbabc
This is needed to recognize what type of tiles a layer contains. Client code has to fill in a map of hash => add_layer<T>() pointers. As a layer is loaded, the correct add_layer<T>() is called based on the hash saved with the layer itself.
23 lines
526 B
C++
23 lines
526 B
C++
#ifndef id6327FA76CFB44F65A459C69096EC65D5
|
|
#define id6327FA76CFB44F65A459C69096EC65D5
|
|
|
|
#include "doorkeeper.hpp"
|
|
#include <cstdint>
|
|
|
|
namespace dk {
|
|
typedef Tyler<2>::coords coords2;
|
|
typedef Tyler<2> Tyler2d;
|
|
template <typename T> using Layer2d = Layer<T, 2>;
|
|
typedef Viewport<2> Viewport2d;
|
|
typedef BaseMapSource<2> BaseMapSource2d;
|
|
} //namespace dk
|
|
|
|
namespace dkh {
|
|
template <uint32_t D, typename C>
|
|
struct MapLoaderPool;
|
|
|
|
template <typename C>
|
|
using MapLoaderPool2d = MapLoaderPool<2, C>;
|
|
} //namespace dkh
|
|
|
|
#endif
|