summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/RegionCache.h
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2024-11-02 22:27:47 +0100
committerAlexander Harkness <me@bearbin.net>2024-11-02 22:27:47 +0100
commitcb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a (patch)
treef647b20e1823f1846af88e832cf82a4a02e96e69 /Tools/QtBiomeVisualiser/RegionCache.h
parentImprove clang-format config file, remove automatically enforced code style from contrib guide. (diff)
downloadcuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.gz
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.bz2
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.lz
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.xz
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.zst
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.zip
Diffstat (limited to 'Tools/QtBiomeVisualiser/RegionCache.h')
-rw-r--r--Tools/QtBiomeVisualiser/RegionCache.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/Tools/QtBiomeVisualiser/RegionCache.h b/Tools/QtBiomeVisualiser/RegionCache.h
index c343e4ba9..fb76b93f0 100644
--- a/Tools/QtBiomeVisualiser/RegionCache.h
+++ b/Tools/QtBiomeVisualiser/RegionCache.h
@@ -20,13 +20,12 @@ class ChunkSource;
/** Caches regions' chunk data for reuse */
-class RegionCache :
- public QObject
+class RegionCache : public QObject
{
typedef QObject super;
Q_OBJECT
-public:
+ public:
explicit RegionCache(QObject * parent = NULL);
/** Retrieves the specified region from the cache.
@@ -43,13 +42,13 @@ public:
/** Reloads the current chunk source. */
void reload();
-signals:
+ signals:
void regionAvailable(int a_RegionX, int a_RegionZ);
-protected slots:
+ protected slots:
void gotRegion(int a_RegionX, int a_RegionZ);
-protected:
+ protected:
/** The cache of the chunks */
QCache<quint32, RegionPtr> m_Cache;
@@ -66,8 +65,3 @@ protected:
/** Queues the specified region for rendering by m_RegionSource. */
void queueRegionRender(int a_RegionX, int a_RegionZ, RegionPtr & a_Region);
};
-
-
-
-
-