diff options
author | nielsbreu@gmail.com <nielsbreu@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-09 19:38:10 +0200 |
---|---|---|
committer | nielsbreu@gmail.com <nielsbreu@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-09 19:38:10 +0200 |
commit | 6835f21b8b69c2c43b9a5b96b70f923a1fd9aa07 (patch) | |
tree | 2d2bcdfbc2e2cd5f9eab98a140e73d6fa5c289d8 /source/World.h | |
parent | Fixed 2 more tabs... (diff) | |
download | cuberite-6835f21b8b69c2c43b9a5b96b70f923a1fd9aa07.tar cuberite-6835f21b8b69c2c43b9a5b96b70f923a1fd9aa07.tar.gz cuberite-6835f21b8b69c2c43b9a5b96b70f923a1fd9aa07.tar.bz2 cuberite-6835f21b8b69c2c43b9a5b96b70f923a1fd9aa07.tar.lz cuberite-6835f21b8b69c2c43b9a5b96b70f923a1fd9aa07.tar.xz cuberite-6835f21b8b69c2c43b9a5b96b70f923a1fd9aa07.tar.zst cuberite-6835f21b8b69c2c43b9a5b96b70f923a1fd9aa07.zip |
Diffstat (limited to 'source/World.h')
-rw-r--r-- | source/World.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/World.h b/source/World.h index 1ec4aacb8..c4d970473 100644 --- a/source/World.h +++ b/source/World.h @@ -78,9 +78,15 @@ public: return 0; } + int GetTicksUntilWeatherChange(void) const { return m_WeatherInterval; } Int64 GetWorldAge(void) const { return m_WorldAge; } Int64 GetTimeOfDay(void) const { return m_TimeOfDay; } + void SetTicksUntilWeatherChange(int a_WeatherInterval) + { + m_WeatherInterval = a_WeatherInterval; + } + void SetTimeOfDay(Int64 a_TimeOfDay) { m_TimeOfDay = a_TimeOfDay; @@ -188,8 +194,8 @@ public: unsigned int GetMaxPlayers(void) const {return m_MaxPlayers; } // tolua_export void SetMaxPlayers(int iMax); // tolua_export - void AddPlayer( cPlayer* a_Player ); - void RemovePlayer( cPlayer* a_Player ); + void AddPlayer( cPlayer* a_Player ); // tolua_export + void RemovePlayer( cPlayer* a_Player ); // tolua_export /// Calls the callback for each player in the list; returns true if all players processed, false if the callback aborted by returning true bool ForEachPlayer(cPlayerListCallback & a_Callback); // >> EXPORTED IN MANUALBINDINGS << |