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

Method Start

trinity/Controllers/Actions/Tr2ActionPython.cpp:99–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void Tr2ActionPython::Start( ITr2ActionController& controller )
100{
101 m_isPlaying = true;
102 if( m_vtable.onUpdate )
103 {
104 controller.RegisterUpdateable( *this );
105 }
106 if( m_vtable.onStart )
107 {
108 ContinueOnMainThread( [self = Tr2ActionPythonPtr( this ), controllerPtr = ITr2ActionControllerPtr( &controller ), owner = IRootPtr( controller.GetOwner() )]() {
109 self->m_vtable.onStart.CallVoid( owner, controllerPtr );
110 } );
111 }
112 m_prevRealTime = BeOS->GetActualTime();
113 m_prevSimTime = BeOS->GetCurrentFrameTime();
114}
115
116void Tr2ActionPython::Stop( ITr2ActionController& controller )
117{

Callers

nothing calls this directly

Calls 3

ContinueOnMainThreadFunction · 0.85
RegisterUpdateableMethod · 0.45
GetOwnerMethod · 0.45

Tested by

no test coverage detected