2022-03-17 22:33:22 +01:00
|
|
|
#ifndef INVENTORY_H
|
|
|
|
#define INVENTORY_H
|
2023-12-17 22:59:50 +01:00
|
|
|
|
2022-03-15 13:29:32 +01:00
|
|
|
|
2022-08-17 13:45:14 +02:00
|
|
|
#include "core/object/resource.h"
|
2022-08-17 12:53:49 +02:00
|
|
|
#include "core/containers/vector.h"
|
2022-03-15 13:29:32 +01:00
|
|
|
|
|
|
|
#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
|