Updating functions BIND_VMETHOD to D_METHOD plus some other tweaks

This commit is contained in:
Your Name 2022-08-29 21:45:48 -04:00
parent 32907bc4ec
commit 924a18db6f
8 changed files with 53 additions and 53 deletions

View File

@ -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
D_METHOD("_notification_saura", "what", "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"); D_METHOD("_notification_saura", "what", "data", "AuraData");
D_METHOD("_notification_sheal", "what", "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellHealInfo"); D_METHOD("_notification_sheal", "what", "info", "SpellHealInfo");
D_METHOD("_notification_scast", "what", "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo"); D_METHOD("_notification_scast", "what", "info", "SpellCastInfo");
D_METHOD("_notification_sdamage", "what", "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo"); D_METHOD("_notification_sdamage", "what", "info", "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,7 +426,7 @@ 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);
D_METHOD("_notification_sdeath", "data", PROPERTY_HINT_RESOURCE_TYPE, "Entity"); D_METHOD("_notification_sdeath", "data", "Entity");
D_METHOD("_notification_scooldown_added", "id", "value"); D_METHOD("_notification_scooldown_added", "id", "value");
D_METHOD("_notification_scooldown_removed", "id", "value"); D_METHOD("_notification_scooldown_removed", "id", "value");
@ -434,23 +434,23 @@ void EntityAI::_bind_methods() {
D_METHOD("_notification_scategory_cooldown_added", "id", "value"); D_METHOD("_notification_scategory_cooldown_added", "id", "value");
D_METHOD("_notification_scategory_cooldown_removed", "id", "value"); D_METHOD("_notification_scategory_cooldown_removed", "id", "value");
D_METHOD("_notification_sgcd_started", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "gcd"); D_METHOD("_notification_sgcd_started", "entity", "Entity", "gcd");
D_METHOD("_notification_sgcd_finished", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"); D_METHOD("_notification_sgcd_finished", "entity", "Entity");
D_METHOD("_notification_sxp_gained", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "value"); D_METHOD("_notification_sxp_gained", "entity", "Entity", "value");
D_METHOD("_notification_slevel_up", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "value"); D_METHOD("_notification_slevel_up", "entity", "Entity", "value");
D_METHOD("_notification_sentity_resource_added", "resource", PROPERTY_HINT_RESOURCE_TYPE, "EntityResource"); D_METHOD("_notification_sentity_resource_added", "resource", "EntityResource");
D_METHOD("_notification_sentity_resource_removed", "resource", PROPERTY_HINT_RESOURCE_TYPE, "EntityResource"); D_METHOD("_notification_sentity_resource_removed", "resource", "EntityResource");
//Equipment //Equipment
D_METHOD("_equip_should_deny", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "equip_slot", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"); D_METHOD("_equip_should_deny", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "equip_slot", "item", "ItemInstance");
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"); 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", "ItemInstance", "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"); 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", "ItemInstance", "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"); 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", "ItemInstance", "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"); 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", "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);

View File

@ -378,7 +378,7 @@ EntityClassData::~EntityClassData() {
} }
void EntityClassData::_bind_methods() { void EntityClassData::_bind_methods() {
D_METHOD("_setup_resources", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"); D_METHOD("_setup_resources", "entity", "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);

View File

@ -265,8 +265,8 @@ void EntityData::_validate_property(PropertyInfo &property) const {
void EntityData::_bind_methods() { void EntityData::_bind_methods() {
//Interactions //Interactions
D_METHOD("_cans_interact", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"); D_METHOD("_cans_interact", "entity", "Entity");
D_METHOD("_sinteract", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"); D_METHOD("_sinteract", "entity", "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);

View File

@ -6837,11 +6837,11 @@ void Entity::_bind_methods() {
D_METHOD("_notification_sxp_gained", "value"); D_METHOD("_notification_sxp_gained", "value");
D_METHOD("_notification_slevel_up", "value"); D_METHOD("_notification_slevel_up", "value");
D_METHOD("_notification_sentity_resource_added", "resource", PROPERTY_HINT_RESOURCE_TYPE, "EntityResource"); D_METHOD("_notification_sentity_resource_added", "resource", "EntityResource");
D_METHOD("_notification_sentity_resource_removed", "resource", PROPERTY_HINT_RESOURCE_TYPE, "EntityResource"); D_METHOD("_notification_sentity_resource_removed", "resource", "EntityResource");
D_METHOD("_son_target_changed", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "old_target", PROPERTY_HINT_RESOURCE_TYPE, "Entity"); D_METHOD("_son_target_changed", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "old_target", "Entity");
D_METHOD("_con_target_changed", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "old_target", PROPERTY_HINT_RESOURCE_TYPE, "Entity"); D_METHOD("_con_target_changed", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "old_target", "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")));
D_METHOD("_notification_saura", "what", "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"); D_METHOD("_notification_saura", "what", "data", "AuraData");
D_METHOD("_notification_sheal", "what", "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellHealInfo"); D_METHOD("_notification_sheal", "what", "info", "SpellHealInfo");
D_METHOD("_notification_scast", "what", "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo"); D_METHOD("_notification_scast", "what", "info", "SpellCastInfo");
D_METHOD("_notification_sdamage", "what", "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo"); D_METHOD("_notification_sdamage", "what", "info", "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")));
D_METHOD("_notification_caura", "what", "data", PROPERTY_HINT_RESOURCE_TYPE, "AuraData"); D_METHOD("_notification_caura", "what", "data", "AuraData");
D_METHOD("_notification_cheal", "what", "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellHealInfo"); D_METHOD("_notification_cheal", "what", "info", "SpellHealInfo");
D_METHOD("_notification_ccast", "what", "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellCastInfo"); D_METHOD("_notification_ccast", "what", "info", "SpellCastInfo");
D_METHOD("_notification_cdamage", "what", "info", PROPERTY_HINT_RESOURCE_TYPE, "SpellDamageInfo"); D_METHOD("_notification_cdamage", "what", "info", "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);
@ -7021,8 +7021,8 @@ void Entity::_bind_methods() {
D_METHOD("_notification_cxp_gained", "value"); D_METHOD("_notification_cxp_gained", "value");
D_METHOD("_notification_clevel_up", "value"); D_METHOD("_notification_clevel_up", "value");
D_METHOD("_notification_centity_resource_added", "resource", PROPERTY_HINT_RESOURCE_TYPE, "EntityResource"); D_METHOD("_notification_centity_resource_added", "resource", "EntityResource");
D_METHOD("_notification_centity_resource_removed", "resource", PROPERTY_HINT_RESOURCE_TYPE, "EntityResource"); D_METHOD("_notification_centity_resource_removed", "resource", "EntityResource");
D_METHOD("_canc_interact"); D_METHOD("_canc_interact");
D_METHOD("_cans_interact"); D_METHOD("_cans_interact");
@ -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
D_METHOD("_gets_relation_to", "to", PROPERTY_HINT_RESOURCE_TYPE, "Entity"); D_METHOD("_gets_relation_to", "to", "Entity");
D_METHOD("_getc_relation_to", "to", PROPERTY_HINT_RESOURCE_TYPE, "Entity"); D_METHOD("_getc_relation_to", "to", "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")));
D_METHOD("_equip_should_deny", "equip_slot", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"); D_METHOD("_equip_should_deny", "equip_slot", "item", "ItemInstance");
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"); D_METHOD("_equip_son_success", PropertyInfo(Variant::INT, "equip_slot", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance", "old_item", "ItemInstance", "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"); D_METHOD("_equip_son_fail", PropertyInfo(Variant::INT, "equip_slot", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance", "old_item", "ItemInstance", "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"); D_METHOD("_equip_con_success", PropertyInfo(Variant::INT, "equip_slot", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance", "old_item", "ItemInstance", "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"); D_METHOD("_equip_con_fail", PropertyInfo(Variant::INT, "equip_slot", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance", "old_item", "ItemInstance", "bag_slot");
ADD_SIGNAL(MethodInfo("equipment_changed", PropertyInfo(Variant::INT, "slot"))); ADD_SIGNAL(MethodInfo("equipment_changed", PropertyInfo(Variant::INT, "slot")));
@ -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);
D_METHOD("_equip_can_equip_item", "equip_slot", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"); D_METHOD("_equip_can_equip_item", "equip_slot", "item", "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);
D_METHOD("_equip_applys_item", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"); D_METHOD("_equip_applys_item", "item", "ItemInstance");
D_METHOD("_equip_deapplys_item", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"); D_METHOD("_equip_deapplys_item", "item", "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);
D_METHOD("_equip_applyc_item", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"); D_METHOD("_equip_applyc_item", "item", "ItemInstance");
D_METHOD("_equip_deapplyc_item", "item", PROPERTY_HINT_RESOURCE_TYPE, "ItemInstance"); D_METHOD("_equip_deapplyc_item", "item", "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);

View File

@ -438,11 +438,11 @@ void EntityResource::_bind_methods() {
D_METHOD("_notification_sstat_changed", "statid", "curent"); D_METHOD("_notification_sstat_changed", "statid", "curent");
D_METHOD("_notification_cstat_changed", "statid", "curent"); D_METHOD("_notification_cstat_changed", "statid", "curent");
D_METHOD("_ons_target_changed", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "old_target", PROPERTY_HINT_RESOURCE_TYPE, "Entity"); D_METHOD("_ons_target_changed", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "old_target", "Entity");
D_METHOD("_onc_target_changed", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "old_target", PROPERTY_HINT_RESOURCE_TYPE, "Entity"); D_METHOD("_onc_target_changed", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity", "old_target", "Entity");
D_METHOD("_ons_added", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"); D_METHOD("_ons_added", "entity", "Entity");
D_METHOD("_onc_added", "entity", PROPERTY_HINT_RESOURCE_TYPE, "Entity"); D_METHOD("_onc_added", "entity", "Entity");
D_METHOD("_process_server", "delta"); D_METHOD("_process_server", "delta");
D_METHOD("_process_client", "delta"); D_METHOD("_process_client", "delta");

View File

@ -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);
D_METHOD("_setup_material_albedo", "texture", PROPERTY_HINT_RESOURCE_TYPE, "Texture"); D_METHOD("_setup_material_albedo", "texture", "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);

View File

@ -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 initialize_entity_spell_system_module(ModuleInitializationLevel p_level) { void initialize_entity_spell_system_module(GDNativeInitializationLevel p_level) {
#if PROPS_PRESENT #if PROPS_PRESENT
ClassDB::register_class<PropDataEntity>(); ClassDB::register_class<PropDataEntity>();
#endif #endif
@ -280,7 +280,7 @@ void initialize_entity_spell_system_module(ModuleInitializationLevel p_level) {
#endif #endif
} }
void uninitialize_entity_spell_system_module(ModuleInitializationLevel p_level) { void uninitialize_entity_spell_system_module(GDNativeInitializationLevel p_level) {
if (entity_data_manager) { if (entity_data_manager) {
memdelete(entity_data_manager); memdelete(entity_data_manager);
} }

View File

@ -49,7 +49,7 @@ ESSEntitySpawner::~ESSEntitySpawner() {
} }
void ESSEntitySpawner::_bind_methods() { void ESSEntitySpawner::_bind_methods() {
D_METHOD("_request_entity_spawn", "info", PROPERTY_HINT_RESOURCE_TYPE, "EntityCreateInfo"); D_METHOD("_request_entity_spawn", "info", "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);