Removed a few more unused properties.

This commit is contained in:
Relintai 2021-04-17 19:29:59 +02:00
parent 94d18a7c48
commit 07788b6e8d
4 changed files with 0 additions and 22 deletions

View File

@ -35,13 +35,6 @@ SOFTWARE.
#include "../../thread_pool/thread_pool.h"
#endif
_FORCE_INLINE_ bool TerraChunk::get_is_build_threaded() const {
return _is_build_threaded;
}
_FORCE_INLINE_ void TerraChunk::set_is_build_threaded(const bool value) {
_is_build_threaded = value;
}
_FORCE_INLINE_ bool TerraChunk::get_process() const {
return _is_processing;
}
@ -985,7 +978,6 @@ Vector3 TerraChunk::to_global(Vector3 p_local) const {
}
TerraChunk::TerraChunk() {
_is_build_threaded = false;
_is_processing = false;
_is_phisics_processing = false;
_is_in_tree = false;
@ -1228,10 +1220,6 @@ void TerraChunk::_bind_methods() {
ClassDB::bind_method(D_METHOD("is_in_tree"), &TerraChunk::is_in_tree);
ClassDB::bind_method(D_METHOD("get_is_build_threaded"), &TerraChunk::get_is_build_threaded);
ClassDB::bind_method(D_METHOD("set_is_build_threaded", "value"), &TerraChunk::set_is_build_threaded);
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "is_build_threaded", PROPERTY_HINT_NONE, "", 0), "set_is_build_threaded", "get_is_build_threaded");
ClassDB::bind_method(D_METHOD("get_transform"), &TerraChunk::get_transform);
ClassDB::bind_method(D_METHOD("set_transform", "value"), &TerraChunk::set_transform);
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM, "transform"), "set_transform", "get_transform");

View File

@ -83,9 +83,6 @@ public:
};
public:
bool get_is_build_threaded() const;
void set_is_build_threaded(const bool value);
bool get_process() const;
void set_process(const bool value);
@ -334,8 +331,6 @@ protected:
*/
static void _bind_methods();
bool _is_build_threaded;
bool _is_processing;
bool _is_phisics_processing;

View File

@ -357,10 +357,6 @@ Ref<TerraChunk> TerraWorld::_create_chunk(const int x, const int z, Ref<TerraChu
chunk->set_voxel_world(this);
//TODO this will need to be changed
if (chunk->has_method("set_is_build_threaded"))
chunk->call("set_is_build_threaded", _use_threads);
chunk->set_position(x, z);
chunk->set_world_height(_world_height);
chunk->set_library(_library);

View File

@ -251,7 +251,6 @@ private:
NodePath _player_path;
Spatial *_player;
bool _use_threads;
int _max_concurrent_generations;
Vector<Ref<TerraChunk> > _generation_queue;
Vector<Ref<TerraChunk> > _generating;