Quick move into textures.cpp so I can work on the final form of wall to door mapping.

This commit is contained in:
Zed A. Shaw 2026-03-17 12:40:31 -04:00
parent f57d202f5c
commit 6d7a944a7d
3 changed files with 10 additions and 11 deletions

View file

@ -201,4 +201,11 @@ namespace textures {
return TMGR.map_sprites.at(display);
}
size_t door_for_wall(size_t wall_id) {
size_t moss_wall_id = textures::get_id("wall_moss");
size_t plain_door_id = textures::get_id("door_plain");
size_t moss_door_id = textures::get_id("door_moss_wall");
return wall_id == moss_wall_id ? moss_door_id : plain_door_id;
}
};

View file

@ -51,4 +51,6 @@ namespace textures {
sf::Sprite& get_map_sprite(wchar_t display);
size_t get_id(const std::string& name);
size_t door_for_wall(size_t wall_id);
}