From fdcad8a72d6f66d62dcd5893f9ba7bf421043a61 Mon Sep 17 00:00:00 2001 From: faketruth Date: Sat, 2 Feb 2013 23:55:29 +0000 Subject: Added a GetClassStatic function to all entities, as well as cFurnaceEntity, cChestEntity and cWorld Using templates to generate ForEach* functions instead of MACROS Better error reporting in ForEach* functions git-svn-id: http://mc-server.googlecode.com/svn/trunk@1191 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ChestEntity.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/ChestEntity.h') diff --git a/source/ChestEntity.h b/source/ChestEntity.h index 78746cfdf..cef53f037 100644 --- a/source/ChestEntity.h +++ b/source/ChestEntity.h @@ -31,6 +31,8 @@ public: virtual ~cChestEntity(); virtual void Destroy(); + static const char * GetClassStatic() { return "cChestEntity"; } + const cItem * GetSlot(int a_Slot) const; // tolua_export void SetSlot(int a_Slot, const cItem & a_Item ); // tolua_export -- cgit v1.2.3