| 22 | namespace Components |
| 23 | { |
| 24 | void PostEffectVolumeManager::init() |
| 25 | { |
| 26 | _INTR_LOG_INFO("Inititializing PostEffectVolume Component Manager..."); |
| 27 | |
| 28 | Dod::Components::ComponentManagerBase< |
| 29 | PostEffectVolumeData, _INTR_MAX_POST_EFFECT_CONTROLLER_COMPONENT_COUNT>:: |
| 30 | _initComponentManager(); |
| 31 | |
| 32 | Dod::Components::ComponentManagerEntry postEffectVolumeEntry; |
| 33 | { |
| 34 | postEffectVolumeEntry.createFunction = |
| 35 | Components::PostEffectVolumeManager::createPostEffectVolume; |
| 36 | postEffectVolumeEntry.destroyFunction = |
| 37 | Components::PostEffectVolumeManager::destroyPostEffectVolume; |
| 38 | postEffectVolumeEntry.getComponentForEntityFunction = |
| 39 | Components::PostEffectVolumeManager::getComponentForEntity; |
| 40 | postEffectVolumeEntry.resetToDefaultFunction = |
| 41 | Components::PostEffectVolumeManager::resetToDefault; |
| 42 | |
| 43 | Application::_componentManagerMapping[_N(PostEffectVolume)] = |
| 44 | postEffectVolumeEntry; |
| 45 | Application::_orderedComponentManagers.push_back(postEffectVolumeEntry); |
| 46 | } |
| 47 | |
| 48 | Dod::PropertyCompilerEntry propCompilerPostEffectVolume; |
| 49 | { |
| 50 | propCompilerPostEffectVolume.compileFunction = |
| 51 | Components::PostEffectVolumeManager::compileDescriptor; |
| 52 | propCompilerPostEffectVolume.initFunction = |
| 53 | Components::PostEffectVolumeManager::initFromDescriptor; |
| 54 | propCompilerPostEffectVolume.ref = Dod::Ref(); |
| 55 | Application::_componentPropertyCompilerMapping[_N(PostEffectVolume)] = |
| 56 | propCompilerPostEffectVolume; |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | // <- |
| 61 | |