1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

ObjectRef:set_armor_groups() and ObjectRef:set_properties() - works on players too!

This commit is contained in:
Perttu Ahola 2012-03-30 13:26:40 +03:00
parent 9e7ccedba4
commit 3241ad3ae8
6 changed files with 154 additions and 64 deletions

View file

@ -46,6 +46,7 @@ class ServerEnvironment;
struct ItemStack;
class Player;
struct ToolCapabilities;
struct ObjectProperties;
class ServerActiveObject : public ActiveObject
{
@ -152,6 +153,10 @@ public:
virtual void setArmorGroups(const ItemGroupList &armor_groups)
{}
virtual ObjectProperties* accessObjectProperties()
{ return NULL; }
virtual void notifyObjectPropertiesModified()
{}
// Inventory and wielded item
virtual Inventory* getInventory()