From 3ef6ecb8d2cdb45a3fdcc58485316d4b75c41139 Mon Sep 17 00:00:00 2001 From: "cedeel@gmail.com" Date: Fri, 15 Jun 2012 15:55:53 +0000 Subject: Basic handling of vines. No growth yet. git-svn-id: http://mc-server.googlecode.com/svn/trunk@615 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cVine.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 source/cVine.h (limited to 'source/cVine.h') 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 -- cgit v1.2.3