mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Array has(var value) function
This commit is contained in:
parent
1b9433594e
commit
96eb97cbbf
3 changed files with 7 additions and 0 deletions
|
@ -200,6 +200,10 @@ int Array::count(const Variant& p_value) const {
|
|||
return amount;
|
||||
}
|
||||
|
||||
bool Array::has(const Variant& p_value) const {
|
||||
return _p->array.find(p_value, 0) != -1;
|
||||
}
|
||||
|
||||
void Array::remove(int p_pos) {
|
||||
|
||||
_p->array.remove(p_pos);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue