1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-23 01:47:39 +00:00

ls:: landscape land structure

This commit is contained in:
Zeno Rogue
2024-03-21 20:15:45 +01:00
parent 6b723977dd
commit fdf83820f2
6 changed files with 40 additions and 5 deletions

View File

@@ -1132,6 +1132,7 @@ EX void setLandSphere(cell *c) {
vector<eLand> euland;
map<int, eLand> euland3;
map<int, eLand> euland3_hash;
EX map<tuple<int, int, int>, eLand> landscape_lands;
EX eLand& get_euland(int c) {
euland.resize(max_vec);
@@ -1144,6 +1145,8 @@ EX void clear_euland(eLand first) {
if(!nonisotropic) euland[0] = euland[1] = euland[max_vec-1] = first;
euland3.clear();
euland3[0] = first;
landscape_lands.clear();
landscape_lands[{0,0,0}] = first;
}
bool valid_wall_at(int c) {