diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-09-26 11:57:28 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-09-26 11:57:28 +0300 |
commit | 0ccc0ac927bdbfcc97c1b5c9d5dc64754946f817 (patch) | |
tree | 0db7c756fbcfd18497dee04578d7cb037b2bd7fa /src/content_nodemeta.h | |
parent | 63eca0feb2a08aa15f8be1164c4815a44246a2e6 (diff) | |
parent | 8b875d71d1ab928e9866914b886ff58cf8a38192 (diff) | |
download | minetest-0ccc0ac927bdbfcc97c1b5c9d5dc64754946f817.tar.gz minetest-0ccc0ac927bdbfcc97c1b5c9d5dc64754946f817.tar.bz2 minetest-0ccc0ac927bdbfcc97c1b5c9d5dc64754946f817.zip |
Merge remote-tracking branch 'darkrose/master'
Diffstat (limited to 'src/content_nodemeta.h')
-rw-r--r-- | src/content_nodemeta.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/content_nodemeta.h b/src/content_nodemeta.h index 50decd910..e20334312 100644 --- a/src/content_nodemeta.h +++ b/src/content_nodemeta.h @@ -62,6 +62,29 @@ private: Inventory *m_inventory; }; +class LockingChestNodeMetadata : public NodeMetadata +{ +public: + LockingChestNodeMetadata(); + ~LockingChestNodeMetadata(); + + virtual u16 typeId() const; + static NodeMetadata* create(std::istream &is); + virtual NodeMetadata* clone(); + virtual void serializeBody(std::ostream &os); + virtual std::string infoText(); + virtual Inventory* getInventory() {return m_inventory;} + virtual bool nodeRemovalDisabled(); + virtual std::string getInventoryDrawSpecString(); + + virtual std::string getOwner(){ return m_text; } + virtual void setOwner(std::string t){ m_text = t; } + +private: + Inventory *m_inventory; + std::string m_text; +}; + class FurnaceNodeMetadata : public NodeMetadata { public: |