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"
|
|
|
|
|
2019-08-13 23:58:42 +02:00
|
|
|
class Talent : public Aura {
|
|
|
|
GDCLASS(Talent, Aura);
|
2019-04-20 14:02:55 +02:00
|
|
|
|
|
|
|
public:
|
2019-08-13 23:58:42 +02:00
|
|
|
Ref<Talent> get_next_rank() const;
|
|
|
|
void set_next_rank(const Ref<Talent> rank);
|
2019-04-20 14:02:55 +02:00
|
|
|
|
2019-08-13 23:58:42 +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:
|
2019-08-13 23:58:42 +02:00
|
|
|
Ref<Talent> _next_rank;
|
2019-04-20 14:02:55 +02:00
|
|
|
|
2019-08-13 23:58:42 +02:00
|
|
|
Ref<Aura> _aura;
|
2019-04-20 14:02:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|