16 lines
277 B
C++
16 lines
277 B
C++
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <stdint.h>
|
||
|
|
|
||
|
|
#include "../datatypes.cpp"
|
||
|
|
#include "../helpers.cpp"
|
||
|
|
|
||
|
|
namespace UwU {
|
||
|
|
template <class MapperT>
|
||
|
|
class MapperBase {
|
||
|
|
public:
|
||
|
|
Coord2 map(uint16_t x, uint16_t y) {
|
||
|
|
return static_cast<MapperT*>(this)->map(x, y);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|