You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Merge pull request #43398 from KoBeWi/add_an_array_to_another_array_but_with_a_method
Add append_array() method to Array class
This commit is contained in:
@@ -192,6 +192,11 @@ void Array::push_back(const Variant &p_value) {
|
||||
_p->array.push_back(p_value);
|
||||
}
|
||||
|
||||
void Array::append_array(const Array &p_array) {
|
||||
ERR_FAIL_COND(!_p->typed.validate(p_array, "append_array"));
|
||||
_p->array.append_array(p_array._p->array);
|
||||
}
|
||||
|
||||
Error Array::resize(int p_new_size) {
|
||||
return _p->array.resize(p_new_size);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user