summaryrefslogtreecommitdiff
path: root/terrain.h
diff options
context:
space:
mode:
Diffstat (limited to 'terrain.h')
-rw-r--r--terrain.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/terrain.h b/terrain.h
index b50c5e5..736b719 100644
--- a/terrain.h
+++ b/terrain.h
@@ -60,10 +60,13 @@ class Terrain {
float *generate_heights(int x, int y, int width, int height);
float *get_chunk(int x, int y, int width, int height);
bool has_chunk(int x, int y);
+ void save_chunk(float *chunk, int x, int y, int width, int height);
+ float *load_chunk(int x, int y, int width, int height);
void raise(float x, float z, float radius, float focus, float strength, bool up = true);
void update(float x, float z);
+ Chunk *find_chunk(float x, float y);
Node *find(float x, float y);
};