Add terrain painting functions

This commit is contained in:
Jan Mrna
2025-09-28 20:42:07 +02:00
parent c42a6b647e
commit b6d24da982
7 changed files with 118 additions and 38 deletions

View File

@@ -3,10 +3,19 @@
#include <cstdint>
#include <map>
#include <string_view>
#include <array>
#include <unordered_map>
struct Tile {
float cost;
uint8_t R, G, B, A;
};
extern const std::map<std::string_view, Tile> tile_types;
enum class TileType {
GRASS,
MUD,
ROAD,
WATER,
};
extern const std::unordered_map<TileType, Tile> tile_types;