diff --git a/src/EcsWorld.cs b/src/EcsWorld.cs index da8e41d..79b9c6d 100644 --- a/src/EcsWorld.cs +++ b/src/EcsWorld.cs @@ -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 diff --git a/src/Interfaces/IEcsReadonlyTable.cs b/src/Interfaces/IEcsReadonlyTable.cs index d721cc2..ec2b50d 100644 --- a/src/Interfaces/IEcsReadonlyTable.cs +++ b/src/Interfaces/IEcsReadonlyTable.cs @@ -20,7 +20,6 @@ namespace DCFApixels.DragonECS public int GetComponentID(); public bool IsMaskCompatible(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