mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add GenericCAO and player armor groups, but don't use them yet
This commit is contained in:
parent
a9ddbb4beb
commit
443f45eca1
7 changed files with 532 additions and 25 deletions
|
@ -24,6 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "activeobject.h"
|
||||
#include "utility.h"
|
||||
#include "inventorymanager.h"
|
||||
#include "itemgroup.h"
|
||||
|
||||
/*
|
||||
|
||||
|
@ -56,6 +57,9 @@ public:
|
|||
ServerActiveObject(ServerEnvironment *env, v3f pos);
|
||||
virtual ~ServerActiveObject();
|
||||
|
||||
virtual u8 getSendType() const
|
||||
{ return getType(); }
|
||||
|
||||
// Called after id has been set and has been inserted in environment
|
||||
virtual void addedToEnvironment(){};
|
||||
// Called before removing from environment
|
||||
|
@ -146,6 +150,9 @@ public:
|
|||
virtual s16 getHP() const
|
||||
{ return 0; }
|
||||
|
||||
virtual void setArmorGroups(const ItemGroupList &armor_groups)
|
||||
{}
|
||||
|
||||
// Inventory and wielded item
|
||||
virtual Inventory* getInventory()
|
||||
{ return NULL; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue