mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-20 17:14:44 +01:00
converting everything with regex
This commit is contained in:
parent
3536f01bac
commit
32907bc4ec
@ -98,7 +98,7 @@ void ItemInstance::add_item_stat_modifier(const int stat_id, const int base_mod,
|
|||||||
void ItemInstance::remove_item_stat_modifier(const int index) {
|
void ItemInstance::remove_item_stat_modifier(const int index) {
|
||||||
ERR_FAIL_INDEX(index, _modifiers.size());
|
ERR_FAIL_INDEX(index, _modifiers.size());
|
||||||
|
|
||||||
_modifiers.remove(index);
|
_modifiers.remove_at(index);
|
||||||
}
|
}
|
||||||
void ItemInstance::clear_item_stat_modifiers() {
|
void ItemInstance::clear_item_stat_modifiers() {
|
||||||
_modifiers.clear();
|
_modifiers.clear();
|
||||||
@ -271,12 +271,12 @@ void ItemInstance::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("stat_modifiers_set", "mods"), &ItemInstance::stat_modifiers_set);
|
ClassDB::bind_method(D_METHOD("stat_modifiers_set", "mods"), &ItemInstance::stat_modifiers_set);
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "stat_modifiers", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_DEFAULT, ""), "stat_modifiers_set", "stat_modifiers_get");
|
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "stat_modifiers", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_DEFAULT, ""), "stat_modifiers_set", "stat_modifiers_get");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::STRING, "desc"), "_get_description"));
|
D_METHOD("_get_description", "desc");
|
||||||
ClassDB::bind_method(D_METHOD("get_description"), &ItemInstance::get_description);
|
ClassDB::bind_method(D_METHOD("get_description"), &ItemInstance::get_description);
|
||||||
|
|
||||||
//Serialization
|
//Serialization
|
||||||
BIND_VMETHOD(MethodInfo("_from_dict", PropertyInfo(Variant::DICTIONARY, "dict")));
|
D_METHOD("_from_dict", "dict");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::DICTIONARY, "dict"), "_to_dict"));
|
D_METHOD("_to_dict", "dict");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("from_dict", "dict"), &ItemInstance::from_dict);
|
ClassDB::bind_method(D_METHOD("from_dict", "dict"), &ItemInstance::from_dict);
|
||||||
ClassDB::bind_method(D_METHOD("to_dict"), &ItemInstance::to_dict);
|
ClassDB::bind_method(D_METHOD("to_dict"), &ItemInstance::to_dict);
|
||||||
|
@ -377,7 +377,7 @@ Ref<ItemInstance> ItemTemplate::create_item_instance() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Ref<ItemInstance> item;
|
Ref<ItemInstance> item;
|
||||||
item.instance();
|
item.instantiate();
|
||||||
|
|
||||||
//todo setup
|
//todo setup
|
||||||
//ERR_EXPLAIN("NOT YET IMPLEMENTED!");
|
//ERR_EXPLAIN("NOT YET IMPLEMENTED!");
|
||||||
@ -441,7 +441,7 @@ void ItemTemplate::_validate_property(PropertyInfo &property) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ItemTemplate::_bind_methods() {
|
void ItemTemplate::_bind_methods() {
|
||||||
BIND_VMETHOD(MethodInfo("_create_item_instance"));
|
D_METHOD("_create_item_instance");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("create_item_instance"), &ItemTemplate::create_item_instance);
|
ClassDB::bind_method(D_METHOD("create_item_instance"), &ItemTemplate::create_item_instance);
|
||||||
|
|
||||||
@ -568,7 +568,7 @@ void ItemTemplate::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("set_text_translation_key", "value"), &ItemTemplate::set_text_translation_key);
|
ClassDB::bind_method(D_METHOD("set_text_translation_key", "value"), &ItemTemplate::set_text_translation_key);
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::STRING, "text_translation_key"), "set_text_translation_key", "get_text_translation_key");
|
ADD_PROPERTY(PropertyInfo(Variant::STRING, "text_translation_key"), "set_text_translation_key", "get_text_translation_key");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::STRING, "desc"), "_get_description"));
|
D_METHOD("_get_description");
|
||||||
ClassDB::bind_method(D_METHOD("get_description"), &ItemTemplate::get_description);
|
ClassDB::bind_method(D_METHOD("get_description"), &ItemTemplate::get_description);
|
||||||
|
|
||||||
//StatMods Property binds
|
//StatMods Property binds
|
||||||
|
@ -51,7 +51,7 @@ void ModelVisual::add_visual_entry(const Ref<ModelVisualEntry> visual_entry) {
|
|||||||
void ModelVisual::remove_visual_entry(const int index) {
|
void ModelVisual::remove_visual_entry(const int index) {
|
||||||
ERR_FAIL_INDEX(index, _visual_entries.size());
|
ERR_FAIL_INDEX(index, _visual_entries.size());
|
||||||
|
|
||||||
_visual_entries.remove(index);
|
_visual_entries.remove_at(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ModelVisual::get_visual_entry_count() const {
|
int ModelVisual::get_visual_entry_count() const {
|
||||||
|
@ -106,12 +106,12 @@ void ModelVisualEntry::set_attachment(const int index, const Ref<PackedScene> &a
|
|||||||
_entries.write[index].attachment = attachment;
|
_entries.write[index].attachment = attachment;
|
||||||
}
|
}
|
||||||
|
|
||||||
Transform ModelVisualEntry::get_transform(const int index) const {
|
Transform3D ModelVisualEntry::get_transform(const int index) const {
|
||||||
ERR_FAIL_INDEX_V(index, _entries.size(), Transform());
|
ERR_FAIL_INDEX_V(index, _entries.size(), Transform3D());
|
||||||
|
|
||||||
return _entries[index].transform;
|
return _entries[index].transform;
|
||||||
}
|
}
|
||||||
void ModelVisualEntry::set_transform(const int index, const Transform &transform) {
|
void ModelVisualEntry::set_transform(const int index, const Transform3D &transform) {
|
||||||
ERR_FAIL_INDEX(index, _entries.size());
|
ERR_FAIL_INDEX(index, _entries.size());
|
||||||
|
|
||||||
_entries.write[index].transform = transform;
|
_entries.write[index].transform = transform;
|
||||||
@ -228,7 +228,7 @@ void ModelVisualEntry::_get_property_list(List<PropertyInfo> *p_list) const {
|
|||||||
} else {
|
} else {
|
||||||
p_list->push_back(PropertyInfo(Variant::OBJECT, "entry_" + itos(i) + "/attachment", PROPERTY_HINT_RESOURCE_TYPE, "PackedScene", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_INTERNAL));
|
p_list->push_back(PropertyInfo(Variant::OBJECT, "entry_" + itos(i) + "/attachment", PROPERTY_HINT_RESOURCE_TYPE, "PackedScene", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_INTERNAL));
|
||||||
}
|
}
|
||||||
p_list->push_back(PropertyInfo(Variant::TRANSFORM, "entry_" + itos(i) + "/transform", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_INTERNAL));
|
p_list->push_back(PropertyInfo(Variant::TRANSFORM3D, "entry_" + itos(i) + "/transform", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_INTERNAL));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,8 +88,8 @@ public:
|
|||||||
Ref<PackedScene> get_attachment(const int index);
|
Ref<PackedScene> get_attachment(const int index);
|
||||||
void set_attachment(const int index, const Ref<PackedScene> &attachment);
|
void set_attachment(const int index, const Ref<PackedScene> &attachment);
|
||||||
|
|
||||||
Transform get_transform(const int index) const;
|
Transform3D get_transform(const int index) const;
|
||||||
void set_transform(const int index, const Transform &transform);
|
void set_transform(const int index, const Transform3D &transform);
|
||||||
|
|
||||||
int get_size() const;
|
int get_size() const;
|
||||||
void set_size(const int value);
|
void set_size(const int value);
|
||||||
@ -106,7 +106,7 @@ protected:
|
|||||||
Color color;
|
Color color;
|
||||||
|
|
||||||
Ref<PackedScene> attachment;
|
Ref<PackedScene> attachment;
|
||||||
Transform transform;
|
Transform3D transform;
|
||||||
|
|
||||||
MVEE() {
|
MVEE() {
|
||||||
color = Color(1, 1, 1, 1);
|
color = Color(1, 1, 1, 1);
|
||||||
|
@ -278,7 +278,7 @@ void LootDataBase::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("get_item", "index"), &LootDataBase::get_item);
|
ClassDB::bind_method(D_METHOD("get_item", "index"), &LootDataBase::get_item);
|
||||||
ClassDB::bind_method(D_METHOD("set_item", "index", "value"), &LootDataBase::set_item);
|
ClassDB::bind_method(D_METHOD("set_item", "index", "value"), &LootDataBase::set_item);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::ARRAY, "arr"), "_get_loot"));
|
D_METHOD("_get_loot");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("get_loot"), &LootDataBase::get_loot);
|
ClassDB::bind_method(D_METHOD("get_loot"), &LootDataBase::get_loot);
|
||||||
ClassDB::bind_method(D_METHOD("_get_loot"), &LootDataBase::_get_loot);
|
ClassDB::bind_method(D_METHOD("_get_loot"), &LootDataBase::_get_loot);
|
||||||
|
@ -67,7 +67,7 @@ void EntitySpeciesData::add_model_data(const Ref<SpeciesModelData> &model_data)
|
|||||||
void EntitySpeciesData::remove_model_data(const int index) {
|
void EntitySpeciesData::remove_model_data(const int index) {
|
||||||
ERR_FAIL_INDEX(index, _model_datas.size());
|
ERR_FAIL_INDEX(index, _model_datas.size());
|
||||||
|
|
||||||
_model_datas.remove(index);
|
_model_datas.remove_at(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
int EntitySpeciesData::get_model_data_count() const {
|
int EntitySpeciesData::get_model_data_count() const {
|
||||||
@ -99,7 +99,7 @@ void EntitySpeciesData::add_spell(const Ref<Spell> &spell) {
|
|||||||
void EntitySpeciesData::remove_spell(const int index) {
|
void EntitySpeciesData::remove_spell(const int index) {
|
||||||
ERR_FAIL_INDEX(index, _spells.size());
|
ERR_FAIL_INDEX(index, _spells.size());
|
||||||
|
|
||||||
_spells.remove(index);
|
_spells.remove_at(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
int EntitySpeciesData::get_spell_count() const {
|
int EntitySpeciesData::get_spell_count() const {
|
||||||
@ -131,7 +131,7 @@ void EntitySpeciesData::add_aura(const Ref<Spell> &aura) {
|
|||||||
void EntitySpeciesData::remove_aura(const int index) {
|
void EntitySpeciesData::remove_aura(const int index) {
|
||||||
ERR_FAIL_INDEX(index, _auras.size());
|
ERR_FAIL_INDEX(index, _auras.size());
|
||||||
|
|
||||||
_auras.remove(index);
|
_auras.remove_at(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
int EntitySpeciesData::get_aura_count() const {
|
int EntitySpeciesData::get_aura_count() const {
|
||||||
@ -176,7 +176,7 @@ void EntitySpeciesData::_validate_property(PropertyInfo &property) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void EntitySpeciesData::_bind_methods() {
|
void EntitySpeciesData::_bind_methods() {
|
||||||
BIND_VMETHOD(MethodInfo(Variant::STRING, "_generate_name", PropertyInfo(Variant::INT, "seed")));
|
D_METHOD("_generate_name", "seed");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("generate_name"), &EntitySpeciesData::generate_name);
|
ClassDB::bind_method(D_METHOD("generate_name"), &EntitySpeciesData::generate_name);
|
||||||
|
|
||||||
|
@ -171,8 +171,8 @@ void SpeciesInstance::_bind_methods() {
|
|||||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "head_index"), "set_head_index", "get_head_index");
|
ADD_PROPERTY(PropertyInfo(Variant::INT, "head_index"), "set_head_index", "get_head_index");
|
||||||
|
|
||||||
//Serialization
|
//Serialization
|
||||||
BIND_VMETHOD(MethodInfo("_from_dict", PropertyInfo(Variant::DICTIONARY, "dict")));
|
D_METHOD("_from_dict", "dict");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::DICTIONARY, "dict"), "_to_dict"));
|
D_METHOD("_to_dict");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("from_dict", "dict"), &SpeciesInstance::from_dict);
|
ClassDB::bind_method(D_METHOD("from_dict", "dict"), &SpeciesInstance::from_dict);
|
||||||
ClassDB::bind_method(D_METHOD("to_dict"), &SpeciesInstance::to_dict);
|
ClassDB::bind_method(D_METHOD("to_dict"), &SpeciesInstance::to_dict);
|
||||||
|
@ -73,7 +73,7 @@ void SpeciesModelData::add_visual(const Ref<ModelVisualEntry> &visual) {
|
|||||||
void SpeciesModelData::remove_visual(const int index) {
|
void SpeciesModelData::remove_visual(const int index) {
|
||||||
ERR_FAIL_INDEX(index, _visuals.size());
|
ERR_FAIL_INDEX(index, _visuals.size());
|
||||||
|
|
||||||
_visuals.remove(index);
|
_visuals.remove_at(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
int SpeciesModelData::get_visual_count() const {
|
int SpeciesModelData::get_visual_count() const {
|
||||||
@ -123,7 +123,7 @@ void SpeciesModelData::remove_customizable_slot_entry(const int slot_index, cons
|
|||||||
ERR_FAIL_INDEX(slot_index, _customizable_slots.size());
|
ERR_FAIL_INDEX(slot_index, _customizable_slots.size());
|
||||||
ERR_FAIL_INDEX(index, _customizable_slots.size());
|
ERR_FAIL_INDEX(index, _customizable_slots.size());
|
||||||
|
|
||||||
_customizable_slots.write[slot_index].remove(index);
|
_customizable_slots.write[slot_index].remove_at(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
int SpeciesModelData::get_customizable_slot_count() const {
|
int SpeciesModelData::get_customizable_slot_count() const {
|
||||||
@ -196,7 +196,7 @@ void SpeciesModelData::remove_color_customizable_slot_color(const int slot_index
|
|||||||
ERR_FAIL_INDEX(slot_index, _customizable_color_slots.size());
|
ERR_FAIL_INDEX(slot_index, _customizable_color_slots.size());
|
||||||
ERR_FAIL_INDEX(index, _customizable_color_slots.size());
|
ERR_FAIL_INDEX(index, _customizable_color_slots.size());
|
||||||
|
|
||||||
_customizable_color_slots.write[slot_index].colors.remove(index);
|
_customizable_color_slots.write[slot_index].colors.remove_at(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
Vector<Color> SpeciesModelData::get_color_customizable_slot_colors(const int slot_index) const {
|
Vector<Color> SpeciesModelData::get_color_customizable_slot_colors(const int slot_index) const {
|
||||||
|
@ -1886,7 +1886,7 @@ void Spell::_handle_spell_heal(Ref<SpellHealInfo> data) {
|
|||||||
|
|
||||||
void Spell::_handle_projectile(Ref<SpellCastInfo> info) {
|
void Spell::_handle_projectile(Ref<SpellCastInfo> info) {
|
||||||
if (_projectile_scene.is_valid()) {
|
if (_projectile_scene.is_valid()) {
|
||||||
Node *projectile = _projectile_scene->instance();
|
Node *projectile = _projectile_scene->instantiate();
|
||||||
|
|
||||||
Node *p = info->caster_get()->get_parent();
|
Node *p = info->caster_get()->get_parent();
|
||||||
|
|
||||||
@ -1927,7 +1927,7 @@ void Spell::_handle_effect(Ref<SpellCastInfo> info) {
|
|||||||
|
|
||||||
if (_damage_enabled && has_target) {
|
if (_damage_enabled && has_target) {
|
||||||
Ref<SpellDamageInfo> sdi;
|
Ref<SpellDamageInfo> sdi;
|
||||||
sdi.instance();
|
sdi.instantiate();
|
||||||
|
|
||||||
sdi->spell_source_set(Ref<Spell>(this));
|
sdi->spell_source_set(Ref<Spell>(this));
|
||||||
sdi->dealer_set(info->caster_get());
|
sdi->dealer_set(info->caster_get());
|
||||||
@ -1950,7 +1950,7 @@ void Spell::_handle_effect(Ref<SpellCastInfo> info) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Ref<AuraApplyInfo> aai;
|
Ref<AuraApplyInfo> aai;
|
||||||
aai.instance();
|
aai.instantiate();
|
||||||
|
|
||||||
aai->caster_set(info->caster_get());
|
aai->caster_set(info->caster_get());
|
||||||
aai->target_set(info->target_get());
|
aai->target_set(info->target_get());
|
||||||
@ -1968,7 +1968,7 @@ void Spell::_handle_effect(Ref<SpellCastInfo> info) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Ref<SpellCastInfo> sci;
|
Ref<SpellCastInfo> sci;
|
||||||
sci.instance();
|
sci.instantiate();
|
||||||
|
|
||||||
sci->caster_set(info->caster_get());
|
sci->caster_set(info->caster_get());
|
||||||
sci->target_set(info->caster_get());
|
sci->target_set(info->caster_get());
|
||||||
@ -1989,7 +1989,7 @@ void Spell::_handle_effect(Ref<SpellCastInfo> info) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Ref<SpellCastInfo> sci;
|
Ref<SpellCastInfo> sci;
|
||||||
sci.instance();
|
sci.instantiate();
|
||||||
|
|
||||||
sci->caster_set(info->caster_get());
|
sci->caster_set(info->caster_get());
|
||||||
sci->target_set(info->target_get());
|
sci->target_set(info->target_get());
|
||||||
@ -2009,7 +2009,7 @@ void Spell::_aura_sapply(Ref<AuraApplyInfo> info) {
|
|||||||
Ref<AuraData> ad = info->target_get()->aura_gets_by(info->caster_get(), _id);
|
Ref<AuraData> ad = info->target_get()->aura_gets_by(info->caster_get(), _id);
|
||||||
|
|
||||||
if (!ad.is_valid()) {
|
if (!ad.is_valid()) {
|
||||||
ad.instance();
|
ad.instantiate();
|
||||||
|
|
||||||
setup_aura_data(ad, info);
|
setup_aura_data(ad, info);
|
||||||
|
|
||||||
@ -2348,10 +2348,10 @@ void Spell::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("cast_interrupts", "info"), &Spell::cast_interrupts);
|
ClassDB::bind_method(D_METHOD("cast_interrupts", "info"), &Spell::cast_interrupts);
|
||||||
ClassDB::bind_method(D_METHOD("cast_finishs", "info"), &Spell::cast_finishs);
|
ClassDB::bind_method(D_METHOD("cast_finishs", "info"), &Spell::cast_finishs);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_cast_starts", PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_cast_starts", "info", "SpellCastInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_cast_starts_triggered", PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_cast_starts_triggered", "info", "SpellCastInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_cast_interrupts", PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_cast_interrupts", "info", "SpellCastInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_cast_finishs", PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_cast_finishs", "info", "SpellCastInfo");
|
||||||
|
|
||||||
//Aura Commands
|
//Aura Commands
|
||||||
ClassDB::bind_method(D_METHOD("aura_sapply", "info"), &Spell::aura_sapply);
|
ClassDB::bind_method(D_METHOD("aura_sapply", "info"), &Spell::aura_sapply);
|
||||||
@ -2362,13 +2362,13 @@ void Spell::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("aura_removes_dispell", "aura"), &Spell::aura_removes_dispell);
|
ClassDB::bind_method(D_METHOD("aura_removes_dispell", "aura"), &Spell::aura_removes_dispell);
|
||||||
ClassDB::bind_method(D_METHOD("aura_supdate", "aura", "delta"), &Spell::aura_supdate);
|
ClassDB::bind_method(D_METHOD("aura_supdate", "aura", "delta"), &Spell::aura_supdate);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_aura_sapply", PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "AuraApplyInfo")));
|
D_METHOD("_aura_sapply", "info", "AuraApplyInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_aura_sdeapply", PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_aura_sdeapply", "info", "AuraData");
|
||||||
BIND_VMETHOD(MethodInfo("_aura_sadd", PropertyInfo(Variant::OBJECT, "aura", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_aura_sadd", "aura", "AuraData");
|
||||||
BIND_VMETHOD(MethodInfo("_aura_sremove", PropertyInfo(Variant::OBJECT, "aura", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_aura_sremove", "aura", "AuraData");
|
||||||
BIND_VMETHOD(MethodInfo("_aura_removes_expired", PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_aura_removes_expired", "info", "AuraData");
|
||||||
BIND_VMETHOD(MethodInfo("_aura_removes_dispell", PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_aura_removes_dispell", "info", "AuraData");
|
||||||
BIND_VMETHOD(MethodInfo("_aura_supdate", PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::REAL, "delta")));
|
D_METHOD("_aura_supdate", "info", "AuraData", "delta");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("_aura_sapply", "info"), &Spell::_aura_sapply);
|
ClassDB::bind_method(D_METHOD("_aura_sapply", "info"), &Spell::_aura_sapply);
|
||||||
ClassDB::bind_method(D_METHOD("_aura_sdeapply", "aura"), &Spell::_aura_sdeapply);
|
ClassDB::bind_method(D_METHOD("_aura_sdeapply", "aura"), &Spell::_aura_sdeapply);
|
||||||
@ -2384,23 +2384,23 @@ void Spell::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("son_spell_hit", "info"), &Spell::son_spell_hit);
|
ClassDB::bind_method(D_METHOD("son_spell_hit", "info"), &Spell::son_spell_hit);
|
||||||
ClassDB::bind_method(D_METHOD("son_physics_process", "info", "delta"), &Spell::son_physics_process);
|
ClassDB::bind_method(D_METHOD("son_physics_process", "info", "delta"), &Spell::son_physics_process);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_son_cast_player_moved", PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_son_cast_player_moved", "info", "SpellCastInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_son_cast_damage_received", PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_son_cast_damage_received", "info", "SpellCastInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_son_spell_hit", PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_son_spell_hit", "info", "SpellCastInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_son_physics_process", PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo"), PropertyInfo(Variant::REAL, "delta")));
|
D_METHOD("_son_physics_process", "info", "SpellCastInfo", "delta");
|
||||||
|
|
||||||
//Clientside Event Handlers
|
//Clientside Event Handlers
|
||||||
BIND_VMETHOD(MethodInfo("_notification_scast", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_notification_scast", "what", "info", "SpellCastInfo");
|
||||||
ClassDB::bind_method(D_METHOD("notification_scast", "what", "info"), &Spell::notification_scast);
|
ClassDB::bind_method(D_METHOD("notification_scast", "what", "info"), &Spell::notification_scast);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_ccast", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_notification_ccast", "what", "info", "SpellCastInfo");
|
||||||
ClassDB::bind_method(D_METHOD("notification_ccast", "what", "info"), &Spell::notification_ccast);
|
ClassDB::bind_method(D_METHOD("notification_ccast", "what", "info"), &Spell::notification_ccast);
|
||||||
|
|
||||||
//Aura EventHandlers
|
//Aura EventHandlers
|
||||||
BIND_VMETHOD(MethodInfo("_notification_saura", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_notification_saura", "what", "data", "AuraData");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sheal", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "SpellHealInfo")));
|
D_METHOD("_notification_sheal", "what", "data", "AuraData", "data", "SpellHealInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_aura_scast", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_notification_aura_scast", "what", "data", "AuraData", "info", "SpellCastInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sdamage", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo")));
|
D_METHOD("_notification_sdamage", "what", "data", "AuraData", "data", "SpellDamageInfo");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("notification_saura", "what", "data"), &Spell::notification_saura);
|
ClassDB::bind_method(D_METHOD("notification_saura", "what", "data"), &Spell::notification_saura);
|
||||||
ClassDB::bind_method(D_METHOD("notification_sheal", "what", "aura", "info"), &Spell::notification_sheal);
|
ClassDB::bind_method(D_METHOD("notification_sheal", "what", "aura", "info"), &Spell::notification_sheal);
|
||||||
@ -2430,33 +2430,33 @@ void Spell::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("notification_sentity_resource_added", "data", "value"), &Spell::notification_sentity_resource_added);
|
ClassDB::bind_method(D_METHOD("notification_sentity_resource_added", "data", "value"), &Spell::notification_sentity_resource_added);
|
||||||
ClassDB::bind_method(D_METHOD("notification_sentity_resource_removed", "data", "value"), &Spell::notification_sentity_resource_removed);
|
ClassDB::bind_method(D_METHOD("notification_sentity_resource_removed", "data", "value"), &Spell::notification_sentity_resource_removed);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_son_remove", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_son_remove", "data", "AuraData");
|
||||||
BIND_VMETHOD(MethodInfo("_son_remove_expired", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_son_remove_expired", "data", "AuraData");
|
||||||
BIND_VMETHOD(MethodInfo("_son_remove_dispell", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_son_remove_dispell", "data", "AuraData");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sdeath", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_notification_sdeath", "data", "AuraData");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_scooldown_added", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("_notification_scooldown_added", "data", "AuraData", "id", "value");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_scooldown_removed", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("_notification_scooldown_removed", "data", "AuraData", "id", "value");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_scategory_cooldown_added", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("_notification_scategory_cooldown_added", "data", "AuraData", "id", "value");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_scategory_cooldown_removed", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("_notification_scategory_cooldown_removed", "data", "AuraData", "id", "value");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sgcd_started", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::REAL, "gcd")));
|
D_METHOD("_notification_sgcd_started", "data", "AuraData", "gcd");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sgcd_finished", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_notification_sgcd_finished", "data", "AuraData");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_son_physics_process_aura", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_son_physics_process_aura", "data", "AuraData");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sxp_gained", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "value")));
|
D_METHOD("_notification_sxp_gained", "data", "AuraData", "value");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_slevel_up", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "value")));
|
D_METHOD("_notification_slevel_up", "data", "AuraData", "value");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sentity_resource_added", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "value")));
|
D_METHOD("_notification_sentity_resource_added", "data", "AuraData", "value");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sentity_resource_removed", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "value")));
|
D_METHOD("_notification_sentity_resource_removed", "data", "AuraData", "value");
|
||||||
|
|
||||||
//Aura Clientside Event Handlers
|
//Aura Clientside Event Handlers
|
||||||
BIND_VMETHOD(MethodInfo("_notification_caura", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_notification_caura", "what", "data", "AuraData");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_cheal", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "SpellHealInfo")));
|
D_METHOD("_notification_cheal", "what", "data", "AuraData", "data", "SpellHealInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_aura_ccast", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_notification_aura_ccast", "what", "data", "AuraData", "info", "SpellCastInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_cdamage", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo")));
|
D_METHOD("_notification_cdamage", "what", "data", "AuraData", "data", "SpellDamageInfo");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("notification_caura", "what", "data"), &Spell::notification_caura);
|
ClassDB::bind_method(D_METHOD("notification_caura", "what", "data"), &Spell::notification_caura);
|
||||||
ClassDB::bind_method(D_METHOD("notification_cheal", "what", "aura", "info"), &Spell::notification_cheal);
|
ClassDB::bind_method(D_METHOD("notification_cheal", "what", "aura", "info"), &Spell::notification_cheal);
|
||||||
@ -2479,45 +2479,45 @@ void Spell::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("notification_centity_resource_added", "data", "value"), &Spell::notification_centity_resource_added);
|
ClassDB::bind_method(D_METHOD("notification_centity_resource_added", "data", "value"), &Spell::notification_centity_resource_added);
|
||||||
ClassDB::bind_method(D_METHOD("notification_centity_resource_removed", "data", "value"), &Spell::notification_centity_resource_removed);
|
ClassDB::bind_method(D_METHOD("notification_centity_resource_removed", "data", "value"), &Spell::notification_centity_resource_removed);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_con_cast_failed", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_con_cast_failed", "data", "AuraData", "info", "SpellCastInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_con_cast_started", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_con_cast_started", "data", "AuraData", "info", "SpellCastInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_con_cast_state_changed", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_con_cast_state_changed", "data", "AuraData", "info", "SpellCastInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_con_cast_finished", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_con_cast_finished", "data", "AuraData", "info", "SpellCastInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_con_spell_cast_success", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_con_spell_cast_success", "data", "AuraData", "info", "SpellCastInfo");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_cdeath", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_notification_cdeath", "data", "AuraData");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_ccooldown_added", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("_notification_ccooldown_added", "data", "AuraData", "id", "value");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_ccooldown_removed", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("_notification_ccooldown_removed", "data", "AuraData", "id", "value");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_ccategory_cooldown_added", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("_notification_ccategory_cooldown_added", "data", "AuraData", "id", "value");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_ccategory_cooldown_removed", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("_notification_ccategory_cooldown_removed", "data", "AuraData", "id", "value");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_con_aura_added", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_con_aura_added", "data", "AuraData");
|
||||||
BIND_VMETHOD(MethodInfo("_con_aura_removed", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_con_aura_removed", "data", "AuraData");
|
||||||
BIND_VMETHOD(MethodInfo("_con_aura_refresh", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_con_aura_refresh", "data", "AuraData");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_con_damage_dealt", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo")));
|
D_METHOD("_con_damage_dealt", "data", "AuraData", "info", "SpellDamageInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_con_dealt_damage", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo")));
|
D_METHOD("_con_dealt_damage", "data", "AuraData", "info", "SpellDamageInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_con_heal_dealt", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellHealInfo")));
|
D_METHOD("_con_heal_dealt", "data", "AuraData", "info", "SpellHealInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_con_dealt_heal", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellHealInfo")));
|
D_METHOD("_con_dealt_heal", "data", "AuraData", "info", "SpellHealInfo");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_cgcd_started", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::REAL, "gcd")));
|
D_METHOD("_notification_cgcd_started", "data", "AuraData", "gcd");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_cgcd_finished", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_notification_cgcd_finished", "data", "AuraData");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_cxp_gained", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "value")));
|
D_METHOD("_notification_cxp_gained", "data", "AuraData", "value");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_clevel_up", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "value")));
|
D_METHOD("_notification_clevel_up", "data", "AuraData", "value");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_centity_resource_added", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "value")));
|
D_METHOD("_notification_centity_resource_added", "data", "AuraData", "value");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_centity_resource_removed", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "value")));
|
D_METHOD("_notification_centity_resource_removed", "data", "AuraData", "value");
|
||||||
|
|
||||||
//Equipment
|
//Equipment
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::BOOL, "ret"), "_equip_should_deny", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance")));
|
D_METHOD("_equip_should_deny", "data", "AuraData", "equip_slot", "item", "ItemInstance");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_equip_son_success", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::OBJECT, "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::INT, "bag_slot")));
|
D_METHOD("_equip_son_success", "data", "AuraData", "equip_slot", "item", "ItemInstance", "old_item", "ItemInstance", "bag_slot");
|
||||||
BIND_VMETHOD(MethodInfo("_equip_son_fail", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::OBJECT, "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::INT, "bag_slot")));
|
D_METHOD("_equip_son_fail", "data", "AuraData", "equip_slot", "item", "ItemInstance", "old_item", "ItemInstance", "bag_slot");
|
||||||
BIND_VMETHOD(MethodInfo("_equip_con_success", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::OBJECT, "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::INT, "bag_slot")));
|
D_METHOD("_equip_con_success", "data", "AuraData", "equip_slot", "item", "ItemInstance", "old_item", "ItemInstance", "bag_slot");
|
||||||
BIND_VMETHOD(MethodInfo("_equip_con_fail", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::OBJECT, "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::INT, "bag_slot")));
|
D_METHOD("_equip_con_fail", "data", "AuraData", "equip_slot", "item", "ItemInstance", "old_item", "ItemInstance", "bag_slot");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("equip_should_deny", "data", "equip_slot", "item"), &Spell::equip_should_deny);
|
ClassDB::bind_method(D_METHOD("equip_should_deny", "data", "equip_slot", "item"), &Spell::equip_should_deny);
|
||||||
|
|
||||||
@ -2530,20 +2530,20 @@ void Spell::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("calculate_initial_damage", "data"), &Spell::calculate_initial_damage);
|
ClassDB::bind_method(D_METHOD("calculate_initial_damage", "data"), &Spell::calculate_initial_damage);
|
||||||
ClassDB::bind_method(D_METHOD("handle_spell_damage", "data"), &Spell::handle_spell_damage);
|
ClassDB::bind_method(D_METHOD("handle_spell_damage", "data"), &Spell::handle_spell_damage);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_calculate_initial_damage", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo")));
|
D_METHOD("_calculate_initial_damage", "data", "SpellDamageInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_handle_spell_damage", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo")));
|
D_METHOD("_handle_spell_damage", "data", "SpellDamageInfo");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("calculate_initial_heal", "data"), &Spell::calculate_initial_heal);
|
ClassDB::bind_method(D_METHOD("calculate_initial_heal", "data"), &Spell::calculate_initial_heal);
|
||||||
ClassDB::bind_method(D_METHOD("handle_spell_heal", "data"), &Spell::handle_spell_heal);
|
ClassDB::bind_method(D_METHOD("handle_spell_heal", "data"), &Spell::handle_spell_heal);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_calculate_initial_heal", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "SpellHealInfo")));
|
D_METHOD("_calculate_initial_heal", "data", "SpellHealInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_handle_spell_heal", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "SpellHealInfo")));
|
D_METHOD("_handle_spell_heal", "data", "SpellHealInfo");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("handle_projectile", "info"), &Spell::handle_projectile);
|
ClassDB::bind_method(D_METHOD("handle_projectile", "info"), &Spell::handle_projectile);
|
||||||
ClassDB::bind_method(D_METHOD("handle_effect", "info"), &Spell::handle_effect);
|
ClassDB::bind_method(D_METHOD("handle_effect", "info"), &Spell::handle_effect);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_handle_projectile", PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_handle_projectile", "info", "SpellCastInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_handle_effect", PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_handle_effect", "info", "SpellCastInfo");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("handle_gcd", "info"), &Spell::handle_gcd);
|
ClassDB::bind_method(D_METHOD("handle_gcd", "info"), &Spell::handle_gcd);
|
||||||
ClassDB::bind_method(D_METHOD("handle_cooldown", "info"), &Spell::handle_cooldown);
|
ClassDB::bind_method(D_METHOD("handle_cooldown", "info"), &Spell::handle_cooldown);
|
||||||
@ -2567,7 +2567,7 @@ void Spell::_bind_methods() {
|
|||||||
//Aura Calculations / Queries
|
//Aura Calculations / Queries
|
||||||
ClassDB::bind_method(D_METHOD("setup_aura_data", "data", "info"), &Spell::setup_aura_data);
|
ClassDB::bind_method(D_METHOD("setup_aura_data", "data", "info"), &Spell::setup_aura_data);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_setup_aura_data", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "AuraApplyInfo")));
|
D_METHOD("_setup_aura_data", "data", "AuraData", "info", "AuraApplyInfo");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("_setup_aura_data", "data", "info"), &Spell::_setup_aura_data);
|
ClassDB::bind_method(D_METHOD("_setup_aura_data", "data", "info"), &Spell::_setup_aura_data);
|
||||||
|
|
||||||
@ -2577,10 +2577,10 @@ void Spell::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("aura_calculate_initial_damage", "aura_data", "info"), &Spell::aura_calculate_initial_damage);
|
ClassDB::bind_method(D_METHOD("aura_calculate_initial_damage", "aura_data", "info"), &Spell::aura_calculate_initial_damage);
|
||||||
ClassDB::bind_method(D_METHOD("handle_aura_damage", "aura_data", "data"), &Spell::handle_aura_damage);
|
ClassDB::bind_method(D_METHOD("handle_aura_damage", "aura_data", "data"), &Spell::handle_aura_damage);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_aura_sapply_passives_damage_receive", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo")));
|
D_METHOD("_aura_sapply_passives_damage_receive", "data", "SpellDamageInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_aura_sapply_passives_damage_deal", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo")));
|
D_METHOD("_aura_sapply_passives_damage_deal", "data", "SpellDamageInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_aura_calculate_initial_damage", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "AuraApplyInfo")));
|
D_METHOD("_aura_calculate_initial_damage", "data", "AuraData", "info", "AuraApplyInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_handle_aura_damage", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo")));
|
D_METHOD("_handle_aura_damage", "data", "AuraData", "info", "SpellDamageInfo");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("_aura_sapply_passives_damage_receive", "info"), &Spell::_aura_sapply_passives_damage_receive);
|
ClassDB::bind_method(D_METHOD("_aura_sapply_passives_damage_receive", "info"), &Spell::_aura_sapply_passives_damage_receive);
|
||||||
ClassDB::bind_method(D_METHOD("_aura_sapply_passives_damage_deal", "info"), &Spell::_aura_sapply_passives_damage_deal);
|
ClassDB::bind_method(D_METHOD("_aura_sapply_passives_damage_deal", "info"), &Spell::_aura_sapply_passives_damage_deal);
|
||||||
@ -2593,10 +2593,10 @@ void Spell::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("aura_calculate_initial_heal", "aura_data", "info"), &Spell::aura_calculate_initial_heal);
|
ClassDB::bind_method(D_METHOD("aura_calculate_initial_heal", "aura_data", "info"), &Spell::aura_calculate_initial_heal);
|
||||||
ClassDB::bind_method(D_METHOD("handle_aura_heal", "aura_data", "data"), &Spell::handle_aura_heal);
|
ClassDB::bind_method(D_METHOD("handle_aura_heal", "aura_data", "data"), &Spell::handle_aura_heal);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_aura_sapply_passives_heal_receive", PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo")));
|
D_METHOD("_aura_sapply_passives_heal_receive", "info", "SpellDamageInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_aura_sapply_passives_heal_deal", PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo")));
|
D_METHOD("_aura_sapply_passives_heal_deal", "info", "SpellDamageInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_aura_calculate_initial_heal", PropertyInfo(Variant::OBJECT, "aura_data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "AuraApplyInfo")));
|
D_METHOD("_aura_calculate_initial_heal", "aura_data", "AuraData", "info", "AuraApplyInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_handle_aura_heal", PropertyInfo(Variant::OBJECT, "aura_data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"), PropertyInfo(Variant::OBJECT, "spell_heal_info", PROPERTY_HINT_RESOURCE_TYPE, "SpellHealInfo")));
|
D_METHOD("_handle_aura_heal", "aura_data", "AuraData", "spell_heal_info", "SpellHealInfo");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("_aura_sapply_passives_heal_receive", "info"), &Spell::_aura_sapply_passives_heal_receive);
|
ClassDB::bind_method(D_METHOD("_aura_sapply_passives_heal_receive", "info"), &Spell::_aura_sapply_passives_heal_receive);
|
||||||
ClassDB::bind_method(D_METHOD("_aura_sapply_passives_heal_deal", "info"), &Spell::_aura_sapply_passives_heal_deal);
|
ClassDB::bind_method(D_METHOD("_aura_sapply_passives_heal_deal", "info"), &Spell::_aura_sapply_passives_heal_deal);
|
||||||
@ -2696,7 +2696,7 @@ void Spell::_bind_methods() {
|
|||||||
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "spells_cast_on_learn", PROPERTY_HINT_NONE, "17/17:Spell", PROPERTY_USAGE_DEFAULT, "Spell"), "spells_cast_on_learn_set", "spells_cast_on_learn_get");
|
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "spells_cast_on_learn", PROPERTY_HINT_NONE, "17/17:Spell", PROPERTY_USAGE_DEFAULT, "Spell"), "spells_cast_on_learn_set", "spells_cast_on_learn_get");
|
||||||
|
|
||||||
ADD_GROUP("Texts", "text");
|
ADD_GROUP("Texts", "text");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::STRING, "desc"), "_get_description", PropertyInfo(Variant::INT, "class_level"), PropertyInfo(Variant::INT, "character_level")));
|
D_METHOD("_get_description", "class_level", "character_level");
|
||||||
|
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::STRING, "text_name"), "set_name", "get_name");
|
ADD_PROPERTY(PropertyInfo(Variant::STRING, "text_name"), "set_name", "get_name");
|
||||||
|
|
||||||
@ -2938,7 +2938,7 @@ void Spell::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("aura_set_visual_spell_effects", "value"), &Spell::aura_set_visual_spell_effects);
|
ClassDB::bind_method(D_METHOD("aura_set_visual_spell_effects", "value"), &Spell::aura_set_visual_spell_effects);
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "aura_visual_spell_effects", PROPERTY_HINT_RESOURCE_TYPE, "SpellEffectVisual"), "aura_set_visual_spell_effects", "aura_get_visual_spell_effects");
|
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "aura_visual_spell_effects", PROPERTY_HINT_RESOURCE_TYPE, "SpellEffectVisual"), "aura_set_visual_spell_effects", "aura_get_visual_spell_effects");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::STRING, "desc"), "_aura_get_description", PropertyInfo(Variant::INT, "class_level"), PropertyInfo(Variant::INT, "character_level")));
|
D_METHOD("_aura_get_description", "class_level", "character_level");
|
||||||
|
|
||||||
ADD_GROUP("Aura Texts", "aura_text");
|
ADD_GROUP("Aura Texts", "aura_text");
|
||||||
ClassDB::bind_method(D_METHOD("aura_get_text_translation_key"), &Spell::aura_get_text_translation_key);
|
ClassDB::bind_method(D_METHOD("aura_get_text_translation_key"), &Spell::aura_get_text_translation_key);
|
||||||
|
@ -31,8 +31,8 @@ SOFTWARE.
|
|||||||
#include "core/resource.h"
|
#include "core/resource.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class SpellCooldownManipulationData : public Reference {
|
class SpellCooldownManipulationData : public RefCounted {
|
||||||
GDCLASS(SpellCooldownManipulationData, Reference);
|
GDCLASS(SpellCooldownManipulationData, RefCounted);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void set_id() {}
|
void set_id() {}
|
||||||
|
@ -363,6 +363,6 @@ void ESSResourceDB::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("clear"), &ESSResourceDB::clear);
|
ClassDB::bind_method(D_METHOD("clear"), &ESSResourceDB::clear);
|
||||||
ClassDB::bind_method(D_METHOD("add_entity_resource_db", "other"), &ESSResourceDB::add_entity_resource_db);
|
ClassDB::bind_method(D_METHOD("add_entity_resource_db", "other"), &ESSResourceDB::add_entity_resource_db);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_initialize"));
|
D_METHOD("_initialize");
|
||||||
ClassDB::bind_method(D_METHOD("initialize"), &ESSResourceDB::initialize);
|
ClassDB::bind_method(D_METHOD("initialize"), &ESSResourceDB::initialize);
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ SOFTWARE.
|
|||||||
#include "core/version.h"
|
#include "core/version.h"
|
||||||
|
|
||||||
#if VERSION_MAJOR > 3
|
#if VERSION_MAJOR > 3
|
||||||
#include "core/object/reference.h"
|
#include "core/object/ref_counted.h"
|
||||||
#include "core/string/ustring.h"
|
#include "core/string/ustring.h"
|
||||||
#else
|
#else
|
||||||
#include "core/reference.h"
|
#include "core/reference.h"
|
||||||
@ -35,8 +35,8 @@ SOFTWARE.
|
|||||||
|
|
||||||
#include "scene/main/node.h"
|
#include "scene/main/node.h"
|
||||||
|
|
||||||
class ESDragAndDrop : public Reference {
|
class ESDragAndDrop : public RefCounted {
|
||||||
GDCLASS(ESDragAndDrop, Reference);
|
GDCLASS(ESDragAndDrop, RefCounted);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static const String BINDING_STRING_ES_DRAG_AND_DROP_TYPE;
|
static const String BINDING_STRING_ES_DRAG_AND_DROP_TYPE;
|
||||||
|
@ -354,13 +354,13 @@ EntityAI::~EntityAI() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void EntityAI::_bind_methods() {
|
void EntityAI::_bind_methods() {
|
||||||
BIND_VMETHOD(MethodInfo("_on_set_owner"));
|
D_METHOD("_on_set_owner");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_update", PropertyInfo(Variant::REAL, "delta")));
|
D_METHOD("_update", "delta");
|
||||||
BIND_VMETHOD(MethodInfo("_pet_update", PropertyInfo(Variant::REAL, "delta")));
|
D_METHOD("_pet_update", "delta");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_move", PropertyInfo(Variant::REAL, "delta")));
|
D_METHOD("_move", "delta");
|
||||||
BIND_VMETHOD(MethodInfo("_pet_move", PropertyInfo(Variant::REAL, "delta")));
|
D_METHOD("_pet_move", "delta");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("get_enabled"), &EntityAI::get_enabled);
|
ClassDB::bind_method(D_METHOD("get_enabled"), &EntityAI::get_enabled);
|
||||||
ClassDB::bind_method(D_METHOD("set_enabled", "value"), &EntityAI::set_enabled);
|
ClassDB::bind_method(D_METHOD("set_enabled", "value"), &EntityAI::set_enabled);
|
||||||
@ -399,10 +399,10 @@ void EntityAI::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("_on_set_owner"), &EntityAI::_on_set_owner);
|
ClassDB::bind_method(D_METHOD("_on_set_owner"), &EntityAI::_on_set_owner);
|
||||||
|
|
||||||
//EventHandlers
|
//EventHandlers
|
||||||
BIND_VMETHOD(MethodInfo("_notification_saura", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_notification_saura", "what", "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sheal", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellHealInfo")));
|
D_METHOD("_notification_sheal", "what", "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellHealInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_scast", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_notification_scast", "what", "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sdamage", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo")));
|
D_METHOD("_notification_sdamage", "what", "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("notification_saura", "what", "data"), &EntityAI::notification_saura);
|
ClassDB::bind_method(D_METHOD("notification_saura", "what", "data"), &EntityAI::notification_saura);
|
||||||
ClassDB::bind_method(D_METHOD("notification_sheal", "what", "info"), &EntityAI::notification_sheal);
|
ClassDB::bind_method(D_METHOD("notification_sheal", "what", "info"), &EntityAI::notification_sheal);
|
||||||
@ -426,31 +426,31 @@ void EntityAI::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("notification_sentity_resource_added", "resource"), &EntityAI::notification_sentity_resource_added);
|
ClassDB::bind_method(D_METHOD("notification_sentity_resource_added", "resource"), &EntityAI::notification_sentity_resource_added);
|
||||||
ClassDB::bind_method(D_METHOD("notification_sentity_resource_removed", "resource"), &EntityAI::notification_sentity_resource_removed);
|
ClassDB::bind_method(D_METHOD("notification_sentity_resource_removed", "resource"), &EntityAI::notification_sentity_resource_removed);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sdeath", PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
D_METHOD("_notification_sdeath", "data", PROPERTY_HINT_RESOURCE_TYPE, "Entity");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_scooldown_added", PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("_notification_scooldown_added", "id", "value");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_scooldown_removed", PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("_notification_scooldown_removed", "id", "value");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_scategory_cooldown_added", PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("_notification_scategory_cooldown_added", "id", "value");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_scategory_cooldown_removed", PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("_notification_scategory_cooldown_removed", "id", "value");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sgcd_started", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::REAL, "gcd")));
|
D_METHOD("_notification_sgcd_started", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "gcd");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sgcd_finished", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
D_METHOD("_notification_sgcd_finished", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sxp_gained", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "value")));
|
D_METHOD("_notification_sxp_gained", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "value");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_slevel_up", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "value")));
|
D_METHOD("_notification_slevel_up", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "value");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sentity_resource_added", PropertyInfo(Variant::OBJECT, "resource", PROPERTY_HINT_RESOURCE_TYPE, "EntityResource")));
|
D_METHOD("_notification_sentity_resource_added", "resource", PROPERTY_HINT_RESOURCE_TYPE, "EntityResource");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sentity_resource_removed", PropertyInfo(Variant::OBJECT, "resource", PROPERTY_HINT_RESOURCE_TYPE, "EntityResource")));
|
D_METHOD("_notification_sentity_resource_removed", "resource", PROPERTY_HINT_RESOURCE_TYPE, "EntityResource");
|
||||||
|
|
||||||
//Equipment
|
//Equipment
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::BOOL, "ret"), "_equip_should_deny", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance")));
|
D_METHOD("_equip_should_deny", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "equip_slot", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_equip_son_success", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::OBJECT, "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::INT, "bag_slot")));
|
D_METHOD("_equip_son_success", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "equip_slot", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance", "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance", "bag_slot");
|
||||||
BIND_VMETHOD(MethodInfo("_equip_son_fail", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::OBJECT, "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::INT, "bag_slot")));
|
D_METHOD("_equip_son_fail", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "equip_slot", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance", "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance", "bag_slot");
|
||||||
BIND_VMETHOD(MethodInfo("_equip_con_success", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::OBJECT, "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::INT, "bag_slot")));
|
D_METHOD("_equip_con_success", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "equip_slot", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance", "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance", "bag_slot");
|
||||||
BIND_VMETHOD(MethodInfo("_equip_con_fail", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::OBJECT, "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::INT, "bag_slot")));
|
D_METHOD("_equip_con_fail", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "equip_slot", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance", "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance", "bag_slot");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("equip_should_deny", "entity", "equip_slot", "item"), &EntityAI::equip_should_deny_bind);
|
ClassDB::bind_method(D_METHOD("equip_should_deny", "entity", "equip_slot", "item"), &EntityAI::equip_should_deny_bind);
|
||||||
|
|
||||||
|
@ -447,8 +447,8 @@ void AuraData::_bind_methods() {
|
|||||||
ADD_PROPERTY(PropertyInfo(Variant::REAL, "slow"), "set_slow", "get_slow");
|
ADD_PROPERTY(PropertyInfo(Variant::REAL, "slow"), "set_slow", "get_slow");
|
||||||
|
|
||||||
//Serialization
|
//Serialization
|
||||||
BIND_VMETHOD(MethodInfo("_from_dict", PropertyInfo(Variant::DICTIONARY, "dict")));
|
D_METHOD("_from_dict", "dict");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::DICTIONARY, "dict"), "_to_dict"));
|
D_METHOD("_to_dict");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("from_dict", "dict"), &AuraData::from_dict);
|
ClassDB::bind_method(D_METHOD("from_dict", "dict"), &AuraData::from_dict);
|
||||||
ClassDB::bind_method(D_METHOD("to_dict"), &AuraData::to_dict);
|
ClassDB::bind_method(D_METHOD("to_dict"), &AuraData::to_dict);
|
||||||
@ -456,8 +456,8 @@ void AuraData::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("_to_dict"), &AuraData::_to_dict);
|
ClassDB::bind_method(D_METHOD("_to_dict"), &AuraData::_to_dict);
|
||||||
|
|
||||||
//Networking
|
//Networking
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::ARRAY, "arr"), "_to_send_array"));
|
D_METHOD("_to_send_array");
|
||||||
BIND_VMETHOD(MethodInfo("_from_send_array", PropertyInfo(Variant::ARRAY, "arr")));
|
D_METHOD("_from_send_array", "arr");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("to_send_array"), &AuraData::to_send_array);
|
ClassDB::bind_method(D_METHOD("to_send_array"), &AuraData::to_send_array);
|
||||||
ClassDB::bind_method(D_METHOD("from_send_array", "arr"), &AuraData::from_send_array);
|
ClassDB::bind_method(D_METHOD("from_send_array", "arr"), &AuraData::from_send_array);
|
||||||
|
@ -332,7 +332,7 @@ Ref<EntityAI> EntityClassData::_get_ai_instance() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Ref<EntityAI> ai;
|
Ref<EntityAI> ai;
|
||||||
ai.instance();
|
ai.instantiate();
|
||||||
return ai;
|
return ai;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -378,7 +378,7 @@ EntityClassData::~EntityClassData() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void EntityClassData::_bind_methods() {
|
void EntityClassData::_bind_methods() {
|
||||||
BIND_VMETHOD(MethodInfo("_setup_resources", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
D_METHOD("_setup_resources", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("get_id"), &EntityClassData::get_id);
|
ClassDB::bind_method(D_METHOD("get_id"), &EntityClassData::get_id);
|
||||||
ClassDB::bind_method(D_METHOD("set_id", "value"), &EntityClassData::set_id);
|
ClassDB::bind_method(D_METHOD("set_id", "value"), &EntityClassData::set_id);
|
||||||
@ -498,7 +498,7 @@ void EntityClassData::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("set_ais", "auras"), &EntityClassData::set_ais);
|
ClassDB::bind_method(D_METHOD("set_ais", "auras"), &EntityClassData::set_ais);
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "ais", PROPERTY_HINT_NONE, "17/17:EntityAI", PROPERTY_USAGE_DEFAULT, "EntityAI"), "set_ais", "get_ais");
|
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "ais", PROPERTY_HINT_NONE, "17/17:EntityAI", PROPERTY_USAGE_DEFAULT, "EntityAI"), "set_ais", "get_ais");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::OBJECT, "ret", PROPERTY_HINT_RESOURCE_TYPE, "EntityAI"), "_get_ai_instance"));
|
D_METHOD("_get_ai_instance");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("get_ai_instance"), &EntityClassData::get_ai_instance);
|
ClassDB::bind_method(D_METHOD("get_ai_instance"), &EntityClassData::get_ai_instance);
|
||||||
ClassDB::bind_method(D_METHOD("_get_ai_instance"), &EntityClassData::_get_ai_instance);
|
ClassDB::bind_method(D_METHOD("_get_ai_instance"), &EntityClassData::_get_ai_instance);
|
||||||
|
@ -140,7 +140,7 @@ Ref<EntityAI> EntityData::_get_ai_instance() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Ref<EntityAI> ai;
|
Ref<EntityAI> ai;
|
||||||
ai.instance();
|
ai.instantiate();
|
||||||
return ai;
|
return ai;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -265,8 +265,8 @@ void EntityData::_validate_property(PropertyInfo &property) const {
|
|||||||
|
|
||||||
void EntityData::_bind_methods() {
|
void EntityData::_bind_methods() {
|
||||||
//Interactions
|
//Interactions
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::BOOL, "can"), "_cans_interact", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
D_METHOD("_cans_interact", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity");
|
||||||
BIND_VMETHOD(MethodInfo("_sinteract", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
D_METHOD("_sinteract", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("cans_interact", "entity"), &EntityData::cans_interact_bind);
|
ClassDB::bind_method(D_METHOD("cans_interact", "entity"), &EntityData::cans_interact_bind);
|
||||||
ClassDB::bind_method(D_METHOD("sinteract", "entity"), &EntityData::sinteract_bind);
|
ClassDB::bind_method(D_METHOD("sinteract", "entity"), &EntityData::sinteract_bind);
|
||||||
@ -314,7 +314,7 @@ void EntityData::_bind_methods() {
|
|||||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "species_instance", PROPERTY_HINT_RESOURCE_TYPE, "SpeciesInstance"), "set_species_instance", "get_species_instance");
|
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "species_instance", PROPERTY_HINT_RESOURCE_TYPE, "SpeciesInstance"), "set_species_instance", "get_species_instance");
|
||||||
|
|
||||||
//AI
|
//AI
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::OBJECT, "ret", PROPERTY_HINT_RESOURCE_TYPE, "EntityAI"), "_get_ai_instance"));
|
D_METHOD("_get_ai_instance");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("get_ai"), &EntityData::get_ai);
|
ClassDB::bind_method(D_METHOD("get_ai"), &EntityData::get_ai);
|
||||||
ClassDB::bind_method(D_METHOD("set_ai", "value"), &EntityData::set_ai);
|
ClassDB::bind_method(D_METHOD("set_ai", "value"), &EntityData::set_ai);
|
||||||
@ -329,7 +329,7 @@ void EntityData::_bind_methods() {
|
|||||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "loot_db", PROPERTY_HINT_RESOURCE_TYPE, "LootDataBase"), "set_loot_db", "get_loot_db");
|
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "loot_db", PROPERTY_HINT_RESOURCE_TYPE, "LootDataBase"), "set_loot_db", "get_loot_db");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("generate_name"), &EntityData::generate_name);
|
ClassDB::bind_method(D_METHOD("generate_name"), &EntityData::generate_name);
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::STRING, "name"), "_generate_name"));
|
D_METHOD("_generate_name");
|
||||||
|
|
||||||
ADD_GROUP("Immunities", "immunity");
|
ADD_GROUP("Immunities", "immunity");
|
||||||
ClassDB::bind_method(D_METHOD("get_immunity_flags"), &EntityData::get_immunity_flags);
|
ClassDB::bind_method(D_METHOD("get_immunity_flags"), &EntityData::get_immunity_flags);
|
||||||
|
@ -53,8 +53,8 @@ EntityDataContainer::~EntityDataContainer() {
|
|||||||
|
|
||||||
void EntityDataContainer::_bind_methods() {
|
void EntityDataContainer::_bind_methods() {
|
||||||
//Serialization
|
//Serialization
|
||||||
BIND_VMETHOD(MethodInfo("_from_dict", PropertyInfo(Variant::DICTIONARY, "dict")));
|
D_METHOD("from_dict", "dict");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::DICTIONARY, "dict"), "_to_dict"));
|
D_METHOD("to_dict", "dict");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("from_dict", "dict"), &EntityDataContainer::from_dict);
|
ClassDB::bind_method(D_METHOD("from_dict", "dict"), &EntityDataContainer::from_dict);
|
||||||
ClassDB::bind_method(D_METHOD("to_dict"), &EntityDataContainer::to_dict);
|
ClassDB::bind_method(D_METHOD("to_dict"), &EntityDataContainer::to_dict);
|
||||||
|
@ -209,7 +209,7 @@ void Entity::instance_body(const Ref<EntityData> &data, const int model_index) {
|
|||||||
data->get_entity_species_data()->get_model_data_count() > model_index &&
|
data->get_entity_species_data()->get_model_data_count() > model_index &&
|
||||||
data->get_entity_species_data()->get_model_data(model_index).is_valid() &&
|
data->get_entity_species_data()->get_model_data(model_index).is_valid() &&
|
||||||
data->get_entity_species_data()->get_model_data(model_index)->get_body().is_valid()) {
|
data->get_entity_species_data()->get_model_data(model_index)->get_body().is_valid()) {
|
||||||
Node *node = data->get_entity_species_data()->get_model_data(model_index)->get_body()->instance();
|
Node *node = data->get_entity_species_data()->get_model_data(model_index)->get_body()->instantiate();
|
||||||
|
|
||||||
add_child(node);
|
add_child(node);
|
||||||
set_body(node);
|
set_body(node);
|
||||||
@ -269,7 +269,7 @@ void Entity::setc_guid(int value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Transforms
|
//Transforms
|
||||||
Transform Entity::get_transform_3d(bool only_stored) const {
|
Transform3D Entity::get_transform_3d(bool only_stored) const {
|
||||||
if (!only_stored && _body_3d) {
|
if (!only_stored && _body_3d) {
|
||||||
ERR_FAIL_COND_V(!INSTANCE_VALIDATE(_body_3d), _transform);
|
ERR_FAIL_COND_V(!INSTANCE_VALIDATE(_body_3d), _transform);
|
||||||
|
|
||||||
@ -278,7 +278,7 @@ Transform Entity::get_transform_3d(bool only_stored) const {
|
|||||||
|
|
||||||
return _transform;
|
return _transform;
|
||||||
}
|
}
|
||||||
void Entity::set_transform_3d(const Transform &transform, bool only_stored) {
|
void Entity::set_transform_3d(const Transform3D &transform, bool only_stored) {
|
||||||
if (!only_stored && _body_3d) {
|
if (!only_stored && _body_3d) {
|
||||||
ERR_FAIL_COND(!INSTANCE_VALIDATE(_body_3d));
|
ERR_FAIL_COND(!INSTANCE_VALIDATE(_body_3d));
|
||||||
|
|
||||||
@ -865,7 +865,7 @@ void Entity::setup_actionbars() {
|
|||||||
|
|
||||||
if (!gets_bag().is_valid()) {
|
if (!gets_bag().is_valid()) {
|
||||||
Ref<Bag> bag;
|
Ref<Bag> bag;
|
||||||
bag.instance();
|
bag.instantiate();
|
||||||
|
|
||||||
bag->set_size(gets_entity_data()->get_bag_size());
|
bag->set_size(gets_entity_data()->get_bag_size());
|
||||||
|
|
||||||
@ -1005,7 +1005,7 @@ void Entity::pet_removes_index(int index) {
|
|||||||
|
|
||||||
Entity *entity = _s_pets.get(index);
|
Entity *entity = _s_pets.get(index);
|
||||||
|
|
||||||
_s_pets.remove(index);
|
_s_pets.remove_at(index);
|
||||||
|
|
||||||
sees_removes(entity);
|
sees_removes(entity);
|
||||||
|
|
||||||
@ -1079,7 +1079,7 @@ void Entity::pet_removec_index(int index) {
|
|||||||
|
|
||||||
//Entity *entity = _c_pets.get(index);
|
//Entity *entity = _c_pets.get(index);
|
||||||
|
|
||||||
_c_pets.remove(index);
|
_c_pets.remove_at(index);
|
||||||
|
|
||||||
//#if VERSION_MAJOR < 4
|
//#if VERSION_MAJOR < 4
|
||||||
//ERR_FAIL_COND(!ObjectDB::instance_validate(entity));
|
//ERR_FAIL_COND(!ObjectDB::instance_validate(entity));
|
||||||
@ -1438,7 +1438,7 @@ void Entity::_from_dict(const Dictionary &dict) {
|
|||||||
Ref<ItemInstance> ii = _s_equipment[i];
|
Ref<ItemInstance> ii = _s_equipment[i];
|
||||||
|
|
||||||
if (!ii.is_valid()) {
|
if (!ii.is_valid()) {
|
||||||
ii.instance();
|
ii.instantiate();
|
||||||
}
|
}
|
||||||
|
|
||||||
ii->from_dict(equipment[String::num(i)]);
|
ii->from_dict(equipment[String::num(i)]);
|
||||||
@ -1510,7 +1510,7 @@ void Entity::_from_dict(const Dictionary &dict) {
|
|||||||
|
|
||||||
for (int i = 0; i < auras.size(); ++i) {
|
for (int i = 0; i < auras.size(); ++i) {
|
||||||
Ref<AuraData> r;
|
Ref<AuraData> r;
|
||||||
r.instance();
|
r.instantiate();
|
||||||
|
|
||||||
r->from_dict(auras.get(String::num(i), Dictionary()));
|
r->from_dict(auras.get(String::num(i), Dictionary()));
|
||||||
r->set_owner(this);
|
r->set_owner(this);
|
||||||
@ -1646,7 +1646,7 @@ void Entity::_from_dict(const Dictionary &dict) {
|
|||||||
|
|
||||||
for (int i = 0; i < skills.size(); ++i) {
|
for (int i = 0; i < skills.size(); ++i) {
|
||||||
Ref<EntitySkill> r;
|
Ref<EntitySkill> r;
|
||||||
r.instance();
|
r.instantiate();
|
||||||
|
|
||||||
r->from_dict(skills.get(String::num(i), Dictionary()));
|
r->from_dict(skills.get(String::num(i), Dictionary()));
|
||||||
|
|
||||||
@ -1665,7 +1665,7 @@ void Entity::_from_dict(const Dictionary &dict) {
|
|||||||
#endif
|
#endif
|
||||||
if (!_s_bag.is_valid()) {
|
if (!_s_bag.is_valid()) {
|
||||||
Ref<Bag> bag;
|
Ref<Bag> bag;
|
||||||
bag.instance();
|
bag.instantiate();
|
||||||
|
|
||||||
bag->from_dict(bagd);
|
bag->from_dict(bagd);
|
||||||
|
|
||||||
@ -1681,7 +1681,7 @@ void Entity::_from_dict(const Dictionary &dict) {
|
|||||||
|
|
||||||
if (dict.has("actionbar_profile")) {
|
if (dict.has("actionbar_profile")) {
|
||||||
if (!_action_bar_profile.is_valid())
|
if (!_action_bar_profile.is_valid())
|
||||||
_action_bar_profile.instance();
|
_action_bar_profile.instantiate();
|
||||||
|
|
||||||
_action_bar_profile->from_dict(dict.get("actionbar_profile", Dictionary()));
|
_action_bar_profile->from_dict(dict.get("actionbar_profile", Dictionary()));
|
||||||
}
|
}
|
||||||
@ -2522,7 +2522,7 @@ void Entity::resource_removes(int index) {
|
|||||||
ERR_FAIL_INDEX(index, _s_resources.size());
|
ERR_FAIL_INDEX(index, _s_resources.size());
|
||||||
|
|
||||||
Ref<EntityResource> res = _s_resources.get(index);
|
Ref<EntityResource> res = _s_resources.get(index);
|
||||||
_s_resources.remove(index);
|
_s_resources.remove_at(index);
|
||||||
|
|
||||||
notification_sentity_resource_removed(res);
|
notification_sentity_resource_removed(res);
|
||||||
|
|
||||||
@ -2544,7 +2544,7 @@ void Entity::resource_addc_rpc(int index, String data) {
|
|||||||
res = Ref<EntityResource>(Object::cast_to<EntityResource>(ClassDB::instance(clsname)));
|
res = Ref<EntityResource>(Object::cast_to<EntityResource>(ClassDB::instance(clsname)));
|
||||||
|
|
||||||
ERR_FAIL_COND(!res.is_valid());
|
ERR_FAIL_COND(!res.is_valid());
|
||||||
//res.instance();
|
//res.instantiate();
|
||||||
|
|
||||||
String script_path = dict.get("script", "");
|
String script_path = dict.get("script", "");
|
||||||
|
|
||||||
@ -2617,7 +2617,7 @@ void Entity::resource_removec(int index) {
|
|||||||
ERR_FAIL_INDEX(index, _c_resources.size());
|
ERR_FAIL_INDEX(index, _c_resources.size());
|
||||||
|
|
||||||
Ref<EntityResource> res = _c_resources.get(index);
|
Ref<EntityResource> res = _c_resources.get(index);
|
||||||
_c_resources.remove(index);
|
_c_resources.remove_at(index);
|
||||||
|
|
||||||
notification_centity_resource_removed(res);
|
notification_centity_resource_removed(res);
|
||||||
}
|
}
|
||||||
@ -2826,7 +2826,7 @@ void Entity::sdeal_heal_to(Ref<SpellHealInfo> info) {
|
|||||||
//Damage, Heal RPCs
|
//Damage, Heal RPCs
|
||||||
void Entity::cdamage_dealt_rpc(String data) {
|
void Entity::cdamage_dealt_rpc(String data) {
|
||||||
Ref<SpellDamageInfo> info;
|
Ref<SpellDamageInfo> info;
|
||||||
info.instance();
|
info.instantiate();
|
||||||
info->from_dict(data_as_dict(data));
|
info->from_dict(data_as_dict(data));
|
||||||
info->resolve_references(this);
|
info->resolve_references(this);
|
||||||
|
|
||||||
@ -2834,7 +2834,7 @@ void Entity::cdamage_dealt_rpc(String data) {
|
|||||||
}
|
}
|
||||||
void Entity::cdealt_damage_rpc(String data) {
|
void Entity::cdealt_damage_rpc(String data) {
|
||||||
Ref<SpellDamageInfo> info;
|
Ref<SpellDamageInfo> info;
|
||||||
info.instance();
|
info.instantiate();
|
||||||
info->from_dict(data_as_dict(data));
|
info->from_dict(data_as_dict(data));
|
||||||
info->resolve_references(this);
|
info->resolve_references(this);
|
||||||
|
|
||||||
@ -2842,7 +2842,7 @@ void Entity::cdealt_damage_rpc(String data) {
|
|||||||
}
|
}
|
||||||
void Entity::cheal_dealt_rpc(String data) {
|
void Entity::cheal_dealt_rpc(String data) {
|
||||||
Ref<SpellHealInfo> info;
|
Ref<SpellHealInfo> info;
|
||||||
info.instance();
|
info.instantiate();
|
||||||
info->from_dict(data_as_dict(data));
|
info->from_dict(data_as_dict(data));
|
||||||
info->resolve_references(this);
|
info->resolve_references(this);
|
||||||
|
|
||||||
@ -2850,7 +2850,7 @@ void Entity::cheal_dealt_rpc(String data) {
|
|||||||
}
|
}
|
||||||
void Entity::cdealt_heal_rpc(String data) {
|
void Entity::cdealt_heal_rpc(String data) {
|
||||||
Ref<SpellHealInfo> info;
|
Ref<SpellHealInfo> info;
|
||||||
info.instance();
|
info.instantiate();
|
||||||
info->from_dict(data_as_dict(data));
|
info->from_dict(data_as_dict(data));
|
||||||
info->resolve_references(this);
|
info->resolve_references(this);
|
||||||
|
|
||||||
@ -3069,7 +3069,7 @@ void Entity::_item_uses(int item_id) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
Ref<SpellCastInfo> info;
|
Ref<SpellCastInfo> info;
|
||||||
info.instance();
|
info.instantiate();
|
||||||
|
|
||||||
info->caster_set(this);
|
info->caster_set(this);
|
||||||
info->target_set(gets_target());
|
info->target_set(gets_target());
|
||||||
@ -3088,7 +3088,7 @@ void Entity::_item_uses(int item_id) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
Ref<SpellCastInfo> info;
|
Ref<SpellCastInfo> info;
|
||||||
info.instance();
|
info.instantiate();
|
||||||
|
|
||||||
info->caster_set(this);
|
info->caster_set(this);
|
||||||
info->target_set(gets_target());
|
info->target_set(gets_target());
|
||||||
@ -3406,7 +3406,7 @@ void Entity::aura_refresheds(Ref<AuraData> aura) {
|
|||||||
|
|
||||||
void Entity::aura_addc_rpc(String data) {
|
void Entity::aura_addc_rpc(String data) {
|
||||||
Ref<AuraData> aura;
|
Ref<AuraData> aura;
|
||||||
aura.instance();
|
aura.instantiate();
|
||||||
aura->from_dict(data_as_dict(data));
|
aura->from_dict(data_as_dict(data));
|
||||||
aura->set_owner(this);
|
aura->set_owner(this);
|
||||||
aura->resolve_references(this);
|
aura->resolve_references(this);
|
||||||
@ -3416,7 +3416,7 @@ void Entity::aura_addc_rpc(String data) {
|
|||||||
|
|
||||||
void Entity::aura_removec_rpc(String data) {
|
void Entity::aura_removec_rpc(String data) {
|
||||||
Ref<AuraData> aura;
|
Ref<AuraData> aura;
|
||||||
aura.instance();
|
aura.instantiate();
|
||||||
aura->from_dict(data_as_dict(data));
|
aura->from_dict(data_as_dict(data));
|
||||||
aura->set_owner(this);
|
aura->set_owner(this);
|
||||||
aura->resolve_references(this);
|
aura->resolve_references(this);
|
||||||
@ -3426,7 +3426,7 @@ void Entity::aura_removec_rpc(String data) {
|
|||||||
|
|
||||||
void Entity::aura_removec_exact_rpc(String data) {
|
void Entity::aura_removec_exact_rpc(String data) {
|
||||||
Ref<AuraData> aura;
|
Ref<AuraData> aura;
|
||||||
aura.instance();
|
aura.instantiate();
|
||||||
aura->from_dict(data_as_dict(data));
|
aura->from_dict(data_as_dict(data));
|
||||||
aura->set_owner(this);
|
aura->set_owner(this);
|
||||||
aura->resolve_references(this);
|
aura->resolve_references(this);
|
||||||
@ -3436,7 +3436,7 @@ void Entity::aura_removec_exact_rpc(String data) {
|
|||||||
|
|
||||||
void Entity::aura_removec_expired_rpc(String data) {
|
void Entity::aura_removec_expired_rpc(String data) {
|
||||||
Ref<AuraData> aura;
|
Ref<AuraData> aura;
|
||||||
aura.instance();
|
aura.instantiate();
|
||||||
aura->from_dict(data_as_dict(data));
|
aura->from_dict(data_as_dict(data));
|
||||||
aura->set_owner(this);
|
aura->set_owner(this);
|
||||||
aura->resolve_references(this);
|
aura->resolve_references(this);
|
||||||
@ -3446,7 +3446,7 @@ void Entity::aura_removec_expired_rpc(String data) {
|
|||||||
|
|
||||||
void Entity::aura_removec_dispelled_rpc(String data) {
|
void Entity::aura_removec_dispelled_rpc(String data) {
|
||||||
Ref<AuraData> aura;
|
Ref<AuraData> aura;
|
||||||
aura.instance();
|
aura.instantiate();
|
||||||
aura->from_dict(data_as_dict(data));
|
aura->from_dict(data_as_dict(data));
|
||||||
aura->set_owner(this);
|
aura->set_owner(this);
|
||||||
aura->resolve_references(this);
|
aura->resolve_references(this);
|
||||||
@ -3456,7 +3456,7 @@ void Entity::aura_removec_dispelled_rpc(String data) {
|
|||||||
|
|
||||||
void Entity::aura_refreshedc_rpc(String data) {
|
void Entity::aura_refreshedc_rpc(String data) {
|
||||||
Ref<AuraData> aura;
|
Ref<AuraData> aura;
|
||||||
aura.instance();
|
aura.instantiate();
|
||||||
aura->from_dict(data_as_dict(data));
|
aura->from_dict(data_as_dict(data));
|
||||||
aura->set_owner(this);
|
aura->set_owner(this);
|
||||||
aura->resolve_references(this);
|
aura->resolve_references(this);
|
||||||
@ -3799,7 +3799,7 @@ void Entity::cast_interrupts() {
|
|||||||
|
|
||||||
void Entity::cast_startc_rpc(String data) {
|
void Entity::cast_startc_rpc(String data) {
|
||||||
Ref<SpellCastInfo> info;
|
Ref<SpellCastInfo> info;
|
||||||
info.instance();
|
info.instantiate();
|
||||||
info->from_dict(data_as_dict(data));
|
info->from_dict(data_as_dict(data));
|
||||||
info->resolve_references(this);
|
info->resolve_references(this);
|
||||||
|
|
||||||
@ -3844,7 +3844,7 @@ void Entity::cast_spell_successs(Ref<SpellCastInfo> info) {
|
|||||||
|
|
||||||
void Entity::cast_spell_successc_rpc(String data) {
|
void Entity::cast_spell_successc_rpc(String data) {
|
||||||
Ref<SpellCastInfo> info;
|
Ref<SpellCastInfo> info;
|
||||||
info.instance();
|
info.instantiate();
|
||||||
info->from_dict(data_as_dict(data));
|
info->from_dict(data_as_dict(data));
|
||||||
info->resolve_references(this);
|
info->resolve_references(this);
|
||||||
|
|
||||||
@ -4489,7 +4489,7 @@ void Entity::skill_addc_id(int skill_id, int value, int max_value) {
|
|||||||
ERR_FAIL_COND(skill_hasc_id(skill_id));
|
ERR_FAIL_COND(skill_hasc_id(skill_id));
|
||||||
|
|
||||||
Ref<EntitySkill> skill;
|
Ref<EntitySkill> skill;
|
||||||
skill.instance();
|
skill.instantiate();
|
||||||
|
|
||||||
skill->set_skill_id(skill_id);
|
skill->set_skill_id(skill_id);
|
||||||
skill->set_current(value);
|
skill->set_current(value);
|
||||||
@ -4796,7 +4796,7 @@ void Entity::_class_talent_sreceive_learn_request(int spec_index, int class_tale
|
|||||||
}
|
}
|
||||||
|
|
||||||
Ref<AuraApplyInfo> info;
|
Ref<AuraApplyInfo> info;
|
||||||
info.instance();
|
info.instantiate();
|
||||||
|
|
||||||
info->caster_set(this);
|
info->caster_set(this);
|
||||||
info->target_set(this);
|
info->target_set(this);
|
||||||
@ -5043,7 +5043,7 @@ void Entity::_character_talent_sreceive_learn_request(int spec_index, int charac
|
|||||||
}
|
}
|
||||||
|
|
||||||
Ref<AuraApplyInfo> info;
|
Ref<AuraApplyInfo> info;
|
||||||
info.instance();
|
info.instantiate();
|
||||||
|
|
||||||
info->caster_set(this);
|
info->caster_set(this);
|
||||||
info->target_set(this);
|
info->target_set(this);
|
||||||
@ -5296,14 +5296,14 @@ void Entity::setc_target_bag(const Ref<Bag> bag) {
|
|||||||
|
|
||||||
void Entity::setc_bag_rpc(String data) {
|
void Entity::setc_bag_rpc(String data) {
|
||||||
Ref<Bag> bag;
|
Ref<Bag> bag;
|
||||||
bag.instance();
|
bag.instantiate();
|
||||||
bag->from_dict(data_as_dict(data));
|
bag->from_dict(data_as_dict(data));
|
||||||
|
|
||||||
setc_bag(bag);
|
setc_bag(bag);
|
||||||
}
|
}
|
||||||
void Entity::setc_target_bag_rpc(String data) {
|
void Entity::setc_target_bag_rpc(String data) {
|
||||||
Ref<Bag> bag;
|
Ref<Bag> bag;
|
||||||
bag.instance();
|
bag.instantiate();
|
||||||
bag->from_dict(data_as_dict(data));
|
bag->from_dict(data_as_dict(data));
|
||||||
|
|
||||||
setc_target_bag(bag);
|
setc_target_bag(bag);
|
||||||
@ -5334,7 +5334,7 @@ void Entity::notification_item_sadded(Ref<Bag> bag, Ref<ItemInstance> item, int
|
|||||||
}
|
}
|
||||||
void Entity::item_addc_rpc(int slot_id, String item_data) {
|
void Entity::item_addc_rpc(int slot_id, String item_data) {
|
||||||
Ref<ItemInstance> ii;
|
Ref<ItemInstance> ii;
|
||||||
ii.instance();
|
ii.instantiate();
|
||||||
ii->from_dict(data_as_dict(item_data));
|
ii->from_dict(data_as_dict(item_data));
|
||||||
|
|
||||||
item_addc(slot_id, ii);
|
item_addc(slot_id, ii);
|
||||||
@ -5405,7 +5405,7 @@ void Entity::notification_target_item_sadded(Ref<Bag> bag, Ref<ItemInstance> ite
|
|||||||
}
|
}
|
||||||
void Entity::target_item_addc_rpc(int slot_id, String item_data) {
|
void Entity::target_item_addc_rpc(int slot_id, String item_data) {
|
||||||
Ref<ItemInstance> ii;
|
Ref<ItemInstance> ii;
|
||||||
ii.instance();
|
ii.instantiate();
|
||||||
ii->from_dict(data_as_dict(item_data));
|
ii->from_dict(data_as_dict(item_data));
|
||||||
|
|
||||||
target_item_addc(slot_id, ii);
|
target_item_addc(slot_id, ii);
|
||||||
@ -5490,7 +5490,7 @@ void Entity::data_adds(Ref<EntityDataContainer> data) {
|
|||||||
void Entity::data_removes(int index) {
|
void Entity::data_removes(int index) {
|
||||||
ERR_FAIL_INDEX(index, _s_data.size());
|
ERR_FAIL_INDEX(index, _s_data.size());
|
||||||
|
|
||||||
_s_data.remove(index);
|
_s_data.remove_at(index);
|
||||||
}
|
}
|
||||||
Ref<EntityDataContainer> Entity::data_gets(int index) {
|
Ref<EntityDataContainer> Entity::data_gets(int index) {
|
||||||
ERR_FAIL_INDEX_V(index, _s_data.size(), Ref<EntityDataContainer>());
|
ERR_FAIL_INDEX_V(index, _s_data.size(), Ref<EntityDataContainer>());
|
||||||
@ -5507,7 +5507,7 @@ void Entity::data_addc(Ref<EntityDataContainer> data) {
|
|||||||
void Entity::data_removec(int index) {
|
void Entity::data_removec(int index) {
|
||||||
ERR_FAIL_INDEX(index, _c_data.size());
|
ERR_FAIL_INDEX(index, _c_data.size());
|
||||||
|
|
||||||
_c_data.remove(index);
|
_c_data.remove_at(index);
|
||||||
}
|
}
|
||||||
Ref<EntityDataContainer> Entity::data_getc(int index) {
|
Ref<EntityDataContainer> Entity::data_getc(int index) {
|
||||||
ERR_FAIL_INDEX_V(index, _c_data.size(), Ref<EntityDataContainer>());
|
ERR_FAIL_INDEX_V(index, _c_data.size(), Ref<EntityDataContainer>());
|
||||||
@ -5538,7 +5538,7 @@ Ref<ActionBarProfile> Entity::get_action_bar_profile() {
|
|||||||
if (_action_bar_profile.is_valid())
|
if (_action_bar_profile.is_valid())
|
||||||
return _action_bar_profile;
|
return _action_bar_profile;
|
||||||
|
|
||||||
_action_bar_profile.instance();
|
_action_bar_profile.instantiate();
|
||||||
|
|
||||||
Ref<ClassProfile> cp = ProfileManager::get_singleton()->getc_player_profile()->get_class_profile(gets_entity_data()->get_path());
|
Ref<ClassProfile> cp = ProfileManager::get_singleton()->getc_player_profile()->get_class_profile(gets_entity_data()->get_path());
|
||||||
|
|
||||||
@ -5691,13 +5691,13 @@ void Entity::sees_removes_index(int index) {
|
|||||||
Entity *e = _s_sees.get(index);
|
Entity *e = _s_sees.get(index);
|
||||||
|
|
||||||
if (unlikely(!INSTANCE_VALIDATE(e))) {
|
if (unlikely(!INSTANCE_VALIDATE(e))) {
|
||||||
_s_sees.remove(index);
|
_s_sees.remove_at(index);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
e->seen_by_removes(this);
|
e->seen_by_removes(this);
|
||||||
|
|
||||||
_s_sees.remove(index);
|
_s_sees.remove_at(index);
|
||||||
}
|
}
|
||||||
void Entity::sees_removes(Entity *entity) {
|
void Entity::sees_removes(Entity *entity) {
|
||||||
if (unlikely(!INSTANCE_VALIDATE(entity))) {
|
if (unlikely(!INSTANCE_VALIDATE(entity))) {
|
||||||
@ -5745,7 +5745,7 @@ Entity *Entity::seen_by_gets(int index) {
|
|||||||
return _s_seen_by.get(index);
|
return _s_seen_by.get(index);
|
||||||
}
|
}
|
||||||
void Entity::seen_by_removes_index(int index) {
|
void Entity::seen_by_removes_index(int index) {
|
||||||
_s_seen_by.remove(index);
|
_s_seen_by.remove_at(index);
|
||||||
}
|
}
|
||||||
void Entity::seen_by_removes(Entity *entity) {
|
void Entity::seen_by_removes(Entity *entity) {
|
||||||
_s_seen_by.erase(entity);
|
_s_seen_by.erase(entity);
|
||||||
@ -5971,7 +5971,7 @@ Entity::Entity() {
|
|||||||
_s_free_spell_points = 0;
|
_s_free_spell_points = 0;
|
||||||
_c_free_spell_points = 0;
|
_c_free_spell_points = 0;
|
||||||
|
|
||||||
//_action_bar_profile.instance();
|
//_action_bar_profile.instantiate();
|
||||||
_actionbar_locked = false;
|
_actionbar_locked = false;
|
||||||
|
|
||||||
_stats.resize(ESS::get_singleton()->stat_get_count());
|
_stats.resize(ESS::get_singleton()->stat_get_count());
|
||||||
@ -6781,8 +6781,8 @@ void Entity::_bind_methods() {
|
|||||||
ADD_SIGNAL(MethodInfo("onc_open_winow_request", PropertyInfo(Variant::INT, "window_id")));
|
ADD_SIGNAL(MethodInfo("onc_open_winow_request", PropertyInfo(Variant::INT, "window_id")));
|
||||||
|
|
||||||
//setup
|
//setup
|
||||||
BIND_VMETHOD(MethodInfo("_setup"));
|
D_METHOD("_setup");
|
||||||
BIND_VMETHOD(MethodInfo("_initialize"));
|
D_METHOD("_initialize");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("_initialize"), &Entity::_initialize);
|
ClassDB::bind_method(D_METHOD("_initialize"), &Entity::_initialize);
|
||||||
ClassDB::bind_method(D_METHOD("setup", "info"), &Entity::setup);
|
ClassDB::bind_method(D_METHOD("setup", "info"), &Entity::setup);
|
||||||
@ -6829,19 +6829,19 @@ void Entity::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("notification_cstat_changed", "stat"), &Entity::notification_cstat_changed);
|
ClassDB::bind_method(D_METHOD("notification_cstat_changed", "stat"), &Entity::notification_cstat_changed);
|
||||||
|
|
||||||
//EventHandlers
|
//EventHandlers
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sdeath"));
|
D_METHOD("_notification_sdeath");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sgcd_started", PropertyInfo(Variant::REAL, "gcd")));
|
D_METHOD("_notification_sgcd_started", "gcd");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sgcd_finished"));
|
D_METHOD("_notification_sgcd_finished");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sxp_gained", PropertyInfo(Variant::INT, "value")));
|
D_METHOD("_notification_sxp_gained", "value");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_slevel_up", PropertyInfo(Variant::INT, "value")));
|
D_METHOD("_notification_slevel_up", "value");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sentity_resource_added", PropertyInfo(Variant::OBJECT, "resource", PROPERTY_HINT_RESOURCE_TYPE, "EntityResource")));
|
D_METHOD("_notification_sentity_resource_added", "resource", PROPERTY_HINT_RESOURCE_TYPE, "EntityResource");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sentity_resource_removed", PropertyInfo(Variant::OBJECT, "resource", PROPERTY_HINT_RESOURCE_TYPE, "EntityResource")));
|
D_METHOD("_notification_sentity_resource_removed", "resource", PROPERTY_HINT_RESOURCE_TYPE, "EntityResource");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_son_target_changed", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::OBJECT, "old_target", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
D_METHOD("_son_target_changed", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "old_target", PROPERTY_HINT_RESOURCE_TYPE, "Entity");
|
||||||
BIND_VMETHOD(MethodInfo("_con_target_changed", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::OBJECT, "old_target", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
D_METHOD("_con_target_changed", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "old_target", PROPERTY_HINT_RESOURCE_TYPE, "Entity");
|
||||||
|
|
||||||
//Serverside
|
//Serverside
|
||||||
ADD_SIGNAL(MethodInfo("notification_sdamage", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo")));
|
ADD_SIGNAL(MethodInfo("notification_sdamage", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo")));
|
||||||
@ -6849,10 +6849,10 @@ void Entity::_bind_methods() {
|
|||||||
ADD_SIGNAL(MethodInfo("notification_scast", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "spell_cast_info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
ADD_SIGNAL(MethodInfo("notification_scast", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "spell_cast_info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
||||||
ADD_SIGNAL(MethodInfo("notification_saura", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "aura_data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
ADD_SIGNAL(MethodInfo("notification_saura", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "aura_data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_saura", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_notification_saura", "what", "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sheal", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellHealInfo")));
|
D_METHOD("_notification_sheal", "what", "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellHealInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_scast", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_notification_scast", "what", "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sdamage", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo")));
|
D_METHOD("_notification_sdamage", "what", "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("notification_saura", "what", "data"), &Entity::notification_saura);
|
ClassDB::bind_method(D_METHOD("notification_saura", "what", "data"), &Entity::notification_saura);
|
||||||
ClassDB::bind_method(D_METHOD("notification_sheal", "what", "info"), &Entity::notification_sheal);
|
ClassDB::bind_method(D_METHOD("notification_sheal", "what", "info"), &Entity::notification_sheal);
|
||||||
@ -6865,10 +6865,10 @@ void Entity::_bind_methods() {
|
|||||||
ADD_SIGNAL(MethodInfo("notification_ccast", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "spell_cast_info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
ADD_SIGNAL(MethodInfo("notification_ccast", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "spell_cast_info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
||||||
ADD_SIGNAL(MethodInfo("notification_caura", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "aura_data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
ADD_SIGNAL(MethodInfo("notification_caura", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "aura_data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_caura", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData")));
|
D_METHOD("_notification_caura", "what", "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_cheal", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellHealInfo")));
|
D_METHOD("_notification_cheal", "what", "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellHealInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_ccast", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo")));
|
D_METHOD("_notification_ccast", "what", "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_cdamage", PropertyInfo(Variant::INT, "what"), PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo")));
|
D_METHOD("_notification_cdamage", "what", "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("notification_caura", "what", "data"), &Entity::notification_caura);
|
ClassDB::bind_method(D_METHOD("notification_caura", "what", "data"), &Entity::notification_caura);
|
||||||
ClassDB::bind_method(D_METHOD("notification_cheal", "what", "info"), &Entity::notification_cheal);
|
ClassDB::bind_method(D_METHOD("notification_cheal", "what", "info"), &Entity::notification_cheal);
|
||||||
@ -6893,8 +6893,8 @@ void Entity::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("setc_free_class_talent_points", "value"), &Entity::setc_free_class_talent_points);
|
ClassDB::bind_method(D_METHOD("setc_free_class_talent_points", "value"), &Entity::setc_free_class_talent_points);
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "cfree_class_talent_points", PROPERTY_HINT_NONE, "", 0), "setc_free_class_talent_points", "getc_free_class_talent_points");
|
ADD_PROPERTY(PropertyInfo(Variant::INT, "cfree_class_talent_points", PROPERTY_HINT_NONE, "", 0), "setc_free_class_talent_points", "getc_free_class_talent_points");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_class_talent_sreceive_learn_request", PropertyInfo(Variant::INT, "spec_index"), PropertyInfo(Variant::INT, "class_talent_row"), PropertyInfo(Variant::INT, "class_talent_culomn")));
|
D_METHOD("_class_talent_sreceive_learn_request", "spec_index", "class_talent_row", "class_talent_culomn");
|
||||||
BIND_VMETHOD(MethodInfo("_class_talent_sreceive_reset_request"));
|
D_METHOD("_class_talent_sreceive_reset_request");
|
||||||
|
|
||||||
ADD_SIGNAL(MethodInfo("sclass_talent_learned", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "class_talent_id")));
|
ADD_SIGNAL(MethodInfo("sclass_talent_learned", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "class_talent_id")));
|
||||||
ADD_SIGNAL(MethodInfo("cclass_talent_learned", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "class_talent_id")));
|
ADD_SIGNAL(MethodInfo("cclass_talent_learned", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "class_talent_id")));
|
||||||
@ -6902,11 +6902,11 @@ void Entity::_bind_methods() {
|
|||||||
ADD_SIGNAL(MethodInfo("sclass_talent_reset", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
ADD_SIGNAL(MethodInfo("sclass_talent_reset", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
||||||
ADD_SIGNAL(MethodInfo("cclass_talent_reset", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
ADD_SIGNAL(MethodInfo("cclass_talent_reset", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_son_class_talent_learned", PropertyInfo(Variant::INT, "class_talent_id")));
|
D_METHOD("_son_class_talent_learned", "class_talent_id");
|
||||||
BIND_VMETHOD(MethodInfo("_con_class_talent_learned", PropertyInfo(Variant::INT, "class_talent_id")));
|
D_METHOD("_con_class_talent_learned", "class_talent_id");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_son_class_talent_reset"));
|
D_METHOD("_son_class_talent_reset");
|
||||||
BIND_VMETHOD(MethodInfo("_con_class_talent_reset"));
|
D_METHOD("_con_class_talent_reset");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("class_talent_crequest_learn", "spec_index", "class_talent_row", "class_talent_culomn"), &Entity::class_talent_crequest_learn);
|
ClassDB::bind_method(D_METHOD("class_talent_crequest_learn", "spec_index", "class_talent_row", "class_talent_culomn"), &Entity::class_talent_crequest_learn);
|
||||||
ClassDB::bind_method(D_METHOD("class_talent_sreceive_learn_request", "spec_index", "class_talent_row", "class_talent_culomn"), &Entity::class_talent_sreceive_learn_request);
|
ClassDB::bind_method(D_METHOD("class_talent_sreceive_learn_request", "spec_index", "class_talent_row", "class_talent_culomn"), &Entity::class_talent_sreceive_learn_request);
|
||||||
@ -6947,8 +6947,8 @@ void Entity::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("setc_free_character_talent_points", "value"), &Entity::setc_free_character_talent_points);
|
ClassDB::bind_method(D_METHOD("setc_free_character_talent_points", "value"), &Entity::setc_free_character_talent_points);
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "cfree_character_talent_points", PROPERTY_HINT_NONE, "", 0), "setc_free_character_talent_points", "getc_free_character_talent_points");
|
ADD_PROPERTY(PropertyInfo(Variant::INT, "cfree_character_talent_points", PROPERTY_HINT_NONE, "", 0), "setc_free_character_talent_points", "getc_free_character_talent_points");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_character_talent_sreceive_learn_request", PropertyInfo(Variant::INT, "spec_index"), PropertyInfo(Variant::INT, "character_talent_row"), PropertyInfo(Variant::INT, "character_talent_culomn")));
|
D_METHOD("_character_talent_sreceive_learn_request", "spec_index", "character_talent_row", "character_talent_culomn");
|
||||||
BIND_VMETHOD(MethodInfo("_character_talent_sreceive_reset_request"));
|
D_METHOD("_character_talent_sreceive_reset_request");
|
||||||
|
|
||||||
ADD_SIGNAL(MethodInfo("scharacter_talent_learned", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "character_talent_id")));
|
ADD_SIGNAL(MethodInfo("scharacter_talent_learned", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "character_talent_id")));
|
||||||
ADD_SIGNAL(MethodInfo("ccharacter_talent_learned", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "character_talent_id")));
|
ADD_SIGNAL(MethodInfo("ccharacter_talent_learned", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "character_talent_id")));
|
||||||
@ -6956,11 +6956,11 @@ void Entity::_bind_methods() {
|
|||||||
ADD_SIGNAL(MethodInfo("scharacter_talent_reset", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
ADD_SIGNAL(MethodInfo("scharacter_talent_reset", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
||||||
ADD_SIGNAL(MethodInfo("ccharacter_talent_reset", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
ADD_SIGNAL(MethodInfo("ccharacter_talent_reset", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_son_character_talent_learned", PropertyInfo(Variant::INT, "character_talent_id")));
|
D_METHOD("_son_character_talent_learned", "character_talent_id");
|
||||||
BIND_VMETHOD(MethodInfo("_con_character_talent_learned", PropertyInfo(Variant::INT, "character_talent_id")));
|
D_METHOD("_con_character_talent_learned", "character_talent_id");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_son_character_talent_reset"));
|
D_METHOD("_son_character_talent_reset");
|
||||||
BIND_VMETHOD(MethodInfo("_con_character_talent_reset"));
|
D_METHOD("_con_character_talent_reset");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("character_talent_crequest_learn", "spec_index", "character_talent_row", "character_talent_culomn"), &Entity::character_talent_crequest_learn);
|
ClassDB::bind_method(D_METHOD("character_talent_crequest_learn", "spec_index", "character_talent_row", "character_talent_culomn"), &Entity::character_talent_crequest_learn);
|
||||||
ClassDB::bind_method(D_METHOD("character_talent_sreceive_learn_request", "spec_index", "character_talent_row", "character_talent_culomn"), &Entity::character_talent_sreceive_learn_request);
|
ClassDB::bind_method(D_METHOD("character_talent_sreceive_learn_request", "spec_index", "character_talent_row", "character_talent_culomn"), &Entity::character_talent_sreceive_learn_request);
|
||||||
@ -6992,10 +6992,10 @@ void Entity::_bind_methods() {
|
|||||||
ADD_PROPERTY(PropertyInfo(Variant::POOL_INT_ARRAY, "scharacter_talents", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_ENTITY_HIDDEN), "scharacter_talents_set", "scharacter_talents_get");
|
ADD_PROPERTY(PropertyInfo(Variant::POOL_INT_ARRAY, "scharacter_talents", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_ENTITY_HIDDEN), "scharacter_talents_set", "scharacter_talents_get");
|
||||||
|
|
||||||
//Cooldowns
|
//Cooldowns
|
||||||
BIND_VMETHOD(MethodInfo("notification_scooldown_added", PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("notification_scooldown_added", "id", "value");
|
||||||
BIND_VMETHOD(MethodInfo("notification_scooldown_removed", PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("notification_scooldown_removed", "id", "value");
|
||||||
BIND_VMETHOD(MethodInfo("notification_scategory_cooldown_added", PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("notification_scategory_cooldown_added", "id", "value");
|
||||||
BIND_VMETHOD(MethodInfo("notification_scategory_cooldown_removed", PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("notification_scategory_cooldown_removed", "id", "value");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("notification_scooldown_added", "cooldown"), &Entity::notification_scooldown_added);
|
ClassDB::bind_method(D_METHOD("notification_scooldown_added", "cooldown"), &Entity::notification_scooldown_added);
|
||||||
ClassDB::bind_method(D_METHOD("notification_scooldown_removed", "cooldown"), &Entity::notification_scooldown_removed);
|
ClassDB::bind_method(D_METHOD("notification_scooldown_removed", "cooldown"), &Entity::notification_scooldown_removed);
|
||||||
@ -7003,30 +7003,30 @@ void Entity::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("notification_scategory_cooldown_removed", "category_cooldown"), &Entity::notification_scategory_cooldown_removed);
|
ClassDB::bind_method(D_METHOD("notification_scategory_cooldown_removed", "category_cooldown"), &Entity::notification_scategory_cooldown_removed);
|
||||||
|
|
||||||
//Clientside EventHandlers
|
//Clientside EventHandlers
|
||||||
BIND_VMETHOD(MethodInfo("_notification_cdeath"));
|
D_METHOD("_notification_cdeath");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("notification_ccooldown_added", PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("notification_ccooldown_added", "id", "value");
|
||||||
BIND_VMETHOD(MethodInfo("notification_ccooldown_removed", PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("notification_ccooldown_removed", "id", "value");
|
||||||
BIND_VMETHOD(MethodInfo("notification_ccategory_cooldown_added", PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("notification_ccategory_cooldown_added", "id", "value");
|
||||||
BIND_VMETHOD(MethodInfo("notification_ccategory_cooldown_removed", PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("notification_ccategory_cooldown_removed", "id", "value");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("notification_ccooldown_added", "cooldown"), &Entity::notification_ccooldown_added);
|
ClassDB::bind_method(D_METHOD("notification_ccooldown_added", "cooldown"), &Entity::notification_ccooldown_added);
|
||||||
ClassDB::bind_method(D_METHOD("notification_ccooldown_removed", "cooldown"), &Entity::notification_ccooldown_removed);
|
ClassDB::bind_method(D_METHOD("notification_ccooldown_removed", "cooldown"), &Entity::notification_ccooldown_removed);
|
||||||
ClassDB::bind_method(D_METHOD("notification_ccategory_cooldown_added", "category_cooldown"), &Entity::notification_ccategory_cooldown_added);
|
ClassDB::bind_method(D_METHOD("notification_ccategory_cooldown_added", "category_cooldown"), &Entity::notification_ccategory_cooldown_added);
|
||||||
ClassDB::bind_method(D_METHOD("notification_ccategory_cooldown_removed", "category_cooldown"), &Entity::notification_ccategory_cooldown_removed);
|
ClassDB::bind_method(D_METHOD("notification_ccategory_cooldown_removed", "category_cooldown"), &Entity::notification_ccategory_cooldown_removed);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_cgcd_started", PropertyInfo(Variant::REAL, "gcd")));
|
D_METHOD("_notification_cgcd_started", "gcd");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_cgcd_finished"));
|
D_METHOD("_notification_cgcd_finished");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_cxp_gained", PropertyInfo(Variant::INT, "value")));
|
D_METHOD("_notification_cxp_gained", "value");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_clevel_up", PropertyInfo(Variant::INT, "value")));
|
D_METHOD("_notification_clevel_up", "value");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_centity_resource_added", PropertyInfo(Variant::OBJECT, "resource", PROPERTY_HINT_RESOURCE_TYPE, "EntityResource")));
|
D_METHOD("_notification_centity_resource_added", "resource", PROPERTY_HINT_RESOURCE_TYPE, "EntityResource");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_centity_resource_removed", PropertyInfo(Variant::OBJECT, "resource", PROPERTY_HINT_RESOURCE_TYPE, "EntityResource")));
|
D_METHOD("_notification_centity_resource_removed", "resource", PROPERTY_HINT_RESOURCE_TYPE, "EntityResource");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::BOOL, "value"), "_canc_interact"));
|
D_METHOD("_canc_interact");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::BOOL, "value"), "_cans_interact"));
|
D_METHOD("_cans_interact");
|
||||||
BIND_VMETHOD(MethodInfo("_sinteract"));
|
D_METHOD("_sinteract");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("cast_spell_successc", "info"), &Entity::cast_spell_successc);
|
ClassDB::bind_method(D_METHOD("cast_spell_successc", "info"), &Entity::cast_spell_successc);
|
||||||
ClassDB::bind_method(D_METHOD("cast_spell_successc_rpc", "data"), &Entity::cast_spell_successc_rpc);
|
ClassDB::bind_method(D_METHOD("cast_spell_successc_rpc", "data"), &Entity::cast_spell_successc_rpc);
|
||||||
@ -7050,7 +7050,7 @@ void Entity::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("spell_casts", "spell_id"), &Entity::spell_casts);
|
ClassDB::bind_method(D_METHOD("spell_casts", "spell_id"), &Entity::spell_casts);
|
||||||
ClassDB::bind_method(D_METHOD("spell_crequest_cast", "spell_id"), &Entity::spell_crequest_cast);
|
ClassDB::bind_method(D_METHOD("spell_crequest_cast", "spell_id"), &Entity::spell_crequest_cast);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_item_uses", PropertyInfo(Variant::INT, "item_id")));
|
D_METHOD("_item_uses", "item_id");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("item_uses", "item_id"), &Entity::item_uses);
|
ClassDB::bind_method(D_METHOD("item_uses", "item_id"), &Entity::item_uses);
|
||||||
ClassDB::bind_method(D_METHOD("item_crequest_use", "item_id"), &Entity::item_crequest_use);
|
ClassDB::bind_method(D_METHOD("item_crequest_use", "item_id"), &Entity::item_crequest_use);
|
||||||
@ -7080,8 +7080,8 @@ void Entity::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("ssend_open_window", "window_id"), &Entity::ssend_open_window);
|
ClassDB::bind_method(D_METHOD("ssend_open_window", "window_id"), &Entity::ssend_open_window);
|
||||||
ClassDB::bind_method(D_METHOD("copen_window", "window_id"), &Entity::copen_window);
|
ClassDB::bind_method(D_METHOD("copen_window", "window_id"), &Entity::copen_window);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::BOOL, "ret"), "_iss_target_in_interact_range"));
|
D_METHOD("_iss_target_in_interact_range");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::BOOL, "ret"), "_isc_target_in_interact_range"));
|
D_METHOD("_isc_target_in_interact_range");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("iss_target_in_interact_range"), &Entity::iss_target_in_interact_range);
|
ClassDB::bind_method(D_METHOD("iss_target_in_interact_range"), &Entity::iss_target_in_interact_range);
|
||||||
ClassDB::bind_method(D_METHOD("isc_target_in_interact_range"), &Entity::isc_target_in_interact_range);
|
ClassDB::bind_method(D_METHOD("isc_target_in_interact_range"), &Entity::isc_target_in_interact_range);
|
||||||
@ -7143,14 +7143,14 @@ void Entity::_bind_methods() {
|
|||||||
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "sauras", PROPERTY_HINT_NONE, "17/17:AuraData", PROPERTY_USAGE_ENTITY_HIDDEN, "AuraData"), "sauras_set", "sauras_get");
|
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "sauras", PROPERTY_HINT_NONE, "17/17:AuraData", PROPERTY_USAGE_ENTITY_HIDDEN, "AuraData"), "sauras_set", "sauras_get");
|
||||||
|
|
||||||
//Hooks
|
//Hooks
|
||||||
BIND_VMETHOD(MethodInfo("_moved"));
|
D_METHOD("_moved");
|
||||||
ClassDB::bind_method(D_METHOD("moved"), &Entity::moved);
|
ClassDB::bind_method(D_METHOD("moved"), &Entity::moved);
|
||||||
|
|
||||||
ADD_SIGNAL(MethodInfo("notification_cmouse_entered"));
|
ADD_SIGNAL(MethodInfo("notification_cmouse_entered"));
|
||||||
ADD_SIGNAL(MethodInfo("notification_cmouse_exited"));
|
ADD_SIGNAL(MethodInfo("notification_cmouse_exited"));
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_cmouse_enter"));
|
D_METHOD("_notification_cmouse_enter");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_cmouse_exit"));
|
D_METHOD("_notification_cmouse_exit");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("notification_cmouse_enter"), &Entity::notification_cmouse_enter);
|
ClassDB::bind_method(D_METHOD("notification_cmouse_enter"), &Entity::notification_cmouse_enter);
|
||||||
ClassDB::bind_method(D_METHOD("notification_cmouse_exit"), &Entity::notification_cmouse_exit);
|
ClassDB::bind_method(D_METHOD("notification_cmouse_exit"), &Entity::notification_cmouse_exit);
|
||||||
@ -7158,8 +7158,8 @@ void Entity::_bind_methods() {
|
|||||||
ADD_SIGNAL(MethodInfo("notification_ctargeted"));
|
ADD_SIGNAL(MethodInfo("notification_ctargeted"));
|
||||||
ADD_SIGNAL(MethodInfo("notification_cuntargeted"));
|
ADD_SIGNAL(MethodInfo("notification_cuntargeted"));
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_ctargeted"));
|
D_METHOD("_notification_ctargeted");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_cuntargeted"));
|
D_METHOD("_notification_cuntargeted");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("notification_ctargeted"), &Entity::notification_ctargeted);
|
ClassDB::bind_method(D_METHOD("notification_ctargeted"), &Entity::notification_ctargeted);
|
||||||
ClassDB::bind_method(D_METHOD("notification_cuntargeted"), &Entity::notification_cuntargeted);
|
ClassDB::bind_method(D_METHOD("notification_cuntargeted"), &Entity::notification_cuntargeted);
|
||||||
@ -7218,8 +7218,8 @@ void Entity::_bind_methods() {
|
|||||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "cseed", PROPERTY_HINT_NONE, "", 0), "setc_seed", "getc_seed");
|
ADD_PROPERTY(PropertyInfo(Variant::INT, "cseed", PROPERTY_HINT_NONE, "", 0), "setc_seed", "getc_seed");
|
||||||
|
|
||||||
//Interaction type
|
//Interaction type
|
||||||
BIND_VMETHOD(MethodInfo("_gets_relation_to", PropertyInfo(Variant::OBJECT, "to", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
D_METHOD("_gets_relation_to", "to", PROPERTY_HINT_RESOURCE_TYPE, "Entity");
|
||||||
BIND_VMETHOD(MethodInfo("_getc_relation_to", PropertyInfo(Variant::OBJECT, "to", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
D_METHOD("_getc_relation_to", "to", PROPERTY_HINT_RESOURCE_TYPE, "Entity");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("gets_relation_to", "to"), &Entity::gets_relation_to_bind);
|
ClassDB::bind_method(D_METHOD("gets_relation_to", "to"), &Entity::gets_relation_to_bind);
|
||||||
ClassDB::bind_method(D_METHOD("_gets_relation_to", "to"), &Entity::_gets_relation_to);
|
ClassDB::bind_method(D_METHOD("_gets_relation_to", "to"), &Entity::_gets_relation_to);
|
||||||
@ -7307,12 +7307,12 @@ void Entity::_bind_methods() {
|
|||||||
ADD_SIGNAL(MethodInfo("equip_con_success", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::OBJECT, "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::INT, "bag_slot")));
|
ADD_SIGNAL(MethodInfo("equip_con_success", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::OBJECT, "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::INT, "bag_slot")));
|
||||||
ADD_SIGNAL(MethodInfo("equip_con_fail", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::OBJECT, "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::INT, "bag_slot")));
|
ADD_SIGNAL(MethodInfo("equip_con_fail", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::OBJECT, "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::INT, "bag_slot")));
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::BOOL, "ret"), "_equip_should_deny", PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance")));
|
D_METHOD("_equip_should_deny", "equip_slot", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_equip_son_success", PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::OBJECT, "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::INT, "bag_slot")));
|
D_METHOD("_equip_son_success", PropertyInfo(Variant::INT, "equip_slot", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance", "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance", "bag_slot");
|
||||||
BIND_VMETHOD(MethodInfo("_equip_son_fail", PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::OBJECT, "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::INT, "bag_slot")));
|
D_METHOD("_equip_son_fail", PropertyInfo(Variant::INT, "equip_slot", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance", "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance", "bag_slot");
|
||||||
BIND_VMETHOD(MethodInfo("_equip_con_success", PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::OBJECT, "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::INT, "bag_slot")));
|
D_METHOD("_equip_con_success", PropertyInfo(Variant::INT, "equip_slot", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance", "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance", "bag_slot");
|
||||||
BIND_VMETHOD(MethodInfo("_equip_con_fail", PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::OBJECT, "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::INT, "bag_slot")));
|
D_METHOD("_equip_con_fail", PropertyInfo(Variant::INT, "equip_slot", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance", "old_item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance", "bag_slot");
|
||||||
|
|
||||||
ADD_SIGNAL(MethodInfo("equipment_changed", PropertyInfo(Variant::INT, "slot")));
|
ADD_SIGNAL(MethodInfo("equipment_changed", PropertyInfo(Variant::INT, "slot")));
|
||||||
|
|
||||||
@ -7323,7 +7323,7 @@ void Entity::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("equip_con_success", "equip_slot", "item", "old_item", "bag_slot"), &Entity::equip_con_success);
|
ClassDB::bind_method(D_METHOD("equip_con_success", "equip_slot", "item", "old_item", "bag_slot"), &Entity::equip_con_success);
|
||||||
ClassDB::bind_method(D_METHOD("equip_con_fail", "equip_slot", "item", "old_item", "bag_slot"), &Entity::equip_con_fail);
|
ClassDB::bind_method(D_METHOD("equip_con_fail", "equip_slot", "item", "old_item", "bag_slot"), &Entity::equip_con_fail);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_equips", PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::INT, "bag_slot")));
|
D_METHOD("_equips", "equip_slot", "bag_slot");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("equip_crequest", "equip_slot", "bag_slot"), &Entity::equip_crequest);
|
ClassDB::bind_method(D_METHOD("equip_crequest", "equip_slot", "bag_slot"), &Entity::equip_crequest);
|
||||||
ClassDB::bind_method(D_METHOD("equips", "equip_slot", "bag_slot"), &Entity::equips);
|
ClassDB::bind_method(D_METHOD("equips", "equip_slot", "bag_slot"), &Entity::equips);
|
||||||
@ -7335,13 +7335,13 @@ void Entity::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("equip_gets_slot", "index"), &Entity::equip_gets_slot);
|
ClassDB::bind_method(D_METHOD("equip_gets_slot", "index"), &Entity::equip_gets_slot);
|
||||||
ClassDB::bind_method(D_METHOD("equip_getc_slot", "index"), &Entity::equip_getc_slot);
|
ClassDB::bind_method(D_METHOD("equip_getc_slot", "index"), &Entity::equip_getc_slot);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::BOOL, "can"), "_equip_can_equip_item", PropertyInfo(Variant::INT, "equip_slot"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance")));
|
D_METHOD("_equip_can_equip_item", "equip_slot", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("equip_can_equip_item", "equip_slot", "item"), &Entity::equip_can_equip_item);
|
ClassDB::bind_method(D_METHOD("equip_can_equip_item", "equip_slot", "item"), &Entity::equip_can_equip_item);
|
||||||
ClassDB::bind_method(D_METHOD("_equip_can_equip_item", "equip_slot", "item"), &Entity::_equip_can_equip_item);
|
ClassDB::bind_method(D_METHOD("_equip_can_equip_item", "equip_slot", "item"), &Entity::_equip_can_equip_item);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_equip_applys_item", PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance")));
|
D_METHOD("_equip_applys_item", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance");
|
||||||
BIND_VMETHOD(MethodInfo("_equip_deapplys_item", PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance")));
|
D_METHOD("_equip_deapplys_item", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("equip_applys_item", "item"), &Entity::equip_applys_item);
|
ClassDB::bind_method(D_METHOD("equip_applys_item", "item"), &Entity::equip_applys_item);
|
||||||
ClassDB::bind_method(D_METHOD("equip_deapplys_item", "item"), &Entity::equip_deapplys_item);
|
ClassDB::bind_method(D_METHOD("equip_deapplys_item", "item"), &Entity::equip_deapplys_item);
|
||||||
@ -7349,8 +7349,8 @@ void Entity::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("_equip_applys_item", "item"), &Entity::_equip_applys_item);
|
ClassDB::bind_method(D_METHOD("_equip_applys_item", "item"), &Entity::_equip_applys_item);
|
||||||
ClassDB::bind_method(D_METHOD("_equip_deapplys_item", "item"), &Entity::_equip_deapplys_item);
|
ClassDB::bind_method(D_METHOD("_equip_deapplys_item", "item"), &Entity::_equip_deapplys_item);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_equip_applyc_item", PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance")));
|
D_METHOD("_equip_applyc_item", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance");
|
||||||
BIND_VMETHOD(MethodInfo("_equip_deapplyc_item", PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance")));
|
D_METHOD("_equip_deapplyc_item", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("cequip_applys_item", "item"), &Entity::equip_applyc_item);
|
ClassDB::bind_method(D_METHOD("cequip_applys_item", "item"), &Entity::equip_applyc_item);
|
||||||
ClassDB::bind_method(D_METHOD("equip_deapplyc_item", "item"), &Entity::equip_deapplyc_item);
|
ClassDB::bind_method(D_METHOD("equip_deapplyc_item", "item"), &Entity::equip_deapplyc_item);
|
||||||
@ -7564,7 +7564,7 @@ void Entity::_bind_methods() {
|
|||||||
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "sspells", PROPERTY_HINT_NONE, "17/17:Spell", PROPERTY_USAGE_ENTITY_HIDDEN, "Spell"), "sspells_set", "sspells_get");
|
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "sspells", PROPERTY_HINT_NONE, "17/17:Spell", PROPERTY_USAGE_ENTITY_HIDDEN, "Spell"), "sspells_set", "sspells_get");
|
||||||
|
|
||||||
//Crafting
|
//Crafting
|
||||||
BIND_VMETHOD(MethodInfo("_crafts", PropertyInfo(Variant::INT, "id")));
|
D_METHOD("_crafts", "id");
|
||||||
|
|
||||||
ADD_SIGNAL(MethodInfo("crafts_success", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance")));
|
ADD_SIGNAL(MethodInfo("crafts_success", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance")));
|
||||||
ADD_SIGNAL(MethodInfo("ccraft_success", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance")));
|
ADD_SIGNAL(MethodInfo("ccraft_success", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance")));
|
||||||
@ -7633,7 +7633,7 @@ void Entity::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("instance_body"), &Entity::instance_body);
|
ClassDB::bind_method(D_METHOD("instance_body"), &Entity::instance_body);
|
||||||
ClassDB::bind_method(D_METHOD("on_body_changed"), &Entity::on_body_changed);
|
ClassDB::bind_method(D_METHOD("on_body_changed"), &Entity::on_body_changed);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_body_changed"));
|
D_METHOD("_body_changed");
|
||||||
ADD_SIGNAL(MethodInfo("body_changed", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
ADD_SIGNAL(MethodInfo("body_changed", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
||||||
|
|
||||||
//Transforms
|
//Transforms
|
||||||
@ -7737,8 +7737,8 @@ void Entity::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("vendor_item_sell_crequest", "slot_id"), &Entity::vendor_item_sell_crequest);
|
ClassDB::bind_method(D_METHOD("vendor_item_sell_crequest", "slot_id"), &Entity::vendor_item_sell_crequest);
|
||||||
ClassDB::bind_method(D_METHOD("vendor_item_ssell", "slot_id"), &Entity::vendor_item_ssell);
|
ClassDB::bind_method(D_METHOD("vendor_item_ssell", "slot_id"), &Entity::vendor_item_ssell);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_vendor_item_sbuy", PropertyInfo(Variant::INT, "index"), PropertyInfo(Variant::INT, "count")));
|
D_METHOD("_vendor_item_sbuy", "index", "count");
|
||||||
BIND_VMETHOD(MethodInfo("_vendor_item_ssell", PropertyInfo(Variant::INT, "slot_id")));
|
D_METHOD("_vendor_item_ssell", "slot_id");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("_vendor_item_sbuy", "index", "count"), &Entity::_vendor_item_sbuy);
|
ClassDB::bind_method(D_METHOD("_vendor_item_sbuy", "index", "count"), &Entity::_vendor_item_sbuy);
|
||||||
ClassDB::bind_method(D_METHOD("_vendor_item_ssell", "slot_id"), &Entity::_vendor_item_ssell);
|
ClassDB::bind_method(D_METHOD("_vendor_item_ssell", "slot_id"), &Entity::_vendor_item_ssell);
|
||||||
@ -7812,8 +7812,8 @@ void Entity::_bind_methods() {
|
|||||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "sai", PROPERTY_HINT_RESOURCE_TYPE, "EntityAI", PROPERTY_USAGE_ENTITY_HIDDEN), "sets_ai", "gets_ai");
|
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "sai", PROPERTY_HINT_RESOURCE_TYPE, "EntityAI", PROPERTY_USAGE_ENTITY_HIDDEN), "sets_ai", "gets_ai");
|
||||||
|
|
||||||
//Serialization
|
//Serialization
|
||||||
BIND_VMETHOD(MethodInfo("_from_dict", PropertyInfo(Variant::DICTIONARY, "dict")));
|
D_METHOD("_from_dict", "dict");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::DICTIONARY, "dict"), "_to_dict"));
|
D_METHOD("_to_dict");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("is_deserialized"), &Entity::is_deserialized);
|
ClassDB::bind_method(D_METHOD("is_deserialized"), &Entity::is_deserialized);
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ SOFTWARE.
|
|||||||
#include "core/vector.h"
|
#include "core/vector.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "core/io/networked_multiplayer_peer.h"
|
#include "scene/main/multiplayer_peer.h"
|
||||||
|
|
||||||
#include "scene/main/node.h"
|
#include "scene/main/node.h"
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ SOFTWARE.
|
|||||||
#include "../data/spells/spell.h"
|
#include "../data/spells/spell.h"
|
||||||
|
|
||||||
#include "core/io/json.h"
|
#include "core/io/json.h"
|
||||||
#include "core/math/transform.h"
|
#include "core/math/transform_3d.h"
|
||||||
#include "core/math/transform_2d.h"
|
#include "core/math/transform_2d.h"
|
||||||
|
|
||||||
#include "../data/spells/spell.h"
|
#include "../data/spells/spell.h"
|
||||||
@ -258,8 +258,8 @@ public:
|
|||||||
void set_character_skeleton(Node *skeleton);
|
void set_character_skeleton(Node *skeleton);
|
||||||
|
|
||||||
//Transforms
|
//Transforms
|
||||||
Transform get_transform_3d(bool only_stored = false) const;
|
Transform3D get_transform_3d(bool only_stored = false) const;
|
||||||
void set_transform_3d(const Transform &transform, bool only_stored = false);
|
void set_transform_3d(const Transform3D &transform, bool only_stored = false);
|
||||||
|
|
||||||
Transform2D get_transform_2d(bool only_stored = false) const;
|
Transform2D get_transform_2d(bool only_stored = false) const;
|
||||||
void set_transform_2d(const Transform2D &transform, bool only_stored = false);
|
void set_transform_2d(const Transform2D &transform, bool only_stored = false);
|
||||||
@ -1154,7 +1154,7 @@ private:
|
|||||||
|
|
||||||
//// Transforms ////
|
//// Transforms ////
|
||||||
|
|
||||||
Transform _transform;
|
Transform3D _transform;
|
||||||
Transform2D _transform_2d;
|
Transform2D _transform_2d;
|
||||||
|
|
||||||
//// PlayerData ////
|
//// PlayerData ////
|
||||||
|
@ -435,25 +435,25 @@ void EntityResource::_bind_methods() {
|
|||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("mods_changed"), &EntityResource::mods_changed);
|
ClassDB::bind_method(D_METHOD("mods_changed"), &EntityResource::mods_changed);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_notification_sstat_changed", PropertyInfo(Variant::INT, "statid"), PropertyInfo(Variant::REAL, "curent")));
|
D_METHOD("_notification_sstat_changed", "statid", "curent");
|
||||||
BIND_VMETHOD(MethodInfo("_notification_cstat_changed", PropertyInfo(Variant::INT, "statid"), PropertyInfo(Variant::REAL, "curent")));
|
D_METHOD("_notification_cstat_changed", "statid", "curent");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_ons_target_changed", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::OBJECT, "old_target", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
D_METHOD("_ons_target_changed", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "old_target", PROPERTY_HINT_RESOURCE_TYPE, "Entity");
|
||||||
BIND_VMETHOD(MethodInfo("_onc_target_changed", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), PropertyInfo(Variant::OBJECT, "old_target", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
D_METHOD("_onc_target_changed", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "old_target", PROPERTY_HINT_RESOURCE_TYPE, "Entity");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_ons_added", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
D_METHOD("_ons_added", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity");
|
||||||
BIND_VMETHOD(MethodInfo("_onc_added", PropertyInfo(Variant::OBJECT, "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity")));
|
D_METHOD("_onc_added", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_process_server", PropertyInfo(Variant::REAL, "delta")));
|
D_METHOD("_process_server", "delta");
|
||||||
BIND_VMETHOD(MethodInfo("_process_client", PropertyInfo(Variant::REAL, "delta")));
|
D_METHOD("_process_client", "delta");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_stacking_mod_added", PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("_stacking_mod_added", "value");
|
||||||
BIND_VMETHOD(MethodInfo("_stacking_mod_removed", PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("_stacking_mod_removed", "value");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_non_stacking_mod_added", PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("_non_stacking_mod_added", "value");
|
||||||
BIND_VMETHOD(MethodInfo("_non_stacking_mod_removed", PropertyInfo(Variant::REAL, "value")));
|
D_METHOD("_non_stacking_mod_removed", "value");
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_mods_changed"));
|
D_METHOD("_mods_changed");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("process_server", "delta"), &EntityResource::process_server);
|
ClassDB::bind_method(D_METHOD("process_server", "delta"), &EntityResource::process_server);
|
||||||
ClassDB::bind_method(D_METHOD("_process_server", "delta"), &EntityResource::_process_server);
|
ClassDB::bind_method(D_METHOD("_process_server", "delta"), &EntityResource::_process_server);
|
||||||
@ -461,12 +461,12 @@ void EntityResource::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("process_client", "delta"), &EntityResource::process_client);
|
ClassDB::bind_method(D_METHOD("process_client", "delta"), &EntityResource::process_client);
|
||||||
ClassDB::bind_method(D_METHOD("_process_client", "delta"), &EntityResource::_process_client);
|
ClassDB::bind_method(D_METHOD("_process_client", "delta"), &EntityResource::_process_client);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::STRING, "str"), "_gets_update_string"));
|
D_METHOD("_gets_update_string");
|
||||||
BIND_VMETHOD(MethodInfo("_receivec_update_string", PropertyInfo(Variant::STRING, "str")));
|
D_METHOD("_receivec_update_string", "str");
|
||||||
|
|
||||||
//Serialization
|
//Serialization
|
||||||
BIND_VMETHOD(MethodInfo("_from_dict", PropertyInfo(Variant::DICTIONARY, "dict")));
|
D_METHOD("_from_dict", "dict");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::DICTIONARY, "dict"), "_to_dict"));
|
D_METHOD("_to_dict");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("from_dict", "dict"), &EntityResource::from_dict);
|
ClassDB::bind_method(D_METHOD("from_dict", "dict"), &EntityResource::from_dict);
|
||||||
ClassDB::bind_method(D_METHOD("to_dict"), &EntityResource::to_dict);
|
ClassDB::bind_method(D_METHOD("to_dict"), &EntityResource::to_dict);
|
||||||
|
@ -153,8 +153,8 @@ void EntitySkill::_bind_methods() {
|
|||||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "disabled"), "set_disabled", "get_disabled");
|
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "disabled"), "set_disabled", "get_disabled");
|
||||||
|
|
||||||
//Serialization
|
//Serialization
|
||||||
BIND_VMETHOD(MethodInfo("_from_dict", PropertyInfo(Variant::DICTIONARY, "dict")));
|
D_METHOD("_from_dict", "dict");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::DICTIONARY, "dict"), "_to_dict"));
|
D_METHOD("_to_dict");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("from_dict", "dict"), &EntitySkill::from_dict);
|
ClassDB::bind_method(D_METHOD("from_dict", "dict"), &EntitySkill::from_dict);
|
||||||
ClassDB::bind_method(D_METHOD("to_dict"), &EntitySkill::to_dict);
|
ClassDB::bind_method(D_METHOD("to_dict"), &EntitySkill::to_dict);
|
||||||
|
@ -31,7 +31,7 @@ int LevelStatData::get_stat_diff(int main_stat, int old_level, int new_level) {
|
|||||||
|
|
||||||
void LevelStatData::_bind_methods() {
|
void LevelStatData::_bind_methods() {
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::INT, "diff"), "_get_stat_diff", PropertyInfo(Variant::INT, "main_stat"), PropertyInfo(Variant::INT, "old_level"), PropertyInfo(Variant::INT, "new_level")));
|
D_METHOD("_get_stat_diff", "main_stat", "old_level", "new_level");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("get_stat_diff", "stat", "old_level", "new_level"), &LevelStatData::get_stat_diff);
|
ClassDB::bind_method(D_METHOD("get_stat_diff", "stat", "old_level", "new_level"), &LevelStatData::get_stat_diff);
|
||||||
}
|
}
|
||||||
|
@ -75,8 +75,8 @@ AIFormation::AIFormation() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void AIFormation::_bind_methods() {
|
void AIFormation::_bind_methods() {
|
||||||
BIND_VMETHOD(MethodInfo("_on_set_owner"));
|
D_METHOD("_on_set_owner");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::VECTOR3, "pos"), "_get_position", PropertyInfo(Variant::INT, "slot_index")));
|
D_METHOD("_get_position", "slot_index");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("get_owner"), &AIFormation::get_owner);
|
ClassDB::bind_method(D_METHOD("get_owner"), &AIFormation::get_owner);
|
||||||
ClassDB::bind_method(D_METHOD("set_owner", "entity"), &AIFormation::set_owner_bind);
|
ClassDB::bind_method(D_METHOD("set_owner", "entity"), &AIFormation::set_owner_bind);
|
||||||
|
@ -26,7 +26,7 @@ SOFTWARE.
|
|||||||
#include "core/version.h"
|
#include "core/version.h"
|
||||||
|
|
||||||
#if VERSION_MAJOR > 3
|
#if VERSION_MAJOR > 3
|
||||||
#include "core/object/reference.h"
|
#include "core/object/ref_counted.h"
|
||||||
#else
|
#else
|
||||||
#include "core/reference.h"
|
#include "core/reference.h"
|
||||||
#endif
|
#endif
|
||||||
@ -36,8 +36,8 @@ SOFTWARE.
|
|||||||
class Entity;
|
class Entity;
|
||||||
class Spell;
|
class Spell;
|
||||||
|
|
||||||
class AuraApplyInfo : public Reference {
|
class AuraApplyInfo : public RefCounted {
|
||||||
GDCLASS(AuraApplyInfo, Reference);
|
GDCLASS(AuraApplyInfo, RefCounted);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Entity *caster_get() const;
|
Entity *caster_get() const;
|
||||||
|
@ -362,7 +362,7 @@ void Bag::_from_dict(const Dictionary &dict) {
|
|||||||
|
|
||||||
for (int i = 0; i < keys.size(); ++i) {
|
for (int i = 0; i < keys.size(); ++i) {
|
||||||
Ref<ItemInstance> ii;
|
Ref<ItemInstance> ii;
|
||||||
ii.instance();
|
ii.instantiate();
|
||||||
|
|
||||||
ii->from_dict(items[keys.get(i)]);
|
ii->from_dict(items[keys.get(i)]);
|
||||||
|
|
||||||
@ -388,21 +388,21 @@ Bag::~Bag() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Bag::_bind_methods() {
|
void Bag::_bind_methods() {
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::BOOL, "could_add"), "_add_item", PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance")));
|
D_METHOD("_add_item", "item", "ItemInstance");
|
||||||
BIND_VMETHOD(MethodInfo("_add_item_at", PropertyInfo(Variant::INT, "index"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::BOOL, "signal")));
|
D_METHOD("_add_item_at", "index", "item", "ItemInstance", "signal");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), "_get_item", PropertyInfo(Variant::INT, "index")));
|
D_METHOD("_get_item", "index");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), "_remove_item", PropertyInfo(Variant::INT, "index")));
|
D_METHOD("_remove_item", "index");
|
||||||
BIND_VMETHOD(MethodInfo("_swap_items", PropertyInfo(Variant::INT, "item1_index"), PropertyInfo(Variant::INT, "item2_index")));
|
D_METHOD("_swap_items", "item1_index", "item2_index");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::BOOL, "can"), "_can_add_item", PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance")));
|
D_METHOD("_can_add_item", "item", "ItemInstance");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::INT, "count"), "_get_item_count"));
|
D_METHOD("_get_item_count");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::INT, "count"), "_get_valid_item_count"));
|
D_METHOD("_get_valid_item_count");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::INT, "size"), "_get_size"));
|
D_METHOD("_get_size");
|
||||||
BIND_VMETHOD(MethodInfo("_set_size", PropertyInfo(Variant::INT, "size")));
|
D_METHOD("_set_size", "size");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::BOOL, "full"), "_is_full"));
|
D_METHOD("_is_full");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::BOOL, "overburdened"), "_is_overburdened"));
|
D_METHOD("_is_overburdened");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::BOOL, "has"), "_has_item", PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemTemplate"), PropertyInfo(Variant::INT, "count")));
|
D_METHOD("_has_item", "item", "ItemTemplate", "count");
|
||||||
BIND_VMETHOD(MethodInfo("_remove_items", PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemTemplate"), PropertyInfo(Variant::INT, "count")));
|
D_METHOD("_remove_items", "item", "ItemTemplate", "count");
|
||||||
BIND_VMETHOD(MethodInfo("_change_item_equip", PropertyInfo(Variant::INT, "slot_id"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance")));
|
D_METHOD("_change_item_equip", "slot_id", "item", "ItemInstance");
|
||||||
|
|
||||||
ADD_SIGNAL(MethodInfo("item_added", PropertyInfo(Variant::OBJECT, "bag", PROPERTY_HINT_RESOURCE_TYPE, "Bag"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::INT, "slot_id")));
|
ADD_SIGNAL(MethodInfo("item_added", PropertyInfo(Variant::OBJECT, "bag", PROPERTY_HINT_RESOURCE_TYPE, "Bag"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::INT, "slot_id")));
|
||||||
ADD_SIGNAL(MethodInfo("item_removed", PropertyInfo(Variant::OBJECT, "bag", PROPERTY_HINT_RESOURCE_TYPE, "Bag"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::INT, "slot_id")));
|
ADD_SIGNAL(MethodInfo("item_removed", PropertyInfo(Variant::OBJECT, "bag", PROPERTY_HINT_RESOURCE_TYPE, "Bag"), PropertyInfo(Variant::OBJECT, "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"), PropertyInfo(Variant::INT, "slot_id")));
|
||||||
@ -442,8 +442,8 @@ void Bag::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("_remove_items", "item", "count"), &Bag::_remove_items);
|
ClassDB::bind_method(D_METHOD("_remove_items", "item", "count"), &Bag::_remove_items);
|
||||||
|
|
||||||
//Serialization
|
//Serialization
|
||||||
BIND_VMETHOD(MethodInfo("_from_dict", PropertyInfo(Variant::DICTIONARY, "dict")));
|
D_METHOD("_from_dict", "dict");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::DICTIONARY, "dict"), "_to_dict"));
|
D_METHOD("_to_dict");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("from_dict", "dict"), &Bag::from_dict);
|
ClassDB::bind_method(D_METHOD("from_dict", "dict"), &Bag::from_dict);
|
||||||
ClassDB::bind_method(D_METHOD("to_dict"), &Bag::to_dict);
|
ClassDB::bind_method(D_METHOD("to_dict"), &Bag::to_dict);
|
||||||
|
@ -193,7 +193,7 @@ Ref<ItemInstance> GridBag::get_and_remove_item(const int index) {
|
|||||||
|
|
||||||
Ref<ItemInstance> item = _items.get(index);
|
Ref<ItemInstance> item = _items.get(index);
|
||||||
|
|
||||||
_items.remove(index);
|
_items.remove_at(index);
|
||||||
|
|
||||||
//Go over everything, to make sure item site changes won't cause bugs.
|
//Go over everything, to make sure item site changes won't cause bugs.
|
||||||
for (int x = 0; x < _size_x; ++x) {
|
for (int x = 0; x < _size_x; ++x) {
|
||||||
@ -212,7 +212,7 @@ Ref<ItemInstance> GridBag::get_and_remove_item(const int index) {
|
|||||||
void GridBag::remove_item(const int index) {
|
void GridBag::remove_item(const int index) {
|
||||||
ERR_FAIL_INDEX(index, _items.size());
|
ERR_FAIL_INDEX(index, _items.size());
|
||||||
|
|
||||||
_items.remove(index);
|
_items.remove_at(index);
|
||||||
|
|
||||||
//Go over everything, to make sure item site changes won't cause bugs.
|
//Go over everything, to make sure item site changes won't cause bugs.
|
||||||
for (int x = 0; x < _size_x; ++x) {
|
for (int x = 0; x < _size_x; ++x) {
|
||||||
@ -230,7 +230,7 @@ void GridBag::basic_add_item(const Ref<ItemInstance> item) {
|
|||||||
_items.push_back(item);
|
_items.push_back(item);
|
||||||
}
|
}
|
||||||
void GridBag::basic_remove_item(const int index) {
|
void GridBag::basic_remove_item(const int index) {
|
||||||
_items.remove(index);
|
_items.remove_at(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
int GridBag::get_item_count() const {
|
int GridBag::get_item_count() const {
|
||||||
|
@ -38,8 +38,8 @@ SOFTWARE.
|
|||||||
class itemTemplate;
|
class itemTemplate;
|
||||||
class ItemInstance;
|
class ItemInstance;
|
||||||
|
|
||||||
class GridBag : public Reference {
|
class GridBag : public RefCounted {
|
||||||
GDCLASS(GridBag, Reference);
|
GDCLASS(GridBag, RefCounted);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
int get_allowed_item_types() const;
|
int get_allowed_item_types() const;
|
||||||
|
@ -39,8 +39,8 @@ class Player;
|
|||||||
class itemTemplate;
|
class itemTemplate;
|
||||||
class ItemInstance;
|
class ItemInstance;
|
||||||
|
|
||||||
class Inventory : public Reference {
|
class Inventory : public RefCounted {
|
||||||
GDCLASS(Inventory, Reference);
|
GDCLASS(Inventory, RefCounted);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
int get_allowed_item_types() const;
|
int get_allowed_item_types() const;
|
||||||
|
@ -47,7 +47,7 @@ Ref<ItemInstance> Bag::remove_item(const int index) {
|
|||||||
|
|
||||||
Ref<ItemInstance> item = _items.get(index);
|
Ref<ItemInstance> item = _items.get(index);
|
||||||
|
|
||||||
_items.remove(index);
|
_items.remove_at(index);
|
||||||
|
|
||||||
//Go over everything, to make sure item site changes won't cause bugs.
|
//Go over everything, to make sure item site changes won't cause bugs.
|
||||||
for (int x = 0; x < _size_x; ++x) {
|
for (int x = 0; x < _size_x; ++x) {
|
||||||
|
@ -38,8 +38,8 @@ SOFTWARE.
|
|||||||
class itemTemplate;
|
class itemTemplate;
|
||||||
class ItemInstance;
|
class ItemInstance;
|
||||||
|
|
||||||
class Bag : public Reference {
|
class Bag : public RefCounted {
|
||||||
GDCLASS(Bag, Reference);
|
GDCLASS(Bag, RefCounted);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
int get_allowed_item_types() const;
|
int get_allowed_item_types() const;
|
||||||
|
@ -122,7 +122,7 @@ void ESSMaterialCache::material_set(const int index, const Ref<Material> &value)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ESSMaterialCache::material_remove(const int index) {
|
void ESSMaterialCache::material_remove(const int index) {
|
||||||
_materials.remove(index);
|
_materials.remove_at(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ESSMaterialCache::material_get_num() const {
|
int ESSMaterialCache::material_get_num() const {
|
||||||
@ -161,7 +161,7 @@ void ESSMaterialCache::texture_remove(const Ref<Texture> &texture) {
|
|||||||
void ESSMaterialCache::texture_remove_index(const int index) {
|
void ESSMaterialCache::texture_remove_index(const int index) {
|
||||||
ERR_FAIL_INDEX(index, _textures.size());
|
ERR_FAIL_INDEX(index, _textures.size());
|
||||||
|
|
||||||
_textures.remove(index);
|
_textures.remove_at(index);
|
||||||
}
|
}
|
||||||
void ESSMaterialCache::textures_clear() {
|
void ESSMaterialCache::textures_clear() {
|
||||||
_textures.clear();
|
_textures.clear();
|
||||||
@ -336,7 +336,7 @@ void ESSMaterialCache::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("inc_ref_count"), &ESSMaterialCache::inc_ref_count);
|
ClassDB::bind_method(D_METHOD("inc_ref_count"), &ESSMaterialCache::inc_ref_count);
|
||||||
ClassDB::bind_method(D_METHOD("dec_ref_count"), &ESSMaterialCache::dec_ref_count);
|
ClassDB::bind_method(D_METHOD("dec_ref_count"), &ESSMaterialCache::dec_ref_count);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_setup_material_albedo", PropertyInfo(Variant::OBJECT, "texture", PROPERTY_HINT_RESOURCE_TYPE, "Texture")));
|
D_METHOD("_setup_material_albedo", "texture", PROPERTY_HINT_RESOURCE_TYPE, "Texture");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("material_get", "index"), &ESSMaterialCache::material_get);
|
ClassDB::bind_method(D_METHOD("material_get", "index"), &ESSMaterialCache::material_get);
|
||||||
ClassDB::bind_method(D_METHOD("material_lod_get", "index"), &ESSMaterialCache::material_lod_get);
|
ClassDB::bind_method(D_METHOD("material_lod_get", "index"), &ESSMaterialCache::material_lod_get);
|
||||||
|
@ -163,7 +163,7 @@ void ESSMaterialCachePCM::_setup_material_albedo(Ref<Texture> texture) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ESSMaterialCachePCM::ESSMaterialCachePCM() {
|
ESSMaterialCachePCM::ESSMaterialCachePCM() {
|
||||||
_packer.instance();
|
_packer.instantiate();
|
||||||
|
|
||||||
#if GODOT4
|
#if GODOT4
|
||||||
#warning implement
|
#warning implement
|
||||||
|
@ -106,10 +106,10 @@ void SpellDamageInfo::receiver_set_bind(Node *value) {
|
|||||||
_receiver = e;
|
_receiver = e;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ref<Reference> SpellDamageInfo::source_get() {
|
Ref<RefCounted> SpellDamageInfo::source_get() {
|
||||||
return _damage_source;
|
return _damage_source;
|
||||||
}
|
}
|
||||||
void SpellDamageInfo::source_set(Ref<Reference> value) {
|
void SpellDamageInfo::source_set(Ref<RefCounted> value) {
|
||||||
_damage_source_type = DAMAGE_SOURCE_UNKNOWN;
|
_damage_source_type = DAMAGE_SOURCE_UNKNOWN;
|
||||||
_damage_source = value;
|
_damage_source = value;
|
||||||
_damage_source_id = 0;
|
_damage_source_id = 0;
|
||||||
|
@ -26,7 +26,7 @@ SOFTWARE.
|
|||||||
#include "core/version.h"
|
#include "core/version.h"
|
||||||
|
|
||||||
#if VERSION_MAJOR > 3
|
#if VERSION_MAJOR > 3
|
||||||
#include "core/object/reference.h"
|
#include "core/object/ref_counted.h"
|
||||||
#else
|
#else
|
||||||
#include "core/reference.h"
|
#include "core/reference.h"
|
||||||
#endif
|
#endif
|
||||||
@ -37,8 +37,8 @@ SOFTWARE.
|
|||||||
class Entity;
|
class Entity;
|
||||||
class Spell;
|
class Spell;
|
||||||
|
|
||||||
class SpellDamageInfo : public Reference {
|
class SpellDamageInfo : public RefCounted {
|
||||||
GDCLASS(SpellDamageInfo, Reference);
|
GDCLASS(SpellDamageInfo, RefCounted);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum DamageSourceType {
|
enum DamageSourceType {
|
||||||
@ -74,8 +74,8 @@ public:
|
|||||||
void receiver_set(Entity *value);
|
void receiver_set(Entity *value);
|
||||||
void receiver_set_bind(Node *value);
|
void receiver_set_bind(Node *value);
|
||||||
|
|
||||||
Ref<Reference> source_get();
|
Ref<RefCounted> source_get();
|
||||||
void source_set(Ref<Reference> value);
|
void source_set(Ref<RefCounted> value);
|
||||||
|
|
||||||
Ref<Spell> spell_source_get();
|
Ref<Spell> spell_source_get();
|
||||||
void spell_source_set(const Ref<Spell> &value);
|
void spell_source_set(const Ref<Spell> &value);
|
||||||
@ -107,7 +107,7 @@ private:
|
|||||||
int _damage_type;
|
int _damage_type;
|
||||||
|
|
||||||
int _damage_source_type;
|
int _damage_source_type;
|
||||||
Ref<Reference> _damage_source;
|
Ref<RefCounted> _damage_source;
|
||||||
int _damage_source_id;
|
int _damage_source_id;
|
||||||
|
|
||||||
Entity *_dealer;
|
Entity *_dealer;
|
||||||
|
@ -107,10 +107,10 @@ void SpellHealInfo::receiver_set_bind(Node *value) {
|
|||||||
_receiver = e;
|
_receiver = e;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ref<Reference> SpellHealInfo::source_get() {
|
Ref<RefCounted> SpellHealInfo::source_get() {
|
||||||
return _heal_source;
|
return _heal_source;
|
||||||
}
|
}
|
||||||
void SpellHealInfo::source_set(Ref<Reference> value) {
|
void SpellHealInfo::source_set(Ref<RefCounted> value) {
|
||||||
_heal_source_type = HEAL_SOURCE_UNKNOWN;
|
_heal_source_type = HEAL_SOURCE_UNKNOWN;
|
||||||
_heal_source = value;
|
_heal_source = value;
|
||||||
_heal_source_id = 0;
|
_heal_source_id = 0;
|
||||||
|
@ -26,7 +26,7 @@ SOFTWARE.
|
|||||||
#include "core/version.h"
|
#include "core/version.h"
|
||||||
|
|
||||||
#if VERSION_MAJOR > 3
|
#if VERSION_MAJOR > 3
|
||||||
#include "core/object/reference.h"
|
#include "core/object/ref_counted.h"
|
||||||
#else
|
#else
|
||||||
#include "core/reference.h"
|
#include "core/reference.h"
|
||||||
#endif
|
#endif
|
||||||
@ -37,8 +37,8 @@ SOFTWARE.
|
|||||||
class Entity;
|
class Entity;
|
||||||
class Spell;
|
class Spell;
|
||||||
|
|
||||||
class SpellHealInfo : public Reference {
|
class SpellHealInfo : public RefCounted {
|
||||||
GDCLASS(SpellHealInfo, Reference);
|
GDCLASS(SpellHealInfo, RefCounted);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum HealSourceType {
|
enum HealSourceType {
|
||||||
@ -77,8 +77,8 @@ public:
|
|||||||
void receiver_set(Entity *value);
|
void receiver_set(Entity *value);
|
||||||
void receiver_set_bind(Node *value);
|
void receiver_set_bind(Node *value);
|
||||||
|
|
||||||
Ref<Reference> source_get();
|
Ref<RefCounted> source_get();
|
||||||
void source_set(Ref<Reference> value);
|
void source_set(Ref<RefCounted> value);
|
||||||
|
|
||||||
Ref<Spell> spell_source_get();
|
Ref<Spell> spell_source_get();
|
||||||
void spell_source_set(const Ref<Spell> &value);
|
void spell_source_set(const Ref<Spell> &value);
|
||||||
@ -110,7 +110,7 @@ private:
|
|||||||
int _heal_type;
|
int _heal_type;
|
||||||
|
|
||||||
int _heal_source_type;
|
int _heal_source_type;
|
||||||
Ref<Reference> _heal_source;
|
Ref<RefCounted> _heal_source;
|
||||||
int _heal_source_id;
|
int _heal_source_id;
|
||||||
|
|
||||||
Entity *_dealer;
|
Entity *_dealer;
|
||||||
|
@ -26,7 +26,7 @@ SOFTWARE.
|
|||||||
#include "core/version.h"
|
#include "core/version.h"
|
||||||
|
|
||||||
#if VERSION_MAJOR > 3
|
#if VERSION_MAJOR > 3
|
||||||
#include "core/object/reference.h"
|
#include "core/object/ref_counted.h"
|
||||||
#include "core/variant/dictionary.h"
|
#include "core/variant/dictionary.h"
|
||||||
#else
|
#else
|
||||||
#include "core/reference.h"
|
#include "core/reference.h"
|
||||||
@ -35,8 +35,8 @@ SOFTWARE.
|
|||||||
|
|
||||||
class ActionBarEntry;
|
class ActionBarEntry;
|
||||||
|
|
||||||
class ActionBarButtonEntry : public Reference {
|
class ActionBarButtonEntry : public RefCounted {
|
||||||
GDCLASS(ActionBarButtonEntry, Reference);
|
GDCLASS(ActionBarButtonEntry, RefCounted);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static const String BINDING_STRING_ACTIONBAR_BUTTON_ENTRY_TYPE;
|
static const String BINDING_STRING_ACTIONBAR_BUTTON_ENTRY_TYPE;
|
||||||
|
@ -136,7 +136,7 @@ void ActionBarEntry::from_dict(const Dictionary &dict) {
|
|||||||
|
|
||||||
for (int i = 0; i < arr.size(); ++i) {
|
for (int i = 0; i < arr.size(); ++i) {
|
||||||
Ref<ActionBarButtonEntry> e;
|
Ref<ActionBarButtonEntry> e;
|
||||||
e.instance();
|
e.instantiate();
|
||||||
|
|
||||||
e->from_dict(arr.get(i));
|
e->from_dict(arr.get(i));
|
||||||
e->set_owner(this);
|
e->set_owner(this);
|
||||||
|
@ -26,7 +26,7 @@ SOFTWARE.
|
|||||||
#include "core/version.h"
|
#include "core/version.h"
|
||||||
|
|
||||||
#if VERSION_MAJOR > 3
|
#if VERSION_MAJOR > 3
|
||||||
#include "core/object/reference.h"
|
#include "core/object/ref_counted.h"
|
||||||
#include "core/templates/vector.h"
|
#include "core/templates/vector.h"
|
||||||
#include "core/variant/array.h"
|
#include "core/variant/array.h"
|
||||||
#include "core/variant/dictionary.h"
|
#include "core/variant/dictionary.h"
|
||||||
@ -41,8 +41,8 @@ SOFTWARE.
|
|||||||
|
|
||||||
class ActionBarProfile;
|
class ActionBarProfile;
|
||||||
|
|
||||||
class ActionBarEntry : public Reference {
|
class ActionBarEntry : public RefCounted {
|
||||||
GDCLASS(ActionBarEntry, Reference);
|
GDCLASS(ActionBarEntry, RefCounted);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Ref<ActionBarProfile> get_owner();
|
Ref<ActionBarProfile> get_owner();
|
||||||
|
@ -99,7 +99,7 @@ Ref<ActionBarEntry> ActionBarProfile::get_action_bar(int index) {
|
|||||||
void ActionBarProfile::remove_action_bar(const int index) {
|
void ActionBarProfile::remove_action_bar(const int index) {
|
||||||
_action_bars.get(index)->set_owner(NULL);
|
_action_bars.get(index)->set_owner(NULL);
|
||||||
|
|
||||||
_action_bars.remove(index);
|
_action_bars.remove_at(index);
|
||||||
|
|
||||||
emit_change();
|
emit_change();
|
||||||
}
|
}
|
||||||
@ -152,7 +152,7 @@ void ActionBarProfile::from_dict(const Dictionary &dict) {
|
|||||||
|
|
||||||
for (int i = 0; i < arr.size(); ++i) {
|
for (int i = 0; i < arr.size(); ++i) {
|
||||||
Ref<ActionBarEntry> e;
|
Ref<ActionBarEntry> e;
|
||||||
e.instance();
|
e.instantiate();
|
||||||
|
|
||||||
e->from_dict(arr.get(i));
|
e->from_dict(arr.get(i));
|
||||||
e->set_owner(this);
|
e->set_owner(this);
|
||||||
|
@ -26,7 +26,7 @@ SOFTWARE.
|
|||||||
#include "core/version.h"
|
#include "core/version.h"
|
||||||
|
|
||||||
#if VERSION_MAJOR > 3
|
#if VERSION_MAJOR > 3
|
||||||
#include "core/object/reference.h"
|
#include "core/object/ref_counted.h"
|
||||||
#include "core/templates/vector.h"
|
#include "core/templates/vector.h"
|
||||||
#include "core/string/ustring.h"
|
#include "core/string/ustring.h"
|
||||||
#include "core/variant/array.h"
|
#include "core/variant/array.h"
|
||||||
@ -43,8 +43,8 @@ SOFTWARE.
|
|||||||
|
|
||||||
class ClassProfile;
|
class ClassProfile;
|
||||||
|
|
||||||
class ActionBarProfile : public Reference {
|
class ActionBarProfile : public RefCounted {
|
||||||
GDCLASS(ActionBarProfile, Reference);
|
GDCLASS(ActionBarProfile, RefCounted);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Ref<ClassProfile> get_owner();
|
Ref<ClassProfile> get_owner();
|
||||||
|
@ -148,10 +148,10 @@ void ClassProfile::from_dict(const Dictionary &dict) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ClassProfile::ClassProfile() {
|
ClassProfile::ClassProfile() {
|
||||||
_action_bar_profile.instance();
|
_action_bar_profile.instantiate();
|
||||||
_action_bar_profile->set_owner(this);
|
_action_bar_profile->set_owner(this);
|
||||||
|
|
||||||
_input_profile.instance();
|
_input_profile.instantiate();
|
||||||
_input_profile->set_owner(this);
|
_input_profile->set_owner(this);
|
||||||
|
|
||||||
_level = 1;
|
_level = 1;
|
||||||
@ -160,10 +160,10 @@ ClassProfile::ClassProfile() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ClassProfile::ClassProfile(const StringName &class_path) {
|
ClassProfile::ClassProfile(const StringName &class_path) {
|
||||||
_action_bar_profile.instance();
|
_action_bar_profile.instantiate();
|
||||||
_action_bar_profile->set_owner(this);
|
_action_bar_profile->set_owner(this);
|
||||||
|
|
||||||
_input_profile.instance();
|
_input_profile.instantiate();
|
||||||
_input_profile->set_owner(this);
|
_input_profile->set_owner(this);
|
||||||
|
|
||||||
_class_path = class_path;
|
_class_path = class_path;
|
||||||
@ -173,10 +173,10 @@ ClassProfile::ClassProfile(const StringName &class_path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ClassProfile::ClassProfile(const String &class_name, const StringName &class_path, const int level, const int xp, const bool locked) {
|
ClassProfile::ClassProfile(const String &class_name, const StringName &class_path, const int level, const int xp, const bool locked) {
|
||||||
_action_bar_profile.instance();
|
_action_bar_profile.instantiate();
|
||||||
_action_bar_profile->set_owner(this);
|
_action_bar_profile->set_owner(this);
|
||||||
|
|
||||||
_input_profile.instance();
|
_input_profile.instantiate();
|
||||||
_input_profile->set_owner(this);
|
_input_profile->set_owner(this);
|
||||||
|
|
||||||
_character_class_name = class_name;
|
_character_class_name = class_name;
|
||||||
|
@ -26,7 +26,7 @@ SOFTWARE.
|
|||||||
#include "core/version.h"
|
#include "core/version.h"
|
||||||
|
|
||||||
#if VERSION_MAJOR > 3
|
#if VERSION_MAJOR > 3
|
||||||
#include "core/object/reference.h"
|
#include "core/object/ref_counted.h"
|
||||||
#include "core/string/ustring.h"
|
#include "core/string/ustring.h"
|
||||||
#include "core/variant/dictionary.h"
|
#include "core/variant/dictionary.h"
|
||||||
#else
|
#else
|
||||||
@ -38,8 +38,8 @@ SOFTWARE.
|
|||||||
#include "actionbar/action_bar_profile.h"
|
#include "actionbar/action_bar_profile.h"
|
||||||
#include "input/input_profile.h"
|
#include "input/input_profile.h"
|
||||||
|
|
||||||
class ClassProfile : public Reference {
|
class ClassProfile : public RefCounted {
|
||||||
GDCLASS(ClassProfile, Reference);
|
GDCLASS(ClassProfile, RefCounted);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
StringName get_class_path() const;
|
StringName get_class_path() const;
|
||||||
|
@ -26,7 +26,7 @@ SOFTWARE.
|
|||||||
#include "core/version.h"
|
#include "core/version.h"
|
||||||
|
|
||||||
#if VERSION_MAJOR > 3
|
#if VERSION_MAJOR > 3
|
||||||
#include "core/object/reference.h"
|
#include "core/object/ref_counted.h"
|
||||||
#include "core/string/ustring.h"
|
#include "core/string/ustring.h"
|
||||||
#else
|
#else
|
||||||
#include "core/reference.h"
|
#include "core/reference.h"
|
||||||
@ -35,8 +35,8 @@ SOFTWARE.
|
|||||||
|
|
||||||
class ClassProfile;
|
class ClassProfile;
|
||||||
|
|
||||||
class InputProfile : public Reference {
|
class InputProfile : public RefCounted {
|
||||||
GDCLASS(InputProfile, Reference);
|
GDCLASS(InputProfile, RefCounted);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Ref<ClassProfile> get_owner();
|
Ref<ClassProfile> get_owner();
|
||||||
|
@ -43,7 +43,7 @@ void InputProfileModifier::set_modifier(int index, String value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void InputProfileModifier::remove_modifier(int index) {
|
void InputProfileModifier::remove_modifier(int index) {
|
||||||
_modifier_actions->remove(index);
|
_modifier_actions->remove_at(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
int InputProfileModifier::get_entry_count() {
|
int InputProfileModifier::get_entry_count() {
|
||||||
@ -67,7 +67,7 @@ void InputProfileModifier::set_entry(int index, Ref<InputProfileModifierEntry> v
|
|||||||
}
|
}
|
||||||
|
|
||||||
void InputProfileModifier::remove_entry(int index) {
|
void InputProfileModifier::remove_entry(int index) {
|
||||||
_entries->remove(index);
|
_entries->remove_at(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
InputProfileModifier::InputProfileModifier() {
|
InputProfileModifier::InputProfileModifier() {
|
||||||
|
@ -26,7 +26,7 @@ SOFTWARE.
|
|||||||
#include "core/version.h"
|
#include "core/version.h"
|
||||||
|
|
||||||
#if VERSION_MAJOR > 3
|
#if VERSION_MAJOR > 3
|
||||||
#include "core/object/reference.h"
|
#include "core/object/ref_counted.h"
|
||||||
#include "core/templates/vector.h"
|
#include "core/templates/vector.h"
|
||||||
#include "core/string/ustring.h"
|
#include "core/string/ustring.h"
|
||||||
#else
|
#else
|
||||||
@ -37,8 +37,8 @@ SOFTWARE.
|
|||||||
|
|
||||||
#include "input_profile_modifier_entry.h"
|
#include "input_profile_modifier_entry.h"
|
||||||
|
|
||||||
class InputProfileModifier : public Reference {
|
class InputProfileModifier : public RefCounted {
|
||||||
GDCLASS(InputProfileModifier, Reference);
|
GDCLASS(InputProfileModifier, RefCounted);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
int get_modifier_count();
|
int get_modifier_count();
|
||||||
|
@ -26,15 +26,15 @@ SOFTWARE.
|
|||||||
#include "core/version.h"
|
#include "core/version.h"
|
||||||
|
|
||||||
#if VERSION_MAJOR > 3
|
#if VERSION_MAJOR > 3
|
||||||
#include "core/object/reference.h"
|
#include "core/object/ref_counted.h"
|
||||||
#include "core/string/ustring.h"
|
#include "core/string/ustring.h"
|
||||||
#else
|
#else
|
||||||
#include "core/reference.h"
|
#include "core/reference.h"
|
||||||
#include "core/ustring.h"
|
#include "core/ustring.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class InputProfileModifierEntry : public Reference {
|
class InputProfileModifierEntry : public RefCounted {
|
||||||
GDCLASS(InputProfileModifierEntry, Reference);
|
GDCLASS(InputProfileModifierEntry, RefCounted);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
String get_action();
|
String get_action();
|
||||||
|
@ -83,7 +83,7 @@ void PlayerProfile::clear_class_profiles() {
|
|||||||
void PlayerProfile::remove_class_profile(const int index) {
|
void PlayerProfile::remove_class_profile(const int index) {
|
||||||
_class_profiles.get(index)->DISCONNECT("changed", this, PlayerProfile, _on_class_profile_changed);
|
_class_profiles.get(index)->DISCONNECT("changed", this, PlayerProfile, _on_class_profile_changed);
|
||||||
|
|
||||||
_class_profiles.remove(index);
|
_class_profiles.remove_at(index);
|
||||||
|
|
||||||
emit_change();
|
emit_change();
|
||||||
}
|
}
|
||||||
@ -161,7 +161,7 @@ void PlayerProfile::from_dict(const Dictionary &dict) {
|
|||||||
|
|
||||||
for (int i = 0; i < arr.size(); ++i) {
|
for (int i = 0; i < arr.size(); ++i) {
|
||||||
Ref<ClassProfile> c;
|
Ref<ClassProfile> c;
|
||||||
c.instance();
|
c.instantiate();
|
||||||
|
|
||||||
c->from_dict(arr.get(i));
|
c->from_dict(arr.get(i));
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ SOFTWARE.
|
|||||||
#include "core/version.h"
|
#include "core/version.h"
|
||||||
|
|
||||||
#if VERSION_MAJOR > 3
|
#if VERSION_MAJOR > 3
|
||||||
#include "core/object/reference.h"
|
#include "core/object/ref_counted.h"
|
||||||
#include "core/string/ustring.h"
|
#include "core/string/ustring.h"
|
||||||
#include "core/variant/dictionary.h"
|
#include "core/variant/dictionary.h"
|
||||||
#else
|
#else
|
||||||
@ -37,8 +37,8 @@ SOFTWARE.
|
|||||||
|
|
||||||
#include "class_profile.h"
|
#include "class_profile.h"
|
||||||
|
|
||||||
class PlayerProfile : public Reference {
|
class PlayerProfile : public RefCounted {
|
||||||
GDCLASS(PlayerProfile, Reference);
|
GDCLASS(PlayerProfile, RefCounted);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static const String DEFAULT_PROFILE_FILE_NAME;
|
static const String DEFAULT_PROFILE_FILE_NAME;
|
||||||
|
@ -140,7 +140,7 @@ SOFTWARE.
|
|||||||
static ESS *entity_data_manager = NULL;
|
static ESS *entity_data_manager = NULL;
|
||||||
static ProfileManager *profile_manager = NULL;
|
static ProfileManager *profile_manager = NULL;
|
||||||
|
|
||||||
void register_entity_spell_system_types() {
|
void initialize_entity_spell_system_module(ModuleInitializationLevel p_level) {
|
||||||
#if PROPS_PRESENT
|
#if PROPS_PRESENT
|
||||||
ClassDB::register_class<PropDataEntity>();
|
ClassDB::register_class<PropDataEntity>();
|
||||||
#endif
|
#endif
|
||||||
@ -280,7 +280,7 @@ void register_entity_spell_system_types() {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void unregister_entity_spell_system_types() {
|
void uninitialize_entity_spell_system_module(ModuleInitializationLevel p_level) {
|
||||||
if (entity_data_manager) {
|
if (entity_data_manager) {
|
||||||
memdelete(entity_data_manager);
|
memdelete(entity_data_manager);
|
||||||
}
|
}
|
||||||
|
@ -20,5 +20,5 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void register_entity_spell_system_types();
|
void initialize_entity_spell_system_module(ModuleInitializationLevel p_level);
|
||||||
void unregister_entity_spell_system_types();
|
void uninitialize_entity_spell_system_module(ModuleInitializationLevel p_level);
|
||||||
|
@ -564,7 +564,7 @@ void ESS::material_set(const int index, const Ref<Material> &value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ESS::material_remove(const int index) {
|
void ESS::material_remove(const int index) {
|
||||||
_materials.remove(index);
|
_materials.remove_at(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ESS::material_get_num() const {
|
int ESS::material_get_num() const {
|
||||||
|
@ -286,7 +286,7 @@ private:
|
|||||||
|
|
||||||
Mutex _material_cache_mutex;
|
Mutex _material_cache_mutex;
|
||||||
|
|
||||||
Map<uint64_t, Ref<ESSMaterialCache>> _material_cache;
|
VMap<uint64_t, Ref<ESSMaterialCache>> _material_cache;
|
||||||
|
|
||||||
#ifdef TEXTURE_PACKER_PRESENT
|
#ifdef TEXTURE_PACKER_PRESENT
|
||||||
int _texture_flags;
|
int _texture_flags;
|
||||||
|
@ -83,7 +83,7 @@ void ProfileManager::clears_player_profiles() {
|
|||||||
_s_player_profiles.clear();
|
_s_player_profiles.clear();
|
||||||
}
|
}
|
||||||
void ProfileManager::removes_player_profile(const int index) {
|
void ProfileManager::removes_player_profile(const int index) {
|
||||||
_s_player_profiles.remove(index);
|
_s_player_profiles.remove_at(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
Ref<PlayerProfile> ProfileManager::getc_player_profile() {
|
Ref<PlayerProfile> ProfileManager::getc_player_profile() {
|
||||||
@ -186,7 +186,7 @@ void ProfileManager::from_dict(const Dictionary &dict) {
|
|||||||
|
|
||||||
for (int i = 0; i < arr.size(); ++i) {
|
for (int i = 0; i < arr.size(); ++i) {
|
||||||
Ref<PlayerProfile> c;
|
Ref<PlayerProfile> c;
|
||||||
c.instance();
|
c.instantiate();
|
||||||
|
|
||||||
c->from_dict(arr.get(i));
|
c->from_dict(arr.get(i));
|
||||||
|
|
||||||
@ -209,7 +209,7 @@ ProfileManager::ProfileManager() {
|
|||||||
_automatic_save = GLOBAL_DEF("ess/profiles/automatic_save", false);
|
_automatic_save = GLOBAL_DEF("ess/profiles/automatic_save", false);
|
||||||
_save_file = GLOBAL_DEF("ess/profiles/save_file", "user://profile.save");
|
_save_file = GLOBAL_DEF("ess/profiles/save_file", "user://profile.save");
|
||||||
|
|
||||||
_c_player_profile.instance();
|
_c_player_profile.instantiate();
|
||||||
|
|
||||||
_c_player_profile->CONNECT("changed", this, ProfileManager, _on_player_profile_changed);
|
_c_player_profile->CONNECT("changed", this, ProfileManager, _on_player_profile_changed);
|
||||||
|
|
||||||
@ -234,8 +234,8 @@ void ProfileManager::_bind_methods() {
|
|||||||
ADD_SIGNAL(MethodInfo("keybinds_changed"));
|
ADD_SIGNAL(MethodInfo("keybinds_changed"));
|
||||||
ADD_SIGNAL(MethodInfo("changed"));
|
ADD_SIGNAL(MethodInfo("changed"));
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_save"));
|
D_METHOD("_save");
|
||||||
BIND_VMETHOD(MethodInfo("_load"));
|
D_METHOD("_load");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("_save"), &ProfileManager::_save);
|
ClassDB::bind_method(D_METHOD("_save"), &ProfileManager::_save);
|
||||||
ClassDB::bind_method(D_METHOD("_load"), &ProfileManager::_load);
|
ClassDB::bind_method(D_METHOD("_load"), &ProfileManager::_load);
|
||||||
|
@ -201,7 +201,7 @@ void CharacterSkeleton2D::remove_model_visual(Ref<ModelVisual> vis) {
|
|||||||
remove_model_visual_entry(vis, e);
|
remove_model_visual_entry(vis, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
_model_visuals.remove(index);
|
_model_visuals.remove_at(index);
|
||||||
|
|
||||||
set_process(true);
|
set_process(true);
|
||||||
_model_dirty = true;
|
_model_dirty = true;
|
||||||
@ -212,7 +212,7 @@ void CharacterSkeleton2D::remove_model_visual_index(int index) {
|
|||||||
set_process(true);
|
set_process(true);
|
||||||
_model_dirty = true;
|
_model_dirty = true;
|
||||||
|
|
||||||
_model_visuals.remove(index);
|
_model_visuals.remove_at(index);
|
||||||
}
|
}
|
||||||
Ref<ModelVisual> CharacterSkeleton2D::get_model_visual(int index) {
|
Ref<ModelVisual> CharacterSkeleton2D::get_model_visual(int index) {
|
||||||
ERR_FAIL_INDEX_V(index, _model_visuals.size(), Ref<ModelVisual>());
|
ERR_FAIL_INDEX_V(index, _model_visuals.size(), Ref<ModelVisual>());
|
||||||
@ -268,7 +268,7 @@ void CharacterSkeleton2D::add_model_visual_entry(Ref<ModelVisual> vis, Ref<Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
Ref<SkeletonModelEntry> e;
|
Ref<SkeletonModelEntry> e;
|
||||||
e.instance();
|
e.instantiate();
|
||||||
|
|
||||||
e->set_priority(vis->get_layer());
|
e->set_priority(vis->get_layer());
|
||||||
//e->set_color(ive->get_color());
|
//e->set_color(ive->get_color());
|
||||||
@ -551,7 +551,7 @@ void CharacterSkeleton2D::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("get_model_visual_count"), &CharacterSkeleton2D::get_model_visual_count);
|
ClassDB::bind_method(D_METHOD("get_model_visual_count"), &CharacterSkeleton2D::get_model_visual_count);
|
||||||
ClassDB::bind_method(D_METHOD("clear_model_visuals"), &CharacterSkeleton2D::clear_model_visuals);
|
ClassDB::bind_method(D_METHOD("clear_model_visuals"), &CharacterSkeleton2D::clear_model_visuals);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_build_model"));
|
D_METHOD("_build_model");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("get_model_dirty"), &CharacterSkeleton2D::get_model_dirty);
|
ClassDB::bind_method(D_METHOD("get_model_dirty"), &CharacterSkeleton2D::get_model_dirty);
|
||||||
ClassDB::bind_method(D_METHOD("set_model_dirty", "value"), &CharacterSkeleton2D::set_model_dirty);
|
ClassDB::bind_method(D_METHOD("set_model_dirty", "value"), &CharacterSkeleton2D::set_model_dirty);
|
||||||
@ -586,7 +586,7 @@ void CharacterSkeleton2D::_bind_methods() {
|
|||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("attach_point_count"), &CharacterSkeleton2D::attach_point_count);
|
ClassDB::bind_method(D_METHOD("attach_point_count"), &CharacterSkeleton2D::attach_point_count);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_common_attach_point_index_get", PropertyInfo(Variant::INT, "point", PROPERTY_HINT_NONE, EntityEnums::BINDING_STRING_COMMON_CHARCATER_SKELETON_POINTS)));
|
D_METHOD("_common_attach_point_index_get", "point", PROPERTY_HINT_NONE, EntityEnums::BINDING_STRING_COMMON_CHARCATER_SKELETON_POINTS);
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("common_attach_point_node_get", "point"), &CharacterSkeleton2D::common_attach_point_node_get);
|
ClassDB::bind_method(D_METHOD("common_attach_point_node_get", "point"), &CharacterSkeleton2D::common_attach_point_node_get);
|
||||||
ClassDB::bind_method(D_METHOD("common_attach_point_add", "point", "scene"), &CharacterSkeleton2D::common_attach_point_add);
|
ClassDB::bind_method(D_METHOD("common_attach_point_add", "point", "scene"), &CharacterSkeleton2D::common_attach_point_add);
|
||||||
|
@ -182,23 +182,23 @@ void CharacterSkeleton3D::bone_additional_mesh_transform_bone_index_set(const in
|
|||||||
_bone_model_additional_mesh_transforms.write[index].bone_index = bone_index;
|
_bone_model_additional_mesh_transforms.write[index].bone_index = bone_index;
|
||||||
}
|
}
|
||||||
|
|
||||||
Transform CharacterSkeleton3D::bone_additional_mesh_transform_transform_get(const int index) const {
|
Transform3D CharacterSkeleton3D::bone_additional_mesh_transform_transform_get(const int index) const {
|
||||||
ERR_FAIL_INDEX_V(index, _bone_model_additional_mesh_transforms.size(), Transform());
|
ERR_FAIL_INDEX_V(index, _bone_model_additional_mesh_transforms.size(), Transform3D());
|
||||||
|
|
||||||
return _bone_model_additional_mesh_transforms[index].transform;
|
return _bone_model_additional_mesh_transforms[index].transform;
|
||||||
}
|
}
|
||||||
void CharacterSkeleton3D::bone_additional_mesh_transform_transform_set(const int index, const Transform &transform) {
|
void CharacterSkeleton3D::bone_additional_mesh_transform_transform_set(const int index, const Transform3D &transform) {
|
||||||
ERR_FAIL_INDEX(index, _bone_model_additional_mesh_transforms.size());
|
ERR_FAIL_INDEX(index, _bone_model_additional_mesh_transforms.size());
|
||||||
|
|
||||||
_bone_model_additional_mesh_transforms.write[index].transform = transform;
|
_bone_model_additional_mesh_transforms.write[index].transform = transform;
|
||||||
}
|
}
|
||||||
|
|
||||||
Transform CharacterSkeleton3D::bone_additional_mesh_transform_user_transform_get(const int index) const {
|
Transform3D CharacterSkeleton3D::bone_additional_mesh_transform_user_transform_get(const int index) const {
|
||||||
ERR_FAIL_INDEX_V(index, _bone_model_additional_mesh_transforms.size(), Transform());
|
ERR_FAIL_INDEX_V(index, _bone_model_additional_mesh_transforms.size(), Transform3D());
|
||||||
|
|
||||||
return _bone_model_additional_mesh_transforms[index].user_transform;
|
return _bone_model_additional_mesh_transforms[index].user_transform;
|
||||||
}
|
}
|
||||||
void CharacterSkeleton3D::bone_additional_mesh_transform_user_transform_set(const int index, const Transform &transform) {
|
void CharacterSkeleton3D::bone_additional_mesh_transform_user_transform_set(const int index, const Transform3D &transform) {
|
||||||
ERR_FAIL_INDEX(index, _bone_model_additional_mesh_transforms.size());
|
ERR_FAIL_INDEX(index, _bone_model_additional_mesh_transforms.size());
|
||||||
|
|
||||||
_bone_model_additional_mesh_transforms.write[index].user_transform = transform;
|
_bone_model_additional_mesh_transforms.write[index].user_transform = transform;
|
||||||
@ -241,7 +241,7 @@ void CharacterSkeleton3D::remove_model_visual(Ref<ModelVisual> vis) {
|
|||||||
remove_model_visual_entry(vis, e);
|
remove_model_visual_entry(vis, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
_model_visuals.remove(index);
|
_model_visuals.remove_at(index);
|
||||||
|
|
||||||
set_process(true);
|
set_process(true);
|
||||||
_model_dirty = true;
|
_model_dirty = true;
|
||||||
@ -252,7 +252,7 @@ void CharacterSkeleton3D::remove_model_visual_index(int index) {
|
|||||||
set_process(true);
|
set_process(true);
|
||||||
_model_dirty = true;
|
_model_dirty = true;
|
||||||
|
|
||||||
_model_visuals.remove(index);
|
_model_visuals.remove_at(index);
|
||||||
}
|
}
|
||||||
Ref<ModelVisual> CharacterSkeleton3D::get_model_visual(int index) {
|
Ref<ModelVisual> CharacterSkeleton3D::get_model_visual(int index) {
|
||||||
ERR_FAIL_INDEX_V(index, _model_visuals.size(), Ref<ModelVisual>());
|
ERR_FAIL_INDEX_V(index, _model_visuals.size(), Ref<ModelVisual>());
|
||||||
@ -308,7 +308,7 @@ void CharacterSkeleton3D::add_model_visual_entry(Ref<ModelVisual> vis, Ref<Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
Ref<SkeletonModelEntry> e;
|
Ref<SkeletonModelEntry> e;
|
||||||
e.instance();
|
e.instantiate();
|
||||||
|
|
||||||
e->set_priority(vis->get_layer());
|
e->set_priority(vis->get_layer());
|
||||||
//e->set_color(ive->get_color());
|
//e->set_color(ive->get_color());
|
||||||
@ -551,13 +551,13 @@ bool CharacterSkeleton3D::_set(const StringName &p_name, const Variant &p_value)
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else if (p == "transform") {
|
} else if (p == "transform") {
|
||||||
Transform tf = p_value;
|
Transform3D tf = p_value;
|
||||||
|
|
||||||
_bone_model_additional_mesh_transforms.write[index].transform = tf;
|
_bone_model_additional_mesh_transforms.write[index].transform = tf;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else if (p == "user_transform") {
|
} else if (p == "user_transform") {
|
||||||
Transform tf = p_value;
|
Transform3D tf = p_value;
|
||||||
|
|
||||||
_bone_model_additional_mesh_transforms.write[index].user_transform = tf;
|
_bone_model_additional_mesh_transforms.write[index].user_transform = tf;
|
||||||
|
|
||||||
@ -624,8 +624,8 @@ void CharacterSkeleton3D::_get_property_list(List<PropertyInfo> *p_list) const {
|
|||||||
|
|
||||||
for (int i = 0; i < _bone_model_additional_mesh_transforms.size(); ++i) {
|
for (int i = 0; i < _bone_model_additional_mesh_transforms.size(); ++i) {
|
||||||
p_list->push_back(PropertyInfo(Variant::INT, "bone_model_additional_mesh_transforms/" + itos(i) + "/bone_index", PROPERTY_HINT_ENUM, ESS::get_singleton()->skeletons_bones_index_get(_entity_type)));
|
p_list->push_back(PropertyInfo(Variant::INT, "bone_model_additional_mesh_transforms/" + itos(i) + "/bone_index", PROPERTY_HINT_ENUM, ESS::get_singleton()->skeletons_bones_index_get(_entity_type)));
|
||||||
p_list->push_back(PropertyInfo(Variant::TRANSFORM, "bone_model_additional_mesh_transforms/" + itos(i) + "/transform"));
|
p_list->push_back(PropertyInfo(Variant::TRANSFORM3D, "bone_model_additional_mesh_transforms/" + itos(i) + "/transform"));
|
||||||
p_list->push_back(PropertyInfo(Variant::TRANSFORM, "bone_model_additional_mesh_transforms/" + itos(i) + "/user_transform"));
|
p_list->push_back(PropertyInfo(Variant::TRANSFORM3D, "bone_model_additional_mesh_transforms/" + itos(i) + "/user_transform"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -651,7 +651,7 @@ void CharacterSkeleton3D::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("get_model_visual_count"), &CharacterSkeleton3D::get_model_visual_count);
|
ClassDB::bind_method(D_METHOD("get_model_visual_count"), &CharacterSkeleton3D::get_model_visual_count);
|
||||||
ClassDB::bind_method(D_METHOD("clear_model_visuals"), &CharacterSkeleton3D::clear_model_visuals);
|
ClassDB::bind_method(D_METHOD("clear_model_visuals"), &CharacterSkeleton3D::clear_model_visuals);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_build_model"));
|
D_METHOD("_build_model");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("get_model_dirty"), &CharacterSkeleton3D::get_model_dirty);
|
ClassDB::bind_method(D_METHOD("get_model_dirty"), &CharacterSkeleton3D::get_model_dirty);
|
||||||
ClassDB::bind_method(D_METHOD("set_model_dirty", "value"), &CharacterSkeleton3D::set_model_dirty);
|
ClassDB::bind_method(D_METHOD("set_model_dirty", "value"), &CharacterSkeleton3D::set_model_dirty);
|
||||||
@ -700,7 +700,7 @@ void CharacterSkeleton3D::_bind_methods() {
|
|||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("attach_point_count"), &CharacterSkeleton3D::attach_point_count);
|
ClassDB::bind_method(D_METHOD("attach_point_count"), &CharacterSkeleton3D::attach_point_count);
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo("_common_attach_point_index_get", PropertyInfo(Variant::INT, "point", PROPERTY_HINT_NONE, EntityEnums::BINDING_STRING_COMMON_CHARCATER_SKELETON_POINTS)));
|
D_METHOD("_common_attach_point_index_get", "point", PROPERTY_HINT_NONE, EntityEnums::BINDING_STRING_COMMON_CHARCATER_SKELETON_POINTS);
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("common_attach_point_node_get", "point"), &CharacterSkeleton3D::common_attach_point_node_get);
|
ClassDB::bind_method(D_METHOD("common_attach_point_node_get", "point"), &CharacterSkeleton3D::common_attach_point_node_get);
|
||||||
ClassDB::bind_method(D_METHOD("common_attach_point_add", "point", "scene"), &CharacterSkeleton3D::common_attach_point_add);
|
ClassDB::bind_method(D_METHOD("common_attach_point_add", "point", "scene"), &CharacterSkeleton3D::common_attach_point_add);
|
||||||
|
@ -98,11 +98,11 @@ public:
|
|||||||
int bone_additional_mesh_transform_bone_index_get(const int index) const;
|
int bone_additional_mesh_transform_bone_index_get(const int index) const;
|
||||||
void bone_additional_mesh_transform_bone_index_set(const int index, const int bone_index);
|
void bone_additional_mesh_transform_bone_index_set(const int index, const int bone_index);
|
||||||
|
|
||||||
Transform bone_additional_mesh_transform_transform_get(const int index) const;
|
Transform3D bone_additional_mesh_transform_transform_get(const int index) const;
|
||||||
void bone_additional_mesh_transform_transform_set(const int index, const Transform &transform);
|
void bone_additional_mesh_transform_transform_set(const int index, const Transform3D &transform);
|
||||||
|
|
||||||
Transform bone_additional_mesh_transform_user_transform_get(const int index) const;
|
Transform3D bone_additional_mesh_transform_user_transform_get(const int index) const;
|
||||||
void bone_additional_mesh_transform_user_transform_set(const int index, const Transform &transform);
|
void bone_additional_mesh_transform_user_transform_set(const int index, const Transform3D &transform);
|
||||||
|
|
||||||
void bone_additional_mesh_transform_set_count(const int size);
|
void bone_additional_mesh_transform_set_count(const int size);
|
||||||
int bone_additional_mesh_transform_get_count() const;
|
int bone_additional_mesh_transform_get_count() const;
|
||||||
@ -161,8 +161,8 @@ protected:
|
|||||||
|
|
||||||
struct BoneModelAdditionalMeshTransforms {
|
struct BoneModelAdditionalMeshTransforms {
|
||||||
int bone_index;
|
int bone_index;
|
||||||
Transform transform;
|
Transform3D transform;
|
||||||
Transform user_transform;
|
Transform3D user_transform;
|
||||||
|
|
||||||
BoneModelAdditionalMeshTransforms() {
|
BoneModelAdditionalMeshTransforms() {
|
||||||
bone_index = 0;
|
bone_index = 0;
|
||||||
|
@ -26,15 +26,15 @@ SOFTWARE.
|
|||||||
#include "core/version.h"
|
#include "core/version.h"
|
||||||
|
|
||||||
#if VERSION_MAJOR > 3
|
#if VERSION_MAJOR > 3
|
||||||
#include "core/object/reference.h"
|
#include "core/object/ref_counted.h"
|
||||||
#else
|
#else
|
||||||
#include "core/reference.h"
|
#include "core/reference.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../data/items/model_visual_entry.h"
|
#include "../data/items/model_visual_entry.h"
|
||||||
|
|
||||||
class SkeletonModelEntry : public Reference {
|
class SkeletonModelEntry : public RefCounted {
|
||||||
GDCLASS(SkeletonModelEntry, Reference);
|
GDCLASS(SkeletonModelEntry, RefCounted);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
int get_count() const;
|
int get_count() const;
|
||||||
|
@ -49,7 +49,7 @@ ESSEntitySpawner::~ESSEntitySpawner() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ESSEntitySpawner::_bind_methods() {
|
void ESSEntitySpawner::_bind_methods() {
|
||||||
BIND_VMETHOD(MethodInfo("_request_entity_spawn", PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "EntityCreateInfo")));
|
D_METHOD("_request_entity_spawn", "info", PROPERTY_HINT_RESOURCE_TYPE, "EntityCreateInfo");
|
||||||
ADD_SIGNAL(MethodInfo("on_entity_spawn", PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "EntityCreateInfo")));
|
ADD_SIGNAL(MethodInfo("on_entity_spawn", PropertyInfo(Variant::OBJECT, "info", PROPERTY_HINT_RESOURCE_TYPE, "EntityCreateInfo")));
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("request_entity_spawn", "info"), &ESSEntitySpawner::request_entity_spawn);
|
ClassDB::bind_method(D_METHOD("request_entity_spawn", "info"), &ESSEntitySpawner::request_entity_spawn);
|
||||||
|
@ -98,10 +98,10 @@ void EntityCreateInfo::set_xp(const int value) {
|
|||||||
_xp = value;
|
_xp = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
Transform EntityCreateInfo::get_transform() const {
|
Transform3D EntityCreateInfo::get_transform() const {
|
||||||
return _transform;
|
return _transform;
|
||||||
}
|
}
|
||||||
void EntityCreateInfo::set_transform(const Transform &value) {
|
void EntityCreateInfo::set_transform(const Transform3D &value) {
|
||||||
_transform = value;
|
_transform = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -205,7 +205,7 @@ void EntityCreateInfo::_from_dict(const Dictionary &dict) {
|
|||||||
_entity_name = dict.get("entity_name", "");
|
_entity_name = dict.get("entity_name", "");
|
||||||
_level = dict.get("level", 0);
|
_level = dict.get("level", 0);
|
||||||
_xp = dict.get("xp", 0);
|
_xp = dict.get("xp", 0);
|
||||||
_transform = dict.get("transform", Transform());
|
_transform = dict.get("transform", Transform3D());
|
||||||
_transform2d = dict.get("transform2d", Transform2D());
|
_transform2d = dict.get("transform2d", Transform2D());
|
||||||
_species_instance = dict.get("species_instance", Ref<SpeciesInstance>());
|
_species_instance = dict.get("species_instance", Ref<SpeciesInstance>());
|
||||||
_serialized_data = dict.get("serialized_data", Dictionary());
|
_serialized_data = dict.get("serialized_data", Dictionary());
|
||||||
@ -272,11 +272,11 @@ void EntityCreateInfo::_bind_methods() {
|
|||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("get_transform"), &EntityCreateInfo::get_transform);
|
ClassDB::bind_method(D_METHOD("get_transform"), &EntityCreateInfo::get_transform);
|
||||||
ClassDB::bind_method(D_METHOD("set_transform", "value"), &EntityCreateInfo::set_transform);
|
ClassDB::bind_method(D_METHOD("set_transform", "value"), &EntityCreateInfo::set_transform);
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM, "transform"), "set_transform", "get_transform");
|
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM3D, "transform"), "set_transform", "get_transform");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("get_transform2d"), &EntityCreateInfo::get_transform2d);
|
ClassDB::bind_method(D_METHOD("get_transform2d"), &EntityCreateInfo::get_transform2d);
|
||||||
ClassDB::bind_method(D_METHOD("set_transform2d", "value"), &EntityCreateInfo::set_transform2d);
|
ClassDB::bind_method(D_METHOD("set_transform2d", "value"), &EntityCreateInfo::set_transform2d);
|
||||||
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM2D, "transform2d"), "set_transform2d", "get_transform2d");
|
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM3D2D, "transform2d"), "set_transform2d", "get_transform2d");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("get_entity_data"), &EntityCreateInfo::get_entity_data);
|
ClassDB::bind_method(D_METHOD("get_entity_data"), &EntityCreateInfo::get_entity_data);
|
||||||
ClassDB::bind_method(D_METHOD("set_entity_data", "value"), &EntityCreateInfo::set_entity_data);
|
ClassDB::bind_method(D_METHOD("set_entity_data", "value"), &EntityCreateInfo::set_entity_data);
|
||||||
@ -299,8 +299,8 @@ void EntityCreateInfo::_bind_methods() {
|
|||||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "created_entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), "set_created_entity", "get_created_entity");
|
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "created_entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"), "set_created_entity", "get_created_entity");
|
||||||
|
|
||||||
//Serialization
|
//Serialization
|
||||||
BIND_VMETHOD(MethodInfo("_from_dict", PropertyInfo(Variant::DICTIONARY, "dict")));
|
D_METHOD("_from_dict", "dict");
|
||||||
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::DICTIONARY, "dict"), "_to_dict"));
|
D_METHOD("_to_dict");
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("from_dict", "dict"), &EntityCreateInfo::from_dict);
|
ClassDB::bind_method(D_METHOD("from_dict", "dict"), &EntityCreateInfo::from_dict);
|
||||||
ClassDB::bind_method(D_METHOD("to_dict"), &EntityCreateInfo::to_dict);
|
ClassDB::bind_method(D_METHOD("to_dict"), &EntityCreateInfo::to_dict);
|
||||||
|
@ -26,7 +26,7 @@ SOFTWARE.
|
|||||||
#include "core/version.h"
|
#include "core/version.h"
|
||||||
|
|
||||||
#if VERSION_MAJOR > 3
|
#if VERSION_MAJOR > 3
|
||||||
#include "core/object/reference.h"
|
#include "core/object/ref_counted.h"
|
||||||
#include "core/string/ustring.h"
|
#include "core/string/ustring.h"
|
||||||
#else
|
#else
|
||||||
#include "core/reference.h"
|
#include "core/reference.h"
|
||||||
@ -39,8 +39,8 @@ class EntityData;
|
|||||||
class SpeciesInstance;
|
class SpeciesInstance;
|
||||||
class Entity;
|
class Entity;
|
||||||
|
|
||||||
class EntityCreateInfo : public Reference {
|
class EntityCreateInfo : public RefCounted {
|
||||||
GDCLASS(EntityCreateInfo, Reference);
|
GDCLASS(EntityCreateInfo, RefCounted);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
int get_guid() const;
|
int get_guid() const;
|
||||||
@ -73,8 +73,8 @@ public:
|
|||||||
int get_xp() const;
|
int get_xp() const;
|
||||||
void set_xp(const int value);
|
void set_xp(const int value);
|
||||||
|
|
||||||
Transform get_transform() const;
|
Transform3D get_transform() const;
|
||||||
void set_transform(const Transform &value);
|
void set_transform(const Transform3D &value);
|
||||||
|
|
||||||
Transform2D get_transform2d() const;
|
Transform2D get_transform2d() const;
|
||||||
void set_transform2d(const Transform2D &value);
|
void set_transform2d(const Transform2D &value);
|
||||||
@ -118,7 +118,7 @@ private:
|
|||||||
int _level;
|
int _level;
|
||||||
int _xp;
|
int _xp;
|
||||||
|
|
||||||
Transform _transform;
|
Transform3D _transform;
|
||||||
Transform2D _transform2d;
|
Transform2D _transform2d;
|
||||||
|
|
||||||
Ref<EntityData> _entity_data;
|
Ref<EntityData> _entity_data;
|
||||||
|
Loading…
Reference in New Issue
Block a user