mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-05-13 22:52:10 +02:00
Added name to a few resources.
This commit is contained in:
parent
2053b9ee76
commit
1334cf5b75
@ -49,6 +49,13 @@ void Aura::set_aura_type(SpellEnums::AuraType value) {
|
|||||||
_aura_type = value;
|
_aura_type = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int Aura::get_rank() {
|
||||||
|
return _rank;
|
||||||
|
}
|
||||||
|
void Aura::set_rank(int value) {
|
||||||
|
_rank = value;
|
||||||
|
}
|
||||||
|
|
||||||
String Aura::get_aura_name() {
|
String Aura::get_aura_name() {
|
||||||
return _aura_name;
|
return _aura_name;
|
||||||
}
|
}
|
||||||
@ -264,6 +271,7 @@ Aura::Aura() {
|
|||||||
_is_debuff = false;
|
_is_debuff = false;
|
||||||
aura_group = 0;
|
aura_group = 0;
|
||||||
_hide = false;
|
_hide = false;
|
||||||
|
_rank = 0;
|
||||||
|
|
||||||
_damage_enabled = false;
|
_damage_enabled = false;
|
||||||
_damage_type = 0;
|
_damage_type = 0;
|
||||||
@ -1368,6 +1376,10 @@ void Aura::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("set_is_debuff", "value"), &Aura::set_is_debuff);
|
ClassDB::bind_method(D_METHOD("set_is_debuff", "value"), &Aura::set_is_debuff);
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "debuff"), "set_is_debuff", "get_is_debuff");
|
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "debuff"), "set_is_debuff", "get_is_debuff");
|
||||||
|
|
||||||
|
ClassDB::bind_method(D_METHOD("get_rank"), &Aura::get_rank);
|
||||||
|
ClassDB::bind_method(D_METHOD("set_rank", "value"), &Aura::set_rank);
|
||||||
|
ADD_PROPERTY(PropertyInfo(Variant::INT, "rank"), "set_rank", "get_rank");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("get_aura_type"), &Aura::get_aura_type);
|
ClassDB::bind_method(D_METHOD("get_aura_type"), &Aura::get_aura_type);
|
||||||
ClassDB::bind_method(D_METHOD("set_aura_type", "value"), &Aura::set_aura_type);
|
ClassDB::bind_method(D_METHOD("set_aura_type", "value"), &Aura::set_aura_type);
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "aura_type", PROPERTY_HINT_ENUM, SpellEnums::BINDING_STRING_AURA_TYPES), "set_aura_type", "get_aura_type");
|
ADD_PROPERTY(PropertyInfo(Variant::INT, "aura_type", PROPERTY_HINT_ENUM, SpellEnums::BINDING_STRING_AURA_TYPES), "set_aura_type", "get_aura_type");
|
||||||
|
@ -57,6 +57,9 @@ public:
|
|||||||
SpellEnums::AuraType get_aura_type();
|
SpellEnums::AuraType get_aura_type();
|
||||||
void set_aura_type(SpellEnums::AuraType value);
|
void set_aura_type(SpellEnums::AuraType value);
|
||||||
|
|
||||||
|
int get_rank();
|
||||||
|
void set_rank(int value);
|
||||||
|
|
||||||
String get_aura_name();
|
String get_aura_name();
|
||||||
void set_aura_name(String name);
|
void set_aura_name(String name);
|
||||||
|
|
||||||
@ -412,6 +415,7 @@ private:
|
|||||||
String _aura_name;
|
String _aura_name;
|
||||||
String _aura_description;
|
String _aura_description;
|
||||||
int ability_scale_data_id;
|
int ability_scale_data_id;
|
||||||
|
int _rank;
|
||||||
|
|
||||||
Ref<SpellEffectVisual> _visual_spell_effects;
|
Ref<SpellEffectVisual> _visual_spell_effects;
|
||||||
Ref<SpellProjectileData> _spell_projectile_data;
|
Ref<SpellProjectileData> _spell_projectile_data;
|
||||||
|
@ -6,15 +6,20 @@ const String CraftRecipe::BINDING_STRING_CRAFT_SUB_CATEGORIES = "None,Potions";
|
|||||||
int CraftRecipe::get_id() {
|
int CraftRecipe::get_id() {
|
||||||
return _id;
|
return _id;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CraftRecipe::set_id(int value) {
|
void CraftRecipe::set_id(int value) {
|
||||||
_id = value;
|
_id = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String CraftRecipe::get_recipe_name() {
|
||||||
|
return _recipe_name;
|
||||||
|
}
|
||||||
|
void CraftRecipe::set_recipe_name(String name) {
|
||||||
|
_recipe_name = name;
|
||||||
|
}
|
||||||
|
|
||||||
CraftRecipe::CraftCategories CraftRecipe::get_category() {
|
CraftRecipe::CraftCategories CraftRecipe::get_category() {
|
||||||
return _category;
|
return _category;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CraftRecipe::set_category(CraftCategories value) {
|
void CraftRecipe::set_category(CraftCategories value) {
|
||||||
_category = value;
|
_category = value;
|
||||||
}
|
}
|
||||||
@ -112,6 +117,10 @@ void CraftRecipe::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("set_id", "value"), &CraftRecipe::set_id);
|
ClassDB::bind_method(D_METHOD("set_id", "value"), &CraftRecipe::set_id);
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "id"), "set_id", "get_id");
|
ADD_PROPERTY(PropertyInfo(Variant::INT, "id"), "set_id", "get_id");
|
||||||
|
|
||||||
|
ClassDB::bind_method(D_METHOD("get_recipe_name"), &CraftRecipe::get_recipe_name);
|
||||||
|
ClassDB::bind_method(D_METHOD("set_recipe_name", "value"), &CraftRecipe::set_recipe_name);
|
||||||
|
ADD_PROPERTY(PropertyInfo(Variant::STRING, "recipe_name"), "set_recipe_name", "get_recipe_name");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("get_category"), &CraftRecipe::get_category);
|
ClassDB::bind_method(D_METHOD("get_category"), &CraftRecipe::get_category);
|
||||||
ClassDB::bind_method(D_METHOD("set_category", "value"), &CraftRecipe::set_category);
|
ClassDB::bind_method(D_METHOD("set_category", "value"), &CraftRecipe::set_category);
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "category", PROPERTY_HINT_ENUM, CraftRecipe::BINDING_STRING_CRAFT_CATEGORIES), "set_category", "get_category");
|
ADD_PROPERTY(PropertyInfo(Variant::INT, "category", PROPERTY_HINT_ENUM, CraftRecipe::BINDING_STRING_CRAFT_CATEGORIES), "set_category", "get_category");
|
||||||
|
@ -34,6 +34,9 @@ public:
|
|||||||
int get_id();
|
int get_id();
|
||||||
void set_id(int value);
|
void set_id(int value);
|
||||||
|
|
||||||
|
String get_recipe_name();
|
||||||
|
void set_recipe_name(String name);
|
||||||
|
|
||||||
CraftCategories get_category();
|
CraftCategories get_category();
|
||||||
void set_category(CraftCategories value);
|
void set_category(CraftCategories value);
|
||||||
|
|
||||||
@ -72,6 +75,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
int _id;
|
int _id;
|
||||||
|
String _recipe_name;
|
||||||
|
|
||||||
CraftCategories _category;
|
CraftCategories _category;
|
||||||
CraftSubCategories _sub_category;
|
CraftSubCategories _sub_category;
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
#include "spell_effect_visual.h"
|
#include "spell_effect_visual.h"
|
||||||
|
|
||||||
|
String SpellEffectVisual::get_effect_name() {
|
||||||
|
return _effect_name;
|
||||||
|
}
|
||||||
|
void SpellEffectVisual::set_effect_name(String name) {
|
||||||
|
_effect_name = name;
|
||||||
|
}
|
||||||
|
|
||||||
SpellEffectVisual::SpellEffectVisual() {
|
SpellEffectVisual::SpellEffectVisual() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -7,4 +14,7 @@ SpellEffectVisual::~SpellEffectVisual() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SpellEffectVisual::_bind_methods() {
|
void SpellEffectVisual::_bind_methods() {
|
||||||
|
ClassDB::bind_method(D_METHOD("get_effect_name"), &SpellEffectVisual::get_effect_name);
|
||||||
|
ClassDB::bind_method(D_METHOD("set_effect_name", "value"), &SpellEffectVisual::set_effect_name);
|
||||||
|
ADD_PROPERTY(PropertyInfo(Variant::STRING, "effect_name"), "set_effect_name", "get_effect_name");
|
||||||
}
|
}
|
||||||
|
@ -7,13 +7,17 @@ class SpellEffectVisual : public Resource {
|
|||||||
GDCLASS(SpellEffectVisual, Resource);
|
GDCLASS(SpellEffectVisual, Resource);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
String get_effect_name();
|
||||||
|
void set_effect_name(String name);
|
||||||
|
|
||||||
SpellEffectVisual();
|
SpellEffectVisual();
|
||||||
~SpellEffectVisual();
|
~SpellEffectVisual();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static void _bind_methods();
|
static void _bind_methods();
|
||||||
|
|
||||||
//private:
|
private:
|
||||||
|
String _effect_name;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
#include "world_effect_data.h"
|
#include "world_effect_data.h"
|
||||||
|
|
||||||
|
String WorldEffectData::get_effect_name() {
|
||||||
|
return _effect_name;
|
||||||
|
}
|
||||||
|
void WorldEffectData::set_effect_name(String name) {
|
||||||
|
_effect_name = name;
|
||||||
|
}
|
||||||
|
|
||||||
WorldEffectData::WorldEffectData() {
|
WorldEffectData::WorldEffectData() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -7,4 +14,7 @@ WorldEffectData::~WorldEffectData() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void WorldEffectData::_bind_methods() {
|
void WorldEffectData::_bind_methods() {
|
||||||
|
ClassDB::bind_method(D_METHOD("get_effect_name"), &WorldEffectData::get_effect_name);
|
||||||
|
ClassDB::bind_method(D_METHOD("set_effect_name", "value"), &WorldEffectData::set_effect_name);
|
||||||
|
ADD_PROPERTY(PropertyInfo(Variant::STRING, "effect_name"), "set_effect_name", "get_effect_name");
|
||||||
}
|
}
|
||||||
|
@ -7,13 +7,17 @@ class WorldEffectData : public Resource {
|
|||||||
GDCLASS(WorldEffectData, Resource);
|
GDCLASS(WorldEffectData, Resource);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
String get_effect_name();
|
||||||
|
void set_effect_name(String name);
|
||||||
|
|
||||||
WorldEffectData();
|
WorldEffectData();
|
||||||
~WorldEffectData();
|
~WorldEffectData();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static void _bind_methods();
|
static void _bind_methods();
|
||||||
|
|
||||||
//private:
|
private:
|
||||||
|
String _effect_name;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user