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

44 lines
783 B
C++

#ifndef CHARACTER_SPEC_H
#define CHARACTER_SPEC_H
#include "core/resource.h"
#include "core/ustring.h"
#include "talent_row_data.h"
class TalentRowData;
class Talent;
class CharacterSpec : public Resource {
GDCLASS(CharacterSpec, Resource);
public:
int get_spec_id();
void set_spec_id(int value);
String get_spec_name();
void set_spec_name(String value);
Ref<TalentRowData> get_talent_row(int index) const;
void set_talent_row(const int index, const Ref<TalentRowData> row);
Ref<Talent> get_talent(const int row_index, const int index) const;
CharacterSpec();
~CharacterSpec();
public:
enum {
MAX_TALENT_ROWS = 10,
};
protected:
static void _bind_methods();
private:
int _spec_id;
String _spec_name;
Ref<TalentRowData> _rows[MAX_TALENT_ROWS];
};
#endif