MCPcopy Create free account
hub / github.com/carbonengine/trinity / Start

Method Start

trinity/Controllers/Actions/Tr2ActionSetAudioSwitch.cpp:14–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14void 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
25void Tr2ActionSetAudioSwitch::StartWithController( ITr2ActionController* controller )
26{

Callers

nothing calls this directly

Calls 2

GetOwnerMethod · 0.45
FindSoundEmitterMethod · 0.45

Tested by

no test coverage detected