diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-16 18:20:28 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-16 18:20:28 +0100 |
commit | 008addf5d746b2d158f9116e4f6302861b42852f (patch) | |
tree | d569fe2253917ca3dc979c1b5b51d534aa4a538e /source/cWorld.h | |
parent | Chunks are now marked as saved (diff) | |
download | cuberite-008addf5d746b2d158f9116e4f6302861b42852f.tar cuberite-008addf5d746b2d158f9116e4f6302861b42852f.tar.gz cuberite-008addf5d746b2d158f9116e4f6302861b42852f.tar.bz2 cuberite-008addf5d746b2d158f9116e4f6302861b42852f.tar.lz cuberite-008addf5d746b2d158f9116e4f6302861b42852f.tar.xz cuberite-008addf5d746b2d158f9116e4f6302861b42852f.tar.zst cuberite-008addf5d746b2d158f9116e4f6302861b42852f.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cWorld.h | 8 |
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
|