mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-22 17:18:12 +01:00
Added a _canc_interact vmethod as well.
This commit is contained in:
parent
4aad057925
commit
bd6d2cfde5
@ -1220,6 +1220,10 @@ void Entity::sinteract() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool Entity::canc_interact() {
|
bool Entity::canc_interact() {
|
||||||
|
if (has_method("_canc_interact")) {
|
||||||
|
return call("_canc_interact");
|
||||||
|
}
|
||||||
|
|
||||||
if (!ObjectDB::instance_validate(_c_target)) {
|
if (!ObjectDB::instance_validate(_c_target)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -3751,6 +3755,8 @@ void Entity::_bind_methods() {
|
|||||||
BIND_VMETHOD(MethodInfo("_con_xp_gained", PropertyInfo(Variant::INT, "value")));
|
BIND_VMETHOD(MethodInfo("_con_xp_gained", PropertyInfo(Variant::INT, "value")));
|
||||||
BIND_VMETHOD(MethodInfo("_con_level_up", PropertyInfo(Variant::INT, "value")));
|
BIND_VMETHOD(MethodInfo("_con_level_up", PropertyInfo(Variant::INT, "value")));
|
||||||
|
|
||||||
|
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::BOOL, "value"), "_canc_interact"));
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("con_cast_failed", "info"), &Entity::con_cast_failed);
|
ClassDB::bind_method(D_METHOD("con_cast_failed", "info"), &Entity::con_cast_failed);
|
||||||
ClassDB::bind_method(D_METHOD("con_cast_started", "info"), &Entity::con_cast_started);
|
ClassDB::bind_method(D_METHOD("con_cast_started", "info"), &Entity::con_cast_started);
|
||||||
ClassDB::bind_method(D_METHOD("con_cast_state_changed", "info"), &Entity::con_cast_state_changed);
|
ClassDB::bind_method(D_METHOD("con_cast_state_changed", "info"), &Entity::con_cast_state_changed);
|
||||||
|
Loading…
Reference in New Issue
Block a user