ECS/Project/Project/ECS/EntityManager/EntityManager.cpp
//	Check if Component Type B is dependent on Component Type A. (That is, Component Type A was required when Component Type B was added.)
Check if Component Type B is dependent on Component Type A. (That is, Component Type A was required when Component Type B was added.)
Check if Component Type B is dependent on Component Type A . ( That is Component Type A was required when Component Type B was added . )
bool EntityManager::checkComponentTypeDependency(const ComponentType & componentTypeA, const ComponentType & componentTypeB)
{
	if (componentTypeA == componentTypeB)
	{
		return false;
	}
	else
	{
		return (((long int)componentTypeA & getComponentTypeRequirements(componentTypeB)) == (long int) componentTypeA);
	}
}
bool EntityManager :: checkComponentTypeDependency ( const ComponentType & componentTypeA , const ComponentType & componentTypeB ) { if ( componentTypeA == componentTypeB ) { return false ; } else { return ( ( ( long int ) componentTypeA & getComponentTypeRequirements ( componentTypeB ) ) == ( long int ) componentTypeA ) ; } }
Check if Component Type B is dependent on Component Type A.
Check if Component Type B is dependent on Component Type A .
//	Check if the Component Types are the same. //	Return false if they are. //	Return the result of the check.