mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
remove useless
This commit is contained in:
parent
6d357fc948
commit
df54e7bac7
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user