added basic mappers

This commit is contained in:
2026-07-24 18:01:59 -07:00
parent c7cdfd402e
commit a89ef52247
10 changed files with 127 additions and 20 deletions
+16
View File
@@ -0,0 +1,16 @@
#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);
}
};
}