mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-22 17:18:12 +01:00
-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.)
32 lines
501 B
C++
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
|