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

Method Start

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

Source from the content-addressed store, hash-verified

12}
13
14void Tr2ActionSetAudioEmitterPrefix::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->SetPrefix( m_prefix );
21 }
22 }
23}
24
25void Tr2ActionSetAudioEmitterPrefix::StartWithController( ITr2ActionController* controller )
26{

Callers

nothing calls this directly

Calls 2

GetOwnerMethod · 0.45
FindSoundEmitterMethod · 0.45

Tested by

no test coverage detected