feat: realtime editing
This commit is contained in:
parent
cd4f619a20
commit
fc6034242e
5 changed files with 146 additions and 12 deletions
|
|
@ -16,6 +16,8 @@ class Terrain : public Node {
|
|||
void child_entered(Node *node);
|
||||
void child_exiting(Node *node);
|
||||
|
||||
void on_terrain_changed();
|
||||
|
||||
protected:
|
||||
void _notification(int what);
|
||||
|
||||
|
|
@ -31,9 +33,12 @@ private:
|
|||
size_t detail{ 1 };
|
||||
|
||||
public:
|
||||
GET_SET_FNS(size_t, side_length);
|
||||
GET_SET_FNS(size_t, chunk_size);
|
||||
GET_SET_FNS(size_t, detail);
|
||||
void set_side_length(size_t length);
|
||||
size_t get_side_length() const;
|
||||
void set_chunk_size(size_t size);
|
||||
size_t get_chunk_size() const;
|
||||
void set_detail(size_t detail);
|
||||
size_t get_detail() const;
|
||||
|
||||
private:
|
||||
Vector<TerrainChunkMesh *> meshes;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue