remove useless

This commit is contained in:
Mikhail 2023-04-12 23:14:24 +08:00
parent 6d357fc948
commit df54e7bac7
2 changed files with 0 additions and 22 deletions

View File

@ -226,27 +226,6 @@ namespace DCFApixels.DragonECS
}
return true;
}
public bool IsMaskCompatibleWithout(EcsComponentMask mask, int entity, int otherComponentID)
{
#if (DEBUG && !DISABLE_DRAGONECS_DEBUG) || !DRAGONECS_NO_SANITIZE_CHECKS
if (mask.WorldArchetypeType != typeof(TWorldArchetype))
throw new EcsFrameworkException("mask.WorldArchetypeType != typeof(TTableArhetype)");
#endif
for (int i = 0, iMax = mask.Inc.Length; i < iMax; i++)
{
int componentID = mask.Inc[i];
if (componentID == otherComponentID || !_pools[componentID].Has(entity))
return false;
}
for (int i = 0, iMax = mask.Exc.Length; i < iMax; i++)
{
int componentID = mask.Exc[i];
if (componentID != otherComponentID && _pools[componentID].Has(entity))
return false;
}
return true;
}
#endregion
#region Entity

View File

@ -20,7 +20,6 @@ namespace DCFApixels.DragonECS
public int GetComponentID<T>();
public bool IsMaskCompatible<TInc, TExc>(int entityID) where TInc : struct, IInc where TExc : struct, IExc;
public bool IsMaskCompatible(EcsComponentMask mask, int entityID);
public bool IsMaskCompatibleWithout(EcsComponentMask mask, int entity, int componentID);
#endregion
#region Internal Methods