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

Method Start

trinity/Controllers/Actions/Tr2ActionBindRTPC.cpp:61–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void Tr2ActionBindRTPC::Start( ITr2ActionController& controller )
62{
63 m_startTime = BeOS->GetCurrentFrameTime();
64 controller.RegisterUpdateable( *this );
65
66 if( ITr2SoundEmitterOwnerPtr emitters = BlueCastPtr( controller.GetOwner() ) )
67 {
68 if( auto emitter = emitters->FindSoundEmitter( m_emitterName.c_str() ) )
69 {
70 m_emitter = emitter;
71 }
72 }
73}
74
75void Tr2ActionBindRTPC::StartWithController( ITr2ActionController* controller )
76{

Callers

nothing calls this directly

Calls 3

RegisterUpdateableMethod · 0.45
GetOwnerMethod · 0.45
FindSoundEmitterMethod · 0.45

Tested by

no test coverage detected