| 12 | } |
| 13 | |
| 14 | void Tr2ActionSetAudioSwitch::Start( ITr2ActionController& controller ) |
| 15 | { |
| 16 | if( ITr2SoundEmitterOwnerPtr emitters = BlueCastPtr( controller.GetOwner() ) ) |
| 17 | { |
| 18 | if( auto emitter = emitters->FindSoundEmitter( m_emitterName.c_str() ) ) |
| 19 | { |
| 20 | emitter->SetSwitch( m_switchGroup.c_str(), m_switchState.c_str() ); |
| 21 | } |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | void Tr2ActionSetAudioSwitch::StartWithController( ITr2ActionController* controller ) |
| 26 | { |
nothing calls this directly
no test coverage detected