entity_spell_system/data/talent.h

32 lines
501 B
C
Raw Normal View History

2019-04-20 14:02:55 +02:00
#ifndef TALENT_H
#define TALENT_H
#include "core/resource.h"
#include "core/ustring.h"
#include "aura.h"
class Talent : public Aura {
GDCLASS(Talent, Aura);
2019-04-20 14:02:55 +02:00
public:
Ref<Talent> get_next_rank() const;
void set_next_rank(const Ref<Talent> rank);
2019-04-20 14:02:55 +02:00
Ref<Aura> get_apply_aura() const { return _aura; }
void set_apply_aura(Ref<Aura> aura) { _aura = Ref<Aura>(aura); }
2019-04-20 14:02:55 +02:00
Talent();
~Talent();
protected:
static void _bind_methods();
private:
Ref<Talent> _next_rank;
2019-04-20 14:02:55 +02:00
Ref<Aura> _aura;
2019-04-20 14:02:55 +02:00
};
#endif