From a0c7201fcd5f89ac96efe40e216a1f5911a3b7dd Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Sun, 25 Aug 2019 17:40:19 +0100 Subject: [PATCH] Rename `get_stats()` => `get_statistics()` --- meshers/dmc/voxel_mesher_dmc.cpp | 6 +++--- meshers/dmc/voxel_mesher_dmc.h | 2 +- streams/voxel_stream.cpp | 2 +- streams/voxel_stream.h | 2 +- terrain/voxel_data_loader.cpp | 2 +- terrain/voxel_lod_terrain.cpp | 4 ++-- terrain/voxel_lod_terrain.h | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/meshers/dmc/voxel_mesher_dmc.cpp b/meshers/dmc/voxel_mesher_dmc.cpp index 1133124c..2905f43f 100644 --- a/meshers/dmc/voxel_mesher_dmc.cpp +++ b/meshers/dmc/voxel_mesher_dmc.cpp @@ -1466,7 +1466,7 @@ void VoxelMesherDMC::build(VoxelMesher::Output &output, const VoxelBuffer &voxel // - Voxel data must be padded // - The non-padded area size is cubic and power of two - _stats = { }; + _stats = {}; if (voxels.is_uniform(VoxelBuffer::CHANNEL_ISOLEVEL)) { // That won't produce any polygon @@ -1601,7 +1601,7 @@ VoxelMesher *VoxelMesherDMC::clone() { return c; } -Dictionary VoxelMesherDMC::get_stats() const { +Dictionary VoxelMesherDMC::get_statistics() const { Dictionary d; d["octree_build_time"] = _stats.octree_build_time; d["dualgrid_derivation_time"] = _stats.dualgrid_derivation_time; @@ -1624,7 +1624,7 @@ void VoxelMesherDMC::_bind_methods() { ClassDB::bind_method(D_METHOD("set_seam_mode", "mode"), &VoxelMesherDMC::set_seam_mode); ClassDB::bind_method(D_METHOD("get_seam_mode"), &VoxelMesherDMC::get_seam_mode); - ClassDB::bind_method(D_METHOD("get_stats"), &VoxelMesherDMC::get_stats); + ClassDB::bind_method(D_METHOD("get_statistics"), &VoxelMesherDMC::get_statistics); BIND_ENUM_CONSTANT(MESH_NORMAL); BIND_ENUM_CONSTANT(MESH_WIREFRAME); diff --git a/meshers/dmc/voxel_mesher_dmc.h b/meshers/dmc/voxel_mesher_dmc.h index df77f29e..743c6c51 100644 --- a/meshers/dmc/voxel_mesher_dmc.h +++ b/meshers/dmc/voxel_mesher_dmc.h @@ -104,7 +104,7 @@ public: void build(VoxelMesher::Output &output, const VoxelBuffer &voxels, int padding) override; int get_minimum_padding() const override; - Dictionary get_stats() const; + Dictionary get_statistics() const; VoxelMesher *clone() override; diff --git a/streams/voxel_stream.cpp b/streams/voxel_stream.cpp index e323ab9c..278cce5e 100644 --- a/streams/voxel_stream.cpp +++ b/streams/voxel_stream.cpp @@ -82,7 +82,7 @@ void VoxelStream::_immerge_block(Ref buffer, Vector3 origin_in_voxe immerge_block(buffer, Vector3i(origin_in_voxels), lod); } -VoxelStream::Stats VoxelStream::get_stats() const { +VoxelStream::Stats VoxelStream::get_statistics() const { return _stats; } diff --git a/streams/voxel_stream.h b/streams/voxel_stream.h index 39fe6425..e8fa4c12 100644 --- a/streams/voxel_stream.h +++ b/streams/voxel_stream.h @@ -33,7 +33,7 @@ public: virtual bool is_thread_safe() const; virtual bool is_cloneable() const; - Stats get_stats() const; + Stats get_statistics() const; protected: static void _bind_methods(); diff --git a/terrain/voxel_data_loader.cpp b/terrain/voxel_data_loader.cpp index 935a78d3..5df085a6 100644 --- a/terrain/voxel_data_loader.cpp +++ b/terrain/voxel_data_loader.cpp @@ -90,7 +90,7 @@ void VoxelDataLoader::process_blocks_thread_func(const ArraySlice in stream->emerge_blocks(emerge_requests); stream->immerge_blocks(immerge_requests); - VoxelStream::Stats stream_stats = stream->get_stats(); + VoxelStream::Stats stream_stats = stream->get_statistics(); stats.file_openings = stream_stats.file_openings; stats.time_spent_opening_files = stream_stats.time_spent_opening_files; diff --git a/terrain/voxel_lod_terrain.cpp b/terrain/voxel_lod_terrain.cpp index 86dfab65..1b1ca487 100644 --- a/terrain/voxel_lod_terrain.cpp +++ b/terrain/voxel_lod_terrain.cpp @@ -918,7 +918,7 @@ void VoxelLodTerrain::_process() { _stats.time_process_lod = profiling_clock.restart(); } -Dictionary VoxelLodTerrain::get_stats() const { +Dictionary VoxelLodTerrain::get_statistics() const { Dictionary process; process["time_request_blocks_to_load"] = _stats.time_request_blocks_to_load; @@ -967,7 +967,7 @@ void VoxelLodTerrain::_bind_methods() { ClassDB::bind_method(D_METHOD("get_block_region_extent"), &VoxelLodTerrain::get_block_region_extent); ClassDB::bind_method(D_METHOD("get_block_info", "block_pos", "lod"), &VoxelLodTerrain::get_block_info); - ClassDB::bind_method(D_METHOD("get_stats"), &VoxelLodTerrain::get_stats); + ClassDB::bind_method(D_METHOD("get_statistics"), &VoxelLodTerrain::get_statistics); ClassDB::bind_method(D_METHOD("voxel_to_block_position", "lod_index"), &VoxelLodTerrain::voxel_to_block_position); ClassDB::bind_method(D_METHOD("_on_stream_params_changed"), &VoxelLodTerrain::_on_stream_params_changed); diff --git a/terrain/voxel_lod_terrain.h b/terrain/voxel_lod_terrain.h index d7e3bf4c..aeae6d53 100644 --- a/terrain/voxel_lod_terrain.h +++ b/terrain/voxel_lod_terrain.h @@ -68,7 +68,7 @@ public: int dropped_block_meshs = 0; }; - Dictionary get_stats() const; + Dictionary get_statistics() const; protected: static void _bind_methods();