2026-07-24 18:01:59 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
|
#include "../datatypes.cpp"
|
|
|
|
|
#include "../helpers.cpp"
|
|
|
|
|
|
|
|
|
|
namespace UwU {
|
|
|
|
|
template <class MapperT>
|
|
|
|
|
class MapperBase {
|
|
|
|
|
public:
|
2026-07-24 19:06:14 -07:00
|
|
|
Coord2 map(uint16_t x0, uint16_t y0, uint16_t x, uint16_t y) {
|
|
|
|
|
return static_cast<MapperT*>(this)->map(x0, y0, x, y);
|
2026-07-24 18:01:59 -07:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|