1
0
Fork 0
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:
SFENCE 2025-02-06 20:44:27 +01:00
parent aba2b6638e
commit 1df282c635
19 changed files with 246 additions and 14 deletions

View file

@ -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