mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-22 17:18:12 +01:00
Added skills.
This commit is contained in:
parent
d6f7c7aee2
commit
aadb56411a
1
SCsub
1
SCsub
@ -13,6 +13,7 @@ module_env.add_source_files(env.modules_sources,"item_enums.cpp")
|
||||
|
||||
module_env.add_source_files(env.modules_sources,"data/aura.cpp")
|
||||
module_env.add_source_files(env.modules_sources,"data/talent.cpp")
|
||||
module_env.add_source_files(env.modules_sources,"data/skill.cpp")
|
||||
module_env.add_source_files(env.modules_sources,"data/talent_rank_data.cpp")
|
||||
module_env.add_source_files(env.modules_sources,"data/data_manager.cpp")
|
||||
module_env.add_source_files(env.modules_sources,"data/xp_data.cpp")
|
||||
|
12
data/skill.cpp
Normal file
12
data/skill.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
#include "Skill.h"
|
||||
|
||||
Skill::Skill() {
|
||||
set_aura_type(SpellEnums::AURA_TYPE_SKILL);
|
||||
set_hide(true);
|
||||
}
|
||||
|
||||
Skill::~Skill() {
|
||||
}
|
||||
|
||||
void Skill::_bind_methods() {
|
||||
}
|
24
data/skill.h
Normal file
24
data/skill.h
Normal file
@ -0,0 +1,24 @@
|
||||
#ifndef TALENT_H
|
||||
#define TALENT_H
|
||||
|
||||
#include "core/resource.h"
|
||||
#include "core/ustring.h"
|
||||
|
||||
#include "aura.h"
|
||||
|
||||
class Skill : public Aura {
|
||||
GDCLASS(Skill, Aura);
|
||||
|
||||
public:
|
||||
|
||||
Skill();
|
||||
~Skill();
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
#endif
|
@ -7,6 +7,7 @@
|
||||
#include "data/aura_stat_attribute.h"
|
||||
#include "data/data_manager.h"
|
||||
#include "data/talent.h"
|
||||
#include "data/skill.h"
|
||||
#include "data/xp_data.h"
|
||||
#include "data/item_stat_modifier.h"
|
||||
#include "data/item_template_stat_modifier.h"
|
||||
@ -123,6 +124,7 @@ void register_entity_spell_system_types() {
|
||||
ClassDB::register_class<ItemInstance>();
|
||||
ClassDB::register_class<SpellCooldownManipulationData>();
|
||||
ClassDB::register_class<Talent>();
|
||||
ClassDB::register_class<Skill>();
|
||||
ClassDB::register_class<TalentRowData>();
|
||||
|
||||
ClassDB::register_class<CharacterSkeletonVisualEntry>();
|
||||
|
@ -4,4 +4,4 @@ const String SpellEnums::BINDING_STRING_SPELL_TYPES = "Melee,Holy,Shadow,Nature,
|
||||
const String SpellEnums::BINDING_STRING_DIMINISHING_RETURN_CATEGORIES = "None,Root,Stun";
|
||||
const String SpellEnums::BINDING_STRING_TRIGGER_EVENTS = "None,S On Before Damage,S On Damage Receive,S On Hit,S On Damage Dealt,S Aura Remove,S Aura Dispell,S On Before Aura Applied,S On After Aura Applied,C On Aura Added,C On Aura Removed,C On Aura Refreshed";
|
||||
const String SpellEnums::BINDING_STRING_DAMAGE_TYPES = "Melee,Holy,Shadow,Nature,Fire,Frost,Lightning,Chaos";
|
||||
const String SpellEnums::BINDING_STRING_AURA_TYPES = "None,Magic,Poison,Physical,Curse,Bleed,Talent";
|
||||
const String SpellEnums::BINDING_STRING_AURA_TYPES = "None,Magic,Poison,Physical,Curse,Bleed,Talent,Skill";
|
||||
|
@ -66,6 +66,7 @@ public:
|
||||
AURA_TYPE_CURSE = 4,
|
||||
AURA_TYPE_BLEED = 5,
|
||||
AURA_TYPE_TALENT = 6,
|
||||
AURA_TYPE_SKILL = 7,
|
||||
};
|
||||
|
||||
SpellEnums() {}
|
||||
@ -116,6 +117,7 @@ protected:
|
||||
BIND_ENUM_CONSTANT(AURA_TYPE_CURSE);
|
||||
BIND_ENUM_CONSTANT(AURA_TYPE_BLEED);
|
||||
BIND_ENUM_CONSTANT(AURA_TYPE_TALENT);
|
||||
BIND_ENUM_CONSTANT(AURA_TYPE_SKILL);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user