mirror of
https://github.com/Relintai/voxelman.git
synced 2024-11-12 10:15:12 +01:00
Relintai
ba05f93aa2
-Huge cleanup. -Moved the voxel query to a new folder, also it's not in the build anymore. Will be removed shortly.
20 lines
543 B
C++
20 lines
543 B
C++
#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");
|
|
}
|