]> git.lizzy.rs Git - minetest.git/blobdiff - src/util/directiontables.h
Allow rotating entity selectionboxes (#12379)
[minetest.git] / src / util / directiontables.h
index 3cfe0fb3eb5396747b1d9965d23a60acc0da57c9..ef00e3bfeeac30e3c000f9dd852d9732a0fecba2 100644 (file)
@@ -17,19 +17,22 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef UTIL_DIRECTIONTABLES_HEADER
-#define UTIL_DIRECTIONTABLES_HEADER
+#pragma once
 
-#include "../irrlichttypes.h"
-#include "../irr_v3d.h"
+#include "irrlichttypes.h"
+#include "irr_v3d.h"
 
 extern const v3s16 g_6dirs[6];
 
+extern const v3s16 g_7dirs[7];
+
 extern const v3s16 g_26dirs[26];
 
 // 26th is (0,0,0)
 extern const v3s16 g_27dirs[27];
 
+extern const u8 wallmounted_to_facedir[6];
+
 /// Direction in the 6D format. g_27dirs contains corresponding vectors.
 /// Here P means Positive, N stands for Negative.
 enum Direction6D {
@@ -84,5 +87,3 @@ enum DirectionWallmounted {
        DWM_ZP,
        DWM_ZN,
 };
-
-#endif