#include "voxel_world.h" NodePath VoxelWorld::get_player_path() { return _player_path; } void VoxelWorld::set_player_path(NodePath player_path) { _player_path = player_path; } VoxelWorld ::~VoxelWorld() { _chunks.clear(); } 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"); }