mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Add GUIDs and unit tests.
This commit is contained in:
parent
aba2b6638e
commit
1df282c635
19 changed files with 246 additions and 14 deletions
|
@ -141,6 +141,10 @@ public:
|
|||
virtual u16 getHP() const
|
||||
{ return 0; }
|
||||
|
||||
/// Always returns the same unique string for the same object.
|
||||
/// Because these strings are very short, copying them is not expensive.
|
||||
virtual std::string getGUID() = 0;
|
||||
|
||||
virtual void setArmorGroups(const ItemGroupList &armor_groups)
|
||||
{}
|
||||
virtual const ItemGroupList &getArmorGroups() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue