Merge branch 'main' into readme

This commit is contained in:
Mikhail 2024-08-05 08:45:28 +08:00
commit 3912181bff
4 changed files with 16 additions and 6 deletions

View File

@ -10,7 +10,7 @@
<RootNamespace>DCFApixels.DragonECS</RootNamespace>
<Title>DragonECS</Title>
<Version>0.8.39</Version>
<Version>0.8.41</Version>
<Authors>DCFApixels</Authors>
<Description>ECS Framework for Game Engines with C# and .Net Platform</Description>
<Copyright>DCFApixels</Copyright>

7
README-ZN.md.meta Normal file
View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 877c188fb31b69045adeec8ca9a19b33
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -8,7 +8,7 @@
"displayName": "DragonECS",
"description": "C# Entity Component System Framework",
"unity": "2020.3",
"version": "0.8.39",
"version": "0.8.41",
"repository": {
"type": "git",
"url": "https://github.com/DCFApixels/DragonECS.git"

View File

@ -373,14 +373,14 @@ namespace DCFApixels.DragonECS
#if (DEBUG && !DISABLE_DEBUG) || !DISABLE_DRAGONECS_ASSERT_CHEKS
if (mask._worldID != id) { Throw.World_MaskDoesntBelongWorld(); }
#endif
for (int i = 0, iMax = mask._incChunckMasks.Length; i < iMax; i++)
for (int i = 0, iMax = mask._inc.Length; i < iMax; i++)
{
if (!_pools[mask._inc[i]].Has(entityID))
{
return false;
}
}
for (int i = 0, iMax = mask._excChunckMasks.Length; i < iMax; i++)
for (int i = 0, iMax = mask._exc.Length; i < iMax; i++)
{
if (_pools[mask._exc[i]].Has(entityID))
{
@ -553,9 +553,12 @@ namespace DCFApixels.DragonECS
}
for (int i = 0; i < _groups.Count; i++)
{
if (_groups[i].TryGetTarget(out EcsGroup group) && group.IsReleased)
if (_groups[i].TryGetTarget(out EcsGroup group))
{
group.OnReleaseDelEntityBuffer_Internal(buffer);
if(group.IsReleased)
{
group.OnReleaseDelEntityBuffer_Internal(buffer);
}
}
else
{