mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-22 17:18:12 +01:00
19 lines
599 B
C++
19 lines
599 B
C++
|
#include "entity_resource_data.h"
|
||
|
|
||
|
Ref<EntityResource> EntityResourceData::get_entity_resource_instance() {
|
||
|
if (has_method("_get_entity_resource_instance")) {
|
||
|
return call("_get_entity_resource_instance");
|
||
|
}
|
||
|
|
||
|
return Ref<EntityResource>();
|
||
|
}
|
||
|
|
||
|
EntityResourceData::EntityResourceData() {
|
||
|
}
|
||
|
|
||
|
void EntityResourceData::_bind_methods() {
|
||
|
BIND_VMETHOD(MethodInfo(PropertyInfo(Variant::OBJECT, "res", PROPERTY_HINT_RESOURCE_TYPE, "EntityResource"), "_get_entity_resource_instance"));
|
||
|
|
||
|
ClassDB::bind_method(D_METHOD("get_entity_resource_instance"), &EntityResourceData::get_entity_resource_instance);
|
||
|
}
|