Array has(var value) function

This commit is contained in:
Pawel Kowal 2016-07-02 19:03:35 +02:00
parent 1b9433594e
commit 96eb97cbbf
3 changed files with 7 additions and 0 deletions

View file

@ -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);