summaryrefslogtreecommitdiff
path: root/src/minimap.h
diff options
context:
space:
mode:
authorbigfoot547 <bigfoot547@users.noreply.github.com>2017-04-14 02:04:41 -0500
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-04-14 09:04:41 +0200
commite80a83d1cb9d01273ddca1c075c25cd01c291ca7 (patch)
tree277bc42c60466ca4e35fd29072c3eae5e6511391 /src/minimap.h
parent6f641df8a52ccb84452a289416527e3d1a36621a (diff)
downloadminetest-e80a83d1cb9d01273ddca1c075c25cd01c291ca7.tar.gz
minetest-e80a83d1cb9d01273ddca1c075c25cd01c291ca7.tar.bz2
minetest-e80a83d1cb9d01273ddca1c075c25cd01c291ca7.zip
[CSM] Add function to set minimap shape (#5569)
* [CSM] Add function to set minimap shape Also deprecates `toggle_shape`. * Oh fish, I messed that one up! * Fix Style * Sorry, I missed something I still had the `luamethod` call in there! * Add getters * Remove extra line * Remove useless variable Please review again @nerzhul . Thanks! * Satisfy nerzhul
Diffstat (limited to 'src/minimap.h')
-rw-r--r--src/minimap.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/minimap.h b/src/minimap.h
index eb0ae1cf4..c50530335 100644
--- a/src/minimap.h
+++ b/src/minimap.h
@@ -45,6 +45,11 @@ enum MinimapMode {
MINIMAP_MODE_COUNT,
};
+enum MinimapShape {
+ MINIMAP_SHAPE_SQUARE,
+ MINIMAP_SHAPE_ROUND,
+};
+
struct MinimapModeDef {
bool is_radar;
u16 scan_height;
@@ -128,6 +133,8 @@ public:
void setMinimapMode(MinimapMode mode);
MinimapMode getMinimapMode() const { return data->mode; }
void toggleMinimapShape();
+ void setMinimapShape(MinimapShape shape);
+ MinimapShape getMinimapShape();
video::ITexture *getMinimapTexture();