entity_spell_system/data/talent_row_data.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

34 lines
510 B
C++

#ifndef TALENT_ROW_DATA_H
#define TALENT_ROW_DATA_H
#include "core/reference.h"
#include "core/ustring.h"
#include "talent.h"
class Talent;
class TalentRowData : public Resource {
GDCLASS(TalentRowData, Resource);
public:
Ref<Talent> get_talent(int index) const;
void set_talent(int index, Ref<Talent> talent);
TalentRowData();
~TalentRowData();
public:
enum {
MAX_TALENTS_IN_ROW = 5,
};
protected:
static void _bind_methods();
private:
Ref<Talent> _talents[MAX_TALENTS_IN_ROW];
};
#endif