last works ...

This commit is contained in:
2025-10-20 20:21:17 +03:30
parent bc89de0b5e
commit 30c89368c1
6 changed files with 1750 additions and 1260 deletions
@@ -5351,6 +5351,121 @@ int ExtractInsides(
return result;
}
/**
* Extract all Items which Specified Bar is Acted them ...
*
* @param bar: reference to Specified Bar ...
* @param dest: reference to result ...
* @param source: reference collection to provide source ...
*
* @return ( int )
*/
int ExtractActeds(
XOHCL &bar,
XBoxZone &dest[],
XBoxZone &source[] //
)
{
//
int result = 0;
//
// Prepare ...
XClean(dest);
//
// Validate ...
bool has = bar.IsValid() &&
HasChild(source);
if (!result)
{
return result;
}
//
int count = ArraySize(source);
for (int i = 0; i < count; i++)
{
//
has = IsActed(
bar,
source[i] //
);
if (has)
{
//
AddIfNotExists(
source[i],
dest //
);
}
}
//
result = ArraySize(dest);
//
return result;
}
/**
* Extract all Items which Specified Bar is Breaked them ...
*
* @param bar: reference to Specified Bar ...
* @param dest: reference to result ...
* @param source: reference collection to provide source ...
*
* @return ( int )
*/
int ExtractBreakeds(
XOHCL &bar,
XBoxZone &dest[],
XBoxZone &source[] //
)
{
//
int result = 0;
//
// Prepare ...
SpecifiedClean(dest);
//
// Validate ...
bool has = bar.IsValid() &&
HasChild(source);
if (!result)
{
return result;
}
//
int count = ArraySize(source);
for (int i = 0; i < count; i++)
{
//
has = IsBreaked(
bar,
source[i] //
);
if (has)
{
//
AddIfNotExists(
source[i],
dest //
);
}
}
//
result = ArraySize(dest);
//
return result;
}
/**
* Collect all Bars which Breakes Specified Zone ...
*