Esempio n. 1
0
void AmmoRegenerationSystem::processEntities( artemis::ImmutableBag<artemis::Entity*> & bag, float accumulatedDelta )
{
	for (int i = 0; i < bag.getCount(); ++i)
	{
		auto ammo = _ammoMapper.get(*bag.get(i));
		ammo->addAmmo(1.0f);
	}
}
void InputMovementSystem::processEntities(artemis::ImmutableBag<artemis::Entity*> & bag)
{
	for (int i = 0; i < bag.getCount; i++)
	{
		processEntity(*bag.get(i));
	}
}