summaryrefslogtreecommitdiffstats
path: root/source/cWorld.h
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-14 20:14:23 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-14 20:14:23 +0100
commite7ea352f41b867dad83d170b7382b22a46f25c49 (patch)
treee37ed55018238c84445eb60302c825726ebaf4e9 /source/cWorld.h
parentMakefile cleanup - read COMPILING for details on *nix compilation (diff)
downloadcuberite-e7ea352f41b867dad83d170b7382b22a46f25c49.tar
cuberite-e7ea352f41b867dad83d170b7382b22a46f25c49.tar.gz
cuberite-e7ea352f41b867dad83d170b7382b22a46f25c49.tar.bz2
cuberite-e7ea352f41b867dad83d170b7382b22a46f25c49.tar.lz
cuberite-e7ea352f41b867dad83d170b7382b22a46f25c49.tar.xz
cuberite-e7ea352f41b867dad83d170b7382b22a46f25c49.tar.zst
cuberite-e7ea352f41b867dad83d170b7382b22a46f25c49.zip
Diffstat (limited to '')
-rw-r--r--source/cWorld.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/source/cWorld.h b/source/cWorld.h
index b895a8a9b..146724262 100644
--- a/source/cWorld.h
+++ b/source/cWorld.h
@@ -76,13 +76,10 @@ public:
void AddPlayer( cPlayer* a_Player );
void RemovePlayer( cPlayer* a_Player );
- bool ForEachPlayer(cPlayerListCallback * a_Callback); // Calls the callback for each player in the list
-
- // TODO: This interface is dangerous!
- cPlayerList & GetAllPlayers() {return m_Players; }
-
+
typedef struct lua_State lua_State;
- void GetAllPlayers( lua_State* L ); // >> EXPORTED IN MANUALBINDINGS <<
+ bool ForEachPlayer(cPlayerListCallback * a_Callback); // Calls the callback for each player in the list
+ // >> EXPORTED IN MANUALBINDINGS <<
unsigned int GetNumPlayers(); //tolua_export
// TODO: This interface is dangerous