- // This usually is the CONTENT_ value
- virtual u16 typeId() const = 0;
- virtual NodeMetadata* clone() = 0;
- virtual void serializeBody(std::ostream &os) = 0;
- virtual std::string infoText() {return "<todo: remove this text>";}
- virtual Inventory* getInventory() {return NULL;}
-
-protected:
- static void registerType(u16 id, Factory f);
-private:
- static core::map<u16, Factory> m_types;
-};
-
-class SignNodeMetadata : public NodeMetadata
-{
-public:
- SignNodeMetadata(std::string text);
- //~SignNodeMetadata();