void SoundEditAction::_deleteSoundEntity(size_t index) { Ogre::Entity* entity = mSoundEntities[index]; entity->destroy(); mSoundEntities.erase(mSoundEntities.begin() + index); }
void SoundEditAction::_clearAllSoundEntities(void) { for (size_t i=0; i<mSoundEntities.size(); ++i) { Ogre::Entity* entity = mSoundEntities[i]; entity->destroy(); } mSoundEntities.clear(); mNextNameIndex = 0; }