ECS/Project/Project/ECS/EntityManager/EntityManager.cpp
//	Return the Component Type Requirements for the Component Type.
Return the Component Type Requirements for the Component Type.
Return the Component Type Requirements for the Component Type .
long int EntityManager::getComponentTypeRequirements(const ComponentType & componentType)
{
	long int componentTypeRequirement = -1;
	switch (componentType)
	{
	case ComponentType::HIERARCHY_COMPONENT:
	{
		componentTypeRequirement =(long int)(ComponentTypeRequirement::HIERARCHY_COMPONENT_REQUIREMENTS);
		break;
	}
	case ComponentType::TRANSFORM_COMPONENT:
	{
		componentTypeRequirement = (long int)(ComponentTypeRequirement::TRANSFORM_COMPONENT_REQUIREMENTS);
		break;
	}
	case ComponentType::CAMERA_COMPONENT:
	{
		componentTypeRequirement = (long int)(ComponentTypeRequirement::CAMERA_COMPONENT_REQUIREMENTS);
		break;
	}
	case ComponentType::SPEED_COMPONENT:
	{
		componentTypeRequirement = (long int)(ComponentTypeRequirement::SPEED_COMPONENT_REQUIREMENTS);
		break;
	}
	case ComponentType::GEOMETRY_COMPONENT:
	{
		componentTypeRequirement = (long int)(ComponentTypeRequirement::GEOMETRY_COMPONENT_REQUIREMENTS);
		break;
	}
	case ComponentType::RENDERING_COMPONENT:
	{
		componentTypeRequirement = (long int)(ComponentTypeRequirement::RENDERING_COMPONENT_REQUIREMENTS);
		break;
	}
	case ComponentType::SELECTION_COMPONENT:
	{
		componentTypeRequirement = (long int)(ComponentTypeRequirement::SELECTION_COMPONENT_REQUIREMENTS);
		break;
	}
	case ComponentType::MOVEMENT_RESPONSE_COMPONENT:
	{
		componentTypeRequirement = (long int)(ComponentTypeRequirement::MOVEMENT_RESPONSE_COMPONENT_REQUIREMENTS);
		break;
	}
	default:
		componentTypeRequirement = -1;
		break;
	}
	return componentTypeRequirement;
}
long int EntityManager :: getComponentTypeRequirements ( const ComponentType & componentType ) { long int componentTypeRequirement = -1 ; switch ( componentType ) { case ComponentType :: HIERARCHY_COMPONENT : { componentTypeRequirement = ( long int ) ( ComponentTypeRequirement :: HIERARCHY_COMPONENT_REQUIREMENTS ) ; break ; } case ComponentType :: TRANSFORM_COMPONENT : { componentTypeRequirement = ( long int ) ( ComponentTypeRequirement :: TRANSFORM_COMPONENT_REQUIREMENTS ) ; break ; } case ComponentType :: CAMERA_COMPONENT : { componentTypeRequirement = ( long int ) ( ComponentTypeRequirement :: CAMERA_COMPONENT_REQUIREMENTS ) ; break ; } case ComponentType :: SPEED_COMPONENT : { componentTypeRequirement = ( long int ) ( ComponentTypeRequirement :: SPEED_COMPONENT_REQUIREMENTS ) ; break ; } case ComponentType :: GEOMETRY_COMPONENT : { componentTypeRequirement = ( long int ) ( ComponentTypeRequirement :: GEOMETRY_COMPONENT_REQUIREMENTS ) ; break ; } case ComponentType :: RENDERING_COMPONENT : { componentTypeRequirement = ( long int ) ( ComponentTypeRequirement :: RENDERING_COMPONENT_REQUIREMENTS ) ; break ; } case ComponentType :: SELECTION_COMPONENT : { componentTypeRequirement = ( long int ) ( ComponentTypeRequirement :: SELECTION_COMPONENT_REQUIREMENTS ) ; break ; } case ComponentType :: MOVEMENT_RESPONSE_COMPONENT : { componentTypeRequirement = ( long int ) ( ComponentTypeRequirement :: MOVEMENT_RESPONSE_COMPONENT_REQUIREMENTS ) ; break ; } default : componentTypeRequirement = -1 ; break ; } return componentTypeRequirement ; }
Return the Component Type Requirements for the Component Type.
Return the Component Type Requirements for the Component Type .
//	Switch on the Component Type. //	Check for HIERARCHY Component Type. //	Check for TRANSFORM Component Type. //	Check for CAMERA Component Type. //	Check for the SPEED Component Type. //	Check for the GEOMETRY Component Type. //	Check for the RENDERING Component Type. //	Check for the SELECTION Component Type. //	Check for the MOVEMENT RESPONSE Component Type. //	False if the Type was not recognized. //	Return the Component Type Requirements.