mirror of
https://github.com/Relintai/terraman.git
synced 2025-04-21 21:41:20 +02:00
Removed a few more unused properties.
This commit is contained in:
parent
94d18a7c48
commit
07788b6e8d
@ -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");
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user