last ...
This commit is contained in:
@@ -1624,6 +1624,49 @@ bool HasInsideBox(
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove Specified Box from Collection ...
|
||||
*/
|
||||
bool RemoveBox(
|
||||
XBoxZone &box,
|
||||
XBoxZone &boxes[] //
|
||||
)
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
result =
|
||||
box.IsValid() &&
|
||||
HasChild(boxes);
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
int idx = -1;
|
||||
result = FindBoxIndex(
|
||||
idx,
|
||||
box,
|
||||
boxes //
|
||||
);
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
result = ArrayRemove(
|
||||
boxes,
|
||||
idx,
|
||||
1 //
|
||||
);
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts to XBoxZone ...
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user