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.)
34 lines
510 B
C++
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
|