mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-23 09:28:07 +01:00
37 lines
596 B
C++
37 lines
596 B
C++
#ifndef INVENTORY_H
|
|
#define INVENTORY_H
|
|
|
|
|
|
#include "core/object/resource.h"
|
|
#include "core/containers/vector.h"
|
|
|
|
#include "../item_enums.h"
|
|
|
|
class Player;
|
|
class itemTemplate;
|
|
class ItemInstance;
|
|
|
|
class Inventory : public Reference {
|
|
GDCLASS(Inventory, Reference);
|
|
|
|
public:
|
|
int get_allowed_item_types() const;
|
|
void set_allowed_item_types(const int value);
|
|
|
|
Player *target_get() const;
|
|
void target_set(Player *caster);
|
|
void target_set_bind(Node *caster);
|
|
|
|
Inventory();
|
|
~Inventory();
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
|
|
private:
|
|
Player *_target;
|
|
int _allowed_item_types;
|
|
};
|
|
|
|
#endif
|