MCPcopy Create free account
hub / github.com/GodotECS/godex / static_get

Method static_get

components/dynamic_component.cpp:77–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77bool DynamicComponentInfo::static_get(const void *p_self, const DynamicComponentInfo *p_info, const StringName &p_name, Variant &r_data) {
78 const uint32_t index = p_info->get_property_id(p_name);
79 return static_get(p_self, p_info, index, r_data);
80}
81
82bool DynamicComponentInfo::static_set(void *p_self, const DynamicComponentInfo *p_info, const uint32_t p_index, const Variant &p_data) {
83 ERR_FAIL_COND_V_MSG(p_index >= p_info->properties.size(), false, "You can't set this data to this VariantComponent.");

Callers

nothing calls this directly

Calls 2

get_property_idMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected