diff options
author | sapier <sapier at gmx dot net> | 2017-01-14 19:32:10 +0100 |
---|---|---|
committer | sapier <sapier at gmx dot net> | 2017-01-21 17:01:02 +0100 |
commit | c57b4ff9b592617539aa978374c13cdd5f1603a6 (patch) | |
tree | 26174f5add5e5f1a681323459ea27e14bf316f32 /src/content_sao.h | |
parent | 72535d33281ed4c863013590e5fd032c39f0b781 (diff) | |
download | minetest-c57b4ff9b592617539aa978374c13cdd5f1603a6.tar.gz minetest-c57b4ff9b592617539aa978374c13cdd5f1603a6.tar.bz2 minetest-c57b4ff9b592617539aa978374c13cdd5f1603a6.zip |
Add Entity get_texture_mod() to Lua API
Send texture modifier to clients connecting later too
Diffstat (limited to 'src/content_sao.h')
-rw-r--r-- | src/content_sao.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content_sao.h b/src/content_sao.h index 884f0f406..56a26fb0d 100644 --- a/src/content_sao.h +++ b/src/content_sao.h @@ -122,6 +122,7 @@ public: v3f getAcceleration(); void setTextureMod(const std::string &mod); + std::string getTextureMod() const; void setSprite(v2s16 p, int num_frames, float framelength, bool select_horiz_by_yawpitch); std::string getName(); @@ -143,6 +144,7 @@ private: v3f m_last_sent_velocity; float m_last_sent_position_timer; float m_last_sent_move_precision; + std::string m_current_texture_modifier; }; /* |