ECS/Project/Project/Systems/MovementSystem/MovementSystem.cpp
//	Process the Events for the Movement System.
Process the Events for the Movement System.
Process the Events for the Movement System .
void MovementSystem::processEvents(const float & deltaTime, const float & currentFrameTime, const float & lastFrameTime)
{
	while (getReceiver()->getNumberOfEvents() > 0)
	{
		std::shared_ptr<const ECSEvent> nextEvent = getReceiver()->getNextEvent();
		if (nextEvent->getEventType() == EventType::ECS_SHUTDOWN_EVENT)
		{
			shutDownSystem();
		}
	}
}
void MovementSystem :: processEvents ( const float & deltaTime , const float & currentFrameTime , const float & lastFrameTime ) { while ( getReceiver ( ) -> getNumberOfEvents ( ) > 0 ) { std :: shared_ptr < const ECSEvent > nextEvent = getReceiver ( ) -> getNextEvent ( ) ; if ( nextEvent -> getEventType ( ) == EventType :: ECS_SHUTDOWN_EVENT ) { shutDownSystem ( ) ; } } }
Process the Events for the Movement System.
Process the Events for the Movement System .
//	Check if there are any Events. //	Get the events. //	Respond to the System shutdown.