mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Use Vector for storing areas
This commit is contained in:
parent
ba194115bc
commit
4b3b5eba86
2 changed files with 13 additions and 5 deletions
|
@ -149,7 +149,16 @@ public:
|
|||
sort_custom<_DefaultComparator<T> >();
|
||||
}
|
||||
|
||||
void ordered_insert(const T& p_val) {
|
||||
int i;
|
||||
for (i=0; i<size(); i++) {
|
||||
|
||||
if (p_val < operator[](i)) {
|
||||
break;
|
||||
};
|
||||
};
|
||||
insert(i, p_val);
|
||||
}
|
||||
|
||||
void operator=(const Vector& p_from);
|
||||
Vector(const Vector& p_from);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue