summaryrefslogtreecommitdiffstats
path: root/source/cWorld.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/cWorld.h')
-rw-r--r--source/cWorld.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/cWorld.h b/source/cWorld.h
index c47fa70e8..025d0782a 100644
--- a/source/cWorld.h
+++ b/source/cWorld.h
@@ -34,6 +34,7 @@ class cWorldGenerator; // The generator that actually generates the chunks for
class cChunkGenerator; // The thread responsible for generating chunks
typedef std::list< cPlayer * > cPlayerList;
typedef cItemCallback<cPlayer> cPlayerListCallback;
+typedef cItemCallback<cEntity> cEntityCallback;
@@ -102,12 +103,9 @@ public:
void AddEntity( cEntity* a_Entity );
void RemoveEntityFromChunk( cEntity * a_Entity);
-
- // TODO: This interface is dangerous!
- cEntityList & GetEntities(void) {return m_AllEntities; }
- // TODO: This interface is dangerous!
- cEntity * GetEntity( int a_UniqueID ); //tolua_export
+ // TODO: Export to Lua
+ bool DoWithEntity( int a_UniqueID, cEntityCallback & a_Callback );
void SetBlock( int a_X, int a_Y, int a_Z, char a_BlockType, char a_BlockMeta ); //tolua_export
void FastSetBlock( int a_X, int a_Y, int a_Z, char a_BlockType, char a_BlockMeta ); //tolua_export