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"
|
|
|
|
|
2019-09-09 14:26:18 +02:00
|
|
|
#include "../../data/talent.h"
|
2019-04-20 14:02:55 +02:00
|
|
|
|
|
|
|
class Talent;
|
|
|
|
|
2019-08-13 23:58:42 +02:00
|
|
|
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);
|
|
|
|
|
2019-08-13 23:58:42 +02:00
|
|
|
TalentRowData();
|
|
|
|
~TalentRowData();
|
2019-04-20 14:02:55 +02:00
|
|
|
|
2019-08-13 23:58:42 +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
|