mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-22 17:18:12 +01:00
27 lines
384 B
C++
27 lines
384 B
C++
#ifndef LOOT_DATA_BASE_H
|
|
#define LOOT_DATA_BASE_H
|
|
|
|
#include "core/array.h"
|
|
|
|
#include "../data/item_template.h"
|
|
|
|
class LootDataBase : public Resource {
|
|
GDCLASS(LootDataBase, Resource);
|
|
|
|
public:
|
|
float get_chance() const;
|
|
void set_chance(const float value);
|
|
|
|
void get_loot(Array into);
|
|
|
|
LootDataBase();
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
|
|
private:
|
|
float _chance;
|
|
};
|
|
|
|
#endif
|