summaryrefslogtreecommitdiff
path: root/terrain_loader.h
diff options
context:
space:
mode:
Diffstat (limited to 'terrain_loader.h')
-rw-r--r--terrain_loader.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/terrain_loader.h b/terrain_loader.h
index f99fb09..a30ddec 100644
--- a/terrain_loader.h
+++ b/terrain_loader.h
@@ -1,9 +1,13 @@
#ifndef TERRAIN_LOADER_H
#define TERRAIN_LOADER_H
+#include "vector.h"
+
#include <boost/filesystem.hpp>
#include <boost/shared_ptr.hpp>
+#include <list>
+
namespace fs = boost::filesystem;
class TerrainLoader {
@@ -16,12 +20,16 @@ class TerrainLoader {
TerrainLoader(fs::path root);
virtual ~TerrainLoader();
- float *generate_heights(int64_t x, int64_t y, unsigned int width, unsigned int height);
virtual float *get_chunk(int64_t x, int64_t y, unsigned int width, unsigned int height);
bool has_chunk(int64_t x, int64_t y);
void save_chunk(float *chunk, int64_t x, int64_t y, unsigned int width, unsigned int height);
float *load_chunk(int64_t x, int64_t y, unsigned int width, unsigned int height);
+ // FIXME: Support other object types.
+ virtual std::list<Vector3> get_objects(int64_t x, int64_t y);
+ bool has_objects(int64_t x, int64_t y);
+ void save_objects(std::list<Vector3>& objects, int64_t x, int64_t y);
+ std::list<Vector3> load_objects(int64_t x, int64_t y);
};
#endif