entity_spell_system/data/talent_row_data.h

34 lines
510 B
C
Raw Normal View History

2019-04-20 14:02:55 +02:00
#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);
2019-04-20 14:02:55 +02:00
public:
Ref<Talent> get_talent(int index) const;
void set_talent(int index, Ref<Talent> talent);
TalentRowData();
~TalentRowData();
2019-04-20 14:02:55 +02:00
public:
enum {
MAX_TALENTS_IN_ROW = 5,
};
2019-04-20 14:02:55 +02:00
protected:
static void _bind_methods();
private:
Ref<Talent> _talents[MAX_TALENTS_IN_ROW];
};
#endif