diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-03-17 07:48:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-17 07:48:29 +0100 |
commit | 0891975ad6c8d6d3e15b20f33b22cf5baca7eb62 (patch) | |
tree | 5e34935333741f6376b0a84fa00b3178c584d457 /src/environment.h | |
parent | b52f3005c315da9e55ffa7f1cbd71f2b18c7ba7f (diff) | |
download | minetest-0891975ad6c8d6d3e15b20f33b22cf5baca7eb62.tar.gz minetest-0891975ad6c8d6d3e15b20f33b22cf5baca7eb62.tar.bz2 minetest-0891975ad6c8d6d3e15b20f33b22cf5baca7eb62.zip |
[CSM] Add core.get_timeofday & core.get_day_count env calls (#5401)
* [CSM] Add core.get_timeofday & core.get_day_count env calls
* [CSM] Add core.get_node_level, core.get_node_max_level, core.find_node_near
Diffstat (limited to 'src/environment.h')
-rw-r--r-- | src/environment.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/environment.h b/src/environment.h index 5154bbdcb..52f369817 100644 --- a/src/environment.h +++ b/src/environment.h @@ -40,13 +40,14 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "threading/atomic.h" #include "network/networkprotocol.h" // for AccessDeniedCode +class IGameDef; class Map; class Environment { public: // Environment will delete the map passed to the constructor - Environment(); + Environment(IGameDef *gamedef); virtual ~Environment(); /* @@ -77,6 +78,7 @@ public: // counter used internally when triggering ABMs u32 m_added_objects; + IGameDef* getGameDef() { return m_gamedef; } protected: GenericAtomic<float> m_time_of_day_speed; @@ -114,6 +116,7 @@ protected: float m_cache_abm_interval; float m_cache_nodetimer_interval; + IGameDef *m_gamedef; private: Mutex m_time_lock; |