MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / push_back

Method push_back

core/variant/array.cpp:286–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286void Array::push_back(const Variant &p_value) {
287 ERR_FAIL_COND_MSG(_p->read_only, "Array is in read-only state.");
288 Variant value = p_value;
289 ERR_FAIL_COND(!_p->typed.validate(value, "push_back"));
290 _p->array.push_back(std::move(value));
291}
292
293void Array::append_array(const Array &p_array) {
294 ERR_FAIL_COND_MSG(_p->read_only, "Array is in read-only state.");

Callers 15

register_base_helperMethod · 0.45
get_property_listMethod · 0.45
_send_object_idsMethod · 0.45
SceneDebuggerObjectMethod · 0.45
serializeMethod · 0.45
deserializeMethod · 0.45
SceneDebuggerTreeMethod · 0.45
_remove_node_funcMethod · 0.45
_send_idsMethod · 0.45

Calls 2

moveFunction · 0.85
validateMethod · 0.45

Tested by 15

_bind_methodsMethod · 0.36
testFunction · 0.36
to_dict_listFunction · 0.36
make_tests_for_dirMethod · 0.36
get_legacy_hashesMethod · 0.36
_get_property_listMethod · 0.36
set_objectsMethod · 0.36
add_stack_variableMethod · 0.36
add_focusableMethod · 0.36
add_custom_controlMethod · 0.36
add_property_editorMethod · 0.36