summaryrefslogtreecommitdiff
path: root/src/content_nodemeta.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-13 12:48:05 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:41 +0200
commit64fa59e24f7b3e046b7dfeba930e44c86e32668e (patch)
tree1509c79dde0ddd007df19d9647a2c5c9e968386d /src/content_nodemeta.h
parent79c9f14aec52c0fa1b3c2b1850ab3c6a9124a313 (diff)
downloadminetest-64fa59e24f7b3e046b7dfeba930e44c86e32668e.tar.gz
minetest-64fa59e24f7b3e046b7dfeba930e44c86e32668e.tar.bz2
minetest-64fa59e24f7b3e046b7dfeba930e44c86e32668e.zip
Generic NodeMetadata text input
Diffstat (limited to 'src/content_nodemeta.h')
-rw-r--r--src/content_nodemeta.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/content_nodemeta.h b/src/content_nodemeta.h
index e20334312..da5639e72 100644
--- a/src/content_nodemeta.h
+++ b/src/content_nodemeta.h
@@ -36,8 +36,9 @@ public:
virtual void serializeBody(std::ostream &os);
virtual std::string infoText();
- std::string getText(){ return m_text; }
- void setText(std::string t){ m_text = t; }
+ virtual bool allowsTextInput(){ return true; }
+ virtual std::string getText(){ return m_text; }
+ virtual void setText(const std::string &t){ m_text = t; }
private:
std::string m_text;