mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 18:05:22 +02:00
organizing stuff.
This commit is contained in:
@@ -46,8 +46,10 @@ public:
|
||||
virtual void serialize(std::ostream &os) = 0;
|
||||
// Shall make an exact clone of the item
|
||||
virtual InventoryItem* clone() = 0;
|
||||
#ifndef SERVER
|
||||
// Shall return an image to show in the GUI (or NULL)
|
||||
virtual video::ITexture * getImage() { return NULL; }
|
||||
#endif
|
||||
// Shall return a text to show in the GUI
|
||||
virtual std::string getText() { return ""; }
|
||||
|
||||
@@ -175,7 +177,9 @@ public:
|
||||
return new MapBlockObjectItem(m_inventorystring);
|
||||
}
|
||||
|
||||
#ifndef SERVER
|
||||
video::ITexture * getImage();
|
||||
#endif
|
||||
std::string getText();
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user