2019-06-07 01:33:41 +02:00
|
|
|
#include "voxel_world.h"
|
|
|
|
|
|
|
|
NodePath VoxelWorld::get_player_path() {
|
|
|
|
return _player_path;
|
|
|
|
}
|
|
|
|
|
|
|
|
void VoxelWorld::set_player_path(NodePath player_path) {
|
|
|
|
_player_path = player_path;
|
|
|
|
}
|
|
|
|
|
2019-06-07 19:13:07 +02:00
|
|
|
VoxelWorld ::~VoxelWorld() {
|
|
|
|
_chunks.clear();
|
|
|
|
}
|
|
|
|
|
2019-06-07 01:33:41 +02:00
|
|
|
void VoxelWorld::_bind_methods() {
|
|
|
|
ClassDB::bind_method(D_METHOD("get_player_path"), &VoxelWorld::get_player_path);
|
|
|
|
ClassDB::bind_method(D_METHOD("set_player_path", "value"), &VoxelWorld::set_player_path);
|
|
|
|
ADD_PROPERTY(PropertyInfo(Variant::NODE_PATH, "player_path"), "set_player_path", "get_player_path");
|
|
|
|
}
|