コード例 #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);
	}
}
コード例 #2
0
void InputMovementSystem::processEntities(artemis::ImmutableBag<artemis::Entity*> & bag)
{
	for (int i = 0; i < bag.getCount; i++)
	{
		processEntity(*bag.get(i));
	}
}