entity_spell_system/data/talent.h
Relintai 3cce6b0ae8 -Talent is now inherited from Aura.
-Cleaned up the talent system specific classes.
-The ResourceManager now loads talents aswell.
-Cleaned up, and made the EntityResource system scriptable.
-Fixed the stat signals, the stat parameter was null every time. ("this" should've been wrapped in a Ref.)
2019-08-13 23:58:42 +02:00

32 lines
501 B
C++

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