summaryrefslogtreecommitdiffstats
path: root/source/cVine.h
diff options
context:
space:
mode:
authorcedeel@gmail.com <cedeel@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-15 17:55:53 +0200
committercedeel@gmail.com <cedeel@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-15 17:55:53 +0200
commit3ef6ecb8d2cdb45a3fdcc58485316d4b75c41139 (patch)
treec6962c4e263c162da502ed5b03b3b18ca8153f9c /source/cVine.h
parentFixed placing block on tall grass (FS #209) (diff)
downloadcuberite-3ef6ecb8d2cdb45a3fdcc58485316d4b75c41139.tar
cuberite-3ef6ecb8d2cdb45a3fdcc58485316d4b75c41139.tar.gz
cuberite-3ef6ecb8d2cdb45a3fdcc58485316d4b75c41139.tar.bz2
cuberite-3ef6ecb8d2cdb45a3fdcc58485316d4b75c41139.tar.lz
cuberite-3ef6ecb8d2cdb45a3fdcc58485316d4b75c41139.tar.xz
cuberite-3ef6ecb8d2cdb45a3fdcc58485316d4b75c41139.tar.zst
cuberite-3ef6ecb8d2cdb45a3fdcc58485316d4b75c41139.zip
Diffstat (limited to 'source/cVine.h')
-rw-r--r--source/cVine.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/source/cVine.h b/source/cVine.h
new file mode 100644
index 000000000..6d2a92d15
--- /dev/null
+++ b/source/cVine.h
@@ -0,0 +1,24 @@
+#pragma once
+
+class cVine //tolua_export
+{ //tolua_export
+public:
+
+ static char DirectionToMetaData( char a_Direction )
+ {
+ switch (a_Direction)
+ {
+ case 0x2:
+ return 0x1;
+ case 0x3:
+ return 0x4;
+ case 0x4:
+ return 0x8;
+ case 0x5:
+ return 0x2;
+ default:
+ return 0xf;
+ };
+ return 0xf;
+ } //tolua_export
+}; //tolua_export \ No newline at end of file